VehicleClient

isVehicleAConvertible

IS_VEHICLE_A_CONVERTIBLE0x52F357A30698BCCE

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

SignatureJavaScript
isVehicleAConvertible(vehicle: Vehicle, p1: boolean): boolean
SignatureLua
isVehicleAConvertible(vehicle: Vehicle, p1: boolean): boolean

Usage

JavaScript
const result = isVehicleAConvertible(vehicle, p1);
Lua
local result = isVehicleAConvertible(vehicle, p1)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
p1BOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Returns true if the vehicle has a convertible roof.

p1 is false almost always. However, in launcher_carwash/carwash1/carwash2 scripts, p1 is true and is accompanied by doesVehicleHaveRoof. If p1 is true, it seems that every single vehicle will return true irrespective of being a convertible.

Reference

Namespace
Vehicle VEHICLE
In the game
BOOL IS_VEHICLE_A_CONVERTIBLE(Vehicle vehicle, BOOL p1)
Hash
0x52F357A30698BCCE

Open in the interactive natives reference