VehicleClient

isVehicleSprayable

IS_VEHICLE_SPRAYABLE0x8D474C8FAEFF6CDE

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

SignatureJavaScript
isVehicleSprayable(vehicle: Vehicle): boolean
SignatureLua
isVehicleSprayable(vehicle: Vehicle): boolean

Usage

JavaScript
const result = isVehicleSprayable(vehicle);
Lua
local result = isVehicleSprayable(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

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

Open in the interactive natives reference