isVehicleAConvertible
IS_VEHICLE_A_CONVERTIBLE0x52F357A30698BCCEThe 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.
isVehicleAConvertible(vehicle: Vehicle, p1: boolean): booleanisVehicleAConvertible(vehicle: Vehicle, p1: boolean): booleanUsage
JavaScript
const result = isVehicleAConvertible(vehicle, p1);Lua
local result = isVehicleAConvertible(vehicle, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
p1 | BOOL | boolean | boolean |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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