ObjectClient

setCustomPickupWeaponHash

SET_CUSTOM_PICKUP_WEAPON_HASH0x826D1EE4D1CAFC78

The GTA V native SET_CUSTOM_PICKUP_WEAPON_HASH of the OBJECT namespace, as LS:MP client scripts call it: the global function setCustomPickupWeaponHash, in JavaScript and in Lua.

SignatureJavaScript
setCustomPickupWeaponHash(pickupHash: Hash, pickup: Pickup): void
SignatureLua
setCustomPickupWeaponHash(pickupHash: Hash, pickup: Pickup)

Usage

JavaScript
setCustomPickupWeaponHash(pickupHash, pickup);
Lua
setCustomPickupWeaponHash(pickupHash, pickup)

Parameters

ParameterTypeJavaScriptLua
pickupHashHashnumberinteger
pickupPickupnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Object OBJECT
In the game
void SET_CUSTOM_PICKUP_WEAPON_HASH(Hash pickupHash, Pickup pickup)
Hash
0x826D1EE4D1CAFC78
Introduced
Game build 505 legacy numbering

Open in the interactive natives reference