Closed TheGodlyLuzer closed 2 years ago
native.getVehicleLightsState() returns a number instead of a boolean for index 1 and 2
native.getVehicleLightsState()
let lightState = native.getVehicleLightsState(alt.Player.local.vehicle, true, true); alt.log(lightState);
leads to
[true, 0, 0]
alt.log(lightState);
should leads to
[true, false, false]
No response
Windows 10
13.0-dev34
Confirmed on 13.0-dev38
https://github.com/xxshady/altv-types/blob/2582f2f3cbe1e79343dac6307864a430bddea5d0/natives/index.d.ts#L21061
Looks like a js bug. Works in c#.
Fixed in next dev build
Description of the problem
native.getVehicleLightsState()
returns a number instead of a boolean for index 1 and 2Reproduction steps
leads to
[true, 0, 0]
Expected behaviour
alt.log(lightState);
should leads to
[true, false, false]
Additional context
No response
Operating system
Windows 10
Version
13.0-dev34