setConvertibleRoofLatchState
SET_CONVERTIBLE_ROOF_LATCH_STATE0x1A78AD3D8240536FThe GTA V native SET_CONVERTIBLE_ROOF_LATCH_STATE of the VEHICLE namespace, as LS:MP client scripts call it: the global function setConvertibleRoofLatchState, in JavaScript and in Lua.
setConvertibleRoofLatchState(vehicle: Vehicle, state: boolean): voidsetConvertibleRoofLatchState(vehicle: Vehicle, state: boolean)Usage
JavaScript
setConvertibleRoofLatchState(vehicle, state);Lua
setConvertibleRoofLatchState(vehicle, state)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
state | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_CONVERTIBLE_ROOF_LATCH_STATE(Vehicle vehicle, BOOL state)- Hash
0x1A78AD3D8240536F