CONVERT_OLD_PICKUP_TYPE_TO_NEW
Old name: _GET_PICKUP_HASH
Hash
0x5EAAD83F8CFB4575Runtime name
ConvertOldPickupTypeToNewNamespaceOBJECT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x5EAAD83F8CFB4575Signature
Hash CONVERT_OLD_PICKUP_TYPE_TO_NEW(Hash pickupHash);Parameters
| Name | Type | Description |
|---|---|---|
pickupHash | Hash | — |
Returns Hash
Description
Old name: _GET_PICKUP_HASH
Usage
local retval = ConvertOldPickupTypeToNew(pickupHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0x5EAAD83F8CFB4575, pickupHash, Citizen.ResultAsInteger())JavaScript and C#
const retval = ConvertOldPickupTypeToNew(pickupHash);
// by hash
const retval = Citizen.invokeNative('0x5EAAD83F8CFB4575', pickupHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x5EAAD83F8CFB4575, pickupHash);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.