doesVehicleExistWithDecorator
DOES_VEHICLE_EXIST_WITH_DECORATOR0x956B409B984D9BF7The GTA V native DOES_VEHICLE_EXIST_WITH_DECORATOR of the VEHICLE namespace, as LS:MP client scripts call it: the global function doesVehicleExistWithDecorator, in JavaScript and in Lua.
doesVehicleExistWithDecorator(decorator: string): VehicledoesVehicleExistWithDecorator(decorator: string): VehicleUsage
JavaScript
const vehicle = doesVehicleExistWithDecorator(decorator);Lua
local vehicle = doesVehicleExistWithDecorator(decorator)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
decorator | string | string | string |
Returns
Vehicle JavaScript number, Lua integerGame handle of a vehicle. Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
Vehicle DOES_VEHICLE_EXIST_WITH_DECORATOR(const char* decorator)- Hash
0x956B409B984D9BF7