RedM Natives

CONVERT_OLD_PICKUP_TYPE_TO_NEW

Old name: _GET_PICKUP_HASH

Hash0x5EAAD83F8CFB4575
Runtime nameConvertOldPickupTypeToNew
NamespaceOBJECT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x5EAAD83F8CFB4575

Signature

Hash CONVERT_OLD_PICKUP_TYPE_TO_NEW(Hash pickupHash);

Parameters

NameTypeDescription
pickupHashHash—

Returns Hash

Description

Old name: _GET_PICKUP_HASH

Usage

Lua
local retval = ConvertOldPickupTypeToNew(pickupHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0x5EAAD83F8CFB4575, pickupHash, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = ConvertOldPickupTypeToNew(pickupHash);

// by hash
const retval = Citizen.invokeNative('0x5EAAD83F8CFB4575', pickupHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x5EAAD83F8CFB4575, pickupHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.