getVehicleLayoutHash
GET_VEHICLE_LAYOUT_HASH0x28D37D4F71AC5C58The 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.
getVehicleLayoutHash(vehicle: Vehicle): HashgetVehicleLayoutHash(vehicle: Vehicle): HashUsage
JavaScript
const hash = getVehicleLayoutHash(vehicle);Lua
local hash = getVehicleLayoutHash(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
Hash JavaScript number, Lua integerA 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.
Full list of vehicles by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/vehicles.json
Reference
- Namespace
- Vehicle VEHICLE
- In the game
Hash GET_VEHICLE_LAYOUT_HASH(Vehicle vehicle)- Hash
0x28D37D4F71AC5C58