fivem
fivem copied to clipboard
Some natives are returning 1 instead of true
What happened?
I'm pretty sure this thing was already reported, some natives are returning 1 instead of true, i tried with and without lua 5.4 and it's the same
Expected result
Return true instead of 1
Reproduction steps
Here is a small command to test this
RegisterCommand("col", function()
local isVehicleElectric = Citizen.InvokeNative(0x1FCB07FE230B6639, GetHashKey("cyclone"))
print(isVehicleElectric)
end, false)
If you try to replace cyclone by adder it will return false (since the vehicle is not electric) You need to be on the build 3258 to use this native
Importancy
Slight inconvenience
Area(s)
Natives
Specific version(s)
8903/Windows
Additional information
This problem is here since a long moment