-
Client (production/canary) and FXServer version:
– FiveM ver. Release, Server ver.5181 -
What you expected to happen:
– True data about the state of the headlights: -
What actually happens
– Native returns false -
Category of bug:
– Native. -
Reproducible steps, preferably with example script(s):
– Create veh and get in;
– Push the Headlight switch button (H);
– Enter command with script (below) in console.
Script:
[Command("lights")]
private void GetLightsState()
{
bool lightsOn = false;
bool highbeamsOn = false;
GetVehicleLightsState(LocalPlayer.Character.CurrentVehicle.Handle, ref lightsOn, ref highbeamsOn);
Debug.WriteLine($"lightsOn: {lightsOn}. highbeamsOn: {highbeamsOn}");
}