VehicleClient

setConvertibleRoofLatchState

SET_CONVERTIBLE_ROOF_LATCH_STATE0x1A78AD3D8240536F

The 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.

SignatureJavaScript
setConvertibleRoofLatchState(vehicle: Vehicle, state: boolean): void
SignatureLua
setConvertibleRoofLatchState(vehicle: Vehicle, state: boolean)

Usage

JavaScript
setConvertibleRoofLatchState(vehicle, state);
Lua
setConvertibleRoofLatchState(vehicle, state)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
stateBOOLbooleanboolean

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

Open in the interactive natives reference