VehicleClient

setConvertibleRoof

SET_CONVERTIBLE_ROOF0xF39C4F538B5124C2

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

SignatureJavaScript
setConvertibleRoof(vehicle: Vehicle, p1: boolean): void
SignatureLua
setConvertibleRoof(vehicle: Vehicle, p1: boolean)

Usage

JavaScript
setConvertibleRoof(vehicle, p1);
Lua
setConvertibleRoof(vehicle, p1)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
p1BOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_CONVERTIBLE_ROOF(Vehicle vehicle, BOOL p1)
Hash
0xF39C4F538B5124C2

Open in the interactive natives reference