VehicleClient

setVehicleNameDebug

SET_VEHICLE_NAME_DEBUG0xBFDF984E2C22B94F

The GTA V native SET_VEHICLE_NAME_DEBUG of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleNameDebug, in JavaScript and in Lua.

SignatureJavaScript
setVehicleNameDebug(vehicle: Vehicle, name: string): void
SignatureLua
setVehicleNameDebug(vehicle: Vehicle, name: string)

Usage

JavaScript
setVehicleNameDebug(vehicle, name);
Lua
setVehicleNameDebug(vehicle, name)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
namestringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

NOTE: Debugging functions are not present in the retail version of the game.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_NAME_DEBUG(Vehicle vehicle, const char* name)
Hash
0xBFDF984E2C22B94F

Open in the interactive natives reference