VehicleClient

getVehicleLayoutHash

GET_VEHICLE_LAYOUT_HASH0x28D37D4F71AC5C58

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

SignatureJavaScript
getVehicleLayoutHash(vehicle: Vehicle): Hash
SignatureLua
getVehicleLayoutHash(vehicle: Vehicle): Hash

Usage

JavaScript
const hash = getVehicleLayoutHash(vehicle);
Lua
local hash = getVehicleLayoutHash(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

Hash JavaScript number, Lua integer

A game hash. Natives return it unsigned (0 to 4294967295), the value lsmp.hash gives. As an argument, the signed and unsigned forms of a hash are the same value.

Notes

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

Reference

Namespace
Vehicle VEHICLE
In the game
Hash GET_VEHICLE_LAYOUT_HASH(Vehicle vehicle)
Hash
0x28D37D4F71AC5C58

Open in the interactive natives reference