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
If we try to update the license plate of a vehicle other than empty, nothing happens.
When in vehicle:
listenEvent("onChatCommand", function (player, message, command, args) if command == "plate" then local veh = player:getVehicle() if veh == nil then return end local licensePlate = args[1] or "" veh:setLicensePlate(licensePlate) end end)
Could be related to the way we manage the string here:
MafiaMP/code/server/src/core/builtins/vehicle.cpp
Lines 128 to 134 in b4dfb16
The text was updated successfully, but these errors were encountered:
Could you check if we hit this condition on client-side and whether it carries any value at all?
MafiaMP/code/client/src/core/modules/vehicle.cpp
Lines 342 to 345 in b4dfb16
Also check if msg validation passes or fails here:
MafiaMP/code/shared/game_rpc/vehicle/vehicle_setprops.h
Lines 63 to 65 in b4dfb16
Sorry, something went wrong.
After analysis, the bug is related to this code:
Lines 214 to 216 in b4dfb16
The comparison should check if it is not equal to zero. (https://en.cppreference.com/w/cpp/string/byte/strcmp)
Fix incoming
Successfully merging a pull request may close this issue.
Description
If we try to update the license plate of a vehicle other than empty, nothing happens.
Reproduction
When in vehicle:
Possible reason
Could be related to the way we manage the string here:
MafiaMP/code/server/src/core/builtins/vehicle.cpp
Lines 128 to 134 in b4dfb16
The text was updated successfully, but these errors were encountered: