VehicleClient

doesVehicleExistWithDecorator

DOES_VEHICLE_EXIST_WITH_DECORATOR0x956B409B984D9BF7

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

SignatureJavaScript
doesVehicleExistWithDecorator(decorator: string): Vehicle
SignatureLua
doesVehicleExistWithDecorator(decorator: string): Vehicle

Usage

JavaScript
const vehicle = doesVehicleExistWithDecorator(decorator);
Lua
local vehicle = doesVehicleExistWithDecorator(decorator)

Parameters

ParameterTypeJavaScriptLua
decoratorstringstringstring

Returns

Vehicle JavaScript number, Lua integer

Game 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

Open in the interactive natives reference