We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the player is not in a vehicle, could we return nil instead of -1?
MafiaMP/code/server/src/core/builtins/human.cpp
Lines 45 to 52 in b4dfb16
What do you think about it?
When not in vehicle:
listenEvent("onChatCommand", function (player, message, command, args) if command == "seat" then local seat = player:getVehicleSeat() -- returns -1 end end)
The text was updated successfully, but these errors were encountered:
Doesn't it return -1 in the original game's lua too? I know it does in Mafia 2.
Sorry, something went wrong.
No branches or pull requests
Description
When the player is not in a vehicle, could we return nil instead of -1?
MafiaMP/code/server/src/core/builtins/human.cpp
Lines 45 to 52 in b4dfb16
What do you think about it?
Reproduction
When not in vehicle:
The text was updated successfully, but these errors were encountered: