isVehicleSprayable
IS_VEHICLE_SPRAYABLE0x8D474C8FAEFF6CDEThe GTA V native IS_VEHICLE_SPRAYABLE of the VEHICLE namespace, as LS:MP client scripts call it: the global function isVehicleSprayable, in JavaScript and in Lua.
isVehicleSprayable(vehicle: Vehicle): booleanisVehicleSprayable(vehicle: Vehicle): booleanUsage
JavaScript
const result = isVehicleSprayable(vehicle);Lua
local result = isVehicleSprayable(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
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 false if the vehicle has the FLAG_NO_RESPRAY flag set.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
BOOL IS_VEHICLE_SPRAYABLE(Vehicle vehicle)- Hash
0x8D474C8FAEFF6CDE- Formerly
_IS_VEHICLE_SHOP_RESPRAY_ALLOWED