convertOldPickupTypeToNew
CONVERT_OLD_PICKUP_TYPE_TO_NEW0x5EAAD83F8CFB4575The GTA V native CONVERT_OLD_PICKUP_TYPE_TO_NEW of the OBJECT namespace, as LS:MP client scripts call it: the global function convertOldPickupTypeToNew, in JavaScript and in Lua.
convertOldPickupTypeToNew(pickupHash: Hash): HashconvertOldPickupTypeToNew(pickupHash: Hash): HashUsage
JavaScript
const hash = convertOldPickupTypeToNew(pickupHash);Lua
local hash = convertOldPickupTypeToNew(pickupHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
pickupHash | Hash | 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.
returns pickup hash.
Full list of pickup types by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/pickupTypes.json
Reference
- Namespace
- Object OBJECT
- In the game
Hash CONVERT_OLD_PICKUP_TYPE_TO_NEW(Hash pickupHash)- Hash
0x5EAAD83F8CFB4575- Formerly
_GET_PICKUP_HASH