VehicleClient

getVehicleModIdentifierHash

GET_VEHICLE_MOD_IDENTIFIER_HASH0x4593CF82AA179706

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

SignatureJavaScript
getVehicleModIdentifierHash(
  vehicle: Vehicle,
  modType: number,
  modIndex: number
): Hash
SignatureLua
getVehicleModIdentifierHash(
  vehicle: Vehicle,
  modType: integer,
  modIndex: integer
): Hash

Usage

JavaScript
const hash = getVehicleModIdentifierHash(vehicle, modType, modIndex);
Lua
local hash = getVehicleModIdentifierHash(vehicle, modType, modIndex)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
modTypeintnumberinteger
modIndexintnumberinteger

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_MOD_IDENTIFIER_HASH(Vehicle vehicle, int modType, int modIndex)
Hash
0x4593CF82AA179706
Formerly
_GET_VEHICLE_MOD_DATA

Open in the interactive natives reference