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
When any of these functions are called when in the target vehicle, the return value is the number 1 instead of the boolean true. If you aren't in the target vehicle, the correct boolean false is returned.
I haven't actually tested every command, though I assume they're all the same. Tested Heli, Car, Boat, Bike.
Expected result
A boolean should always be returned, rather than mixing boolean and numbers.
Reproduction steps
Enter a vehicle
Run a resource with the following code
See that the return values are false/boolean except for the type of vehicle you are in, which is 1/number.
If you are doing boolean checks with the result you should still be able to as 1 would evaluate to true and false would still be false. Or you can do IsThisModelABoat(model) == 1 if you really want a boolean
What happened?
When any of these functions are called when in the target vehicle, the return value is the number 1 instead of the boolean true. If you aren't in the target vehicle, the correct boolean false is returned.
I haven't actually tested every command, though I assume they're all the same. Tested Heli, Car, Boat, Bike.
Expected result
A boolean should always be returned, rather than mixing boolean and numbers.
Reproduction steps
Importancy
There's a workaround
Area(s)
Natives
Specific version(s)
Tested on FiveM 1604 Server 7290 and FiveM 3258 Server 12031
Additional information
No response
The text was updated successfully, but these errors were encountered: