VehicleClient

setVehicleFullbeam

SET_VEHICLE_FULLBEAM0x8B7FD87F0DDB421E

The GTA V native SET_VEHICLE_FULLBEAM of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleFullbeam, in JavaScript and in Lua.

SignatureJavaScript
setVehicleFullbeam(vehicle: Vehicle, toggle: boolean): void
SignatureLua
setVehicleFullbeam(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
setVehicleFullbeam(vehicle, toggle);
Lua
setVehicleFullbeam(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

It switch to highbeam when p1 is set to true.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_FULLBEAM(Vehicle vehicle, BOOL toggle)
Hash
0x8B7FD87F0DDB421E

Open in the interactive natives reference