You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we try to get the player's vehicle while he is not in it, we get this error:
Lua error: (straight from the exception): Entity handle '18446744073709551615' is invalid!
[2025-01-12 00:53:58.189] [error] Entity handle '18446744073709551615' is invalid!
stack traceback:
[C]: in method 'getVehicle'
gamemode/server/main.lua:118: in local 'foundCommand'
gamemode/server/main.lua:99: in function <gamemode/server/main.lua:89>
Reproduction
When not in vehicle, connected to a server, type /bug in chat
Description
If we try to get the player's vehicle while he is not in it, we get this error:
Reproduction
When not in vehicle, connected to a server, type
/bug
in chatPossible reason
This could be related to the
Human:getVehicle()
function which returnsVehicle(-1)
.Could we return
null
/nil
instead?MafiaMP/code/server/src/core/builtins/human.cpp
Lines 36 to 43 in b4dfb16
The text was updated successfully, but these errors were encountered: