altmp / altv-js-module

JS module for alt:V Multiplayer. Powered by NodeJS & v8
MIT License
55 stars 35 forks source link

native.getVehicleLightsState returns different values #200

Closed TheGodlyLuzer closed 2 years ago

TheGodlyLuzer commented 2 years ago

Description of the problem

native.getVehicleLightsState() returns a number instead of a boolean for index 1 and 2

Reproduction steps

let lightState = native.getVehicleLightsState(alt.Player.local.vehicle, true, true);
alt.log(lightState);

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

xxshady commented 2 years ago

Confirmed on 13.0-dev38

https://github.com/xxshady/altv-types/blob/2582f2f3cbe1e79343dac6307864a430bddea5d0/natives/index.d.ts#L21061 изображение

FabianTerhorst commented 2 years ago

Looks like a js bug. Works in c#.

C0kkie commented 2 years ago

Fixed in next dev build