getDefaultAmmoForWeaponPickup
GET_DEFAULT_AMMO_FOR_WEAPON_PICKUP0xDB41D07A45A6D4B7The GTA V native GET_DEFAULT_AMMO_FOR_WEAPON_PICKUP of the OBJECT namespace, as LS:MP client scripts call it: the global function getDefaultAmmoForWeaponPickup, in JavaScript and in Lua.
getDefaultAmmoForWeaponPickup(pickupHash: Hash): numbergetDefaultAmmoForWeaponPickup(pickupHash: Hash): integerUsage
JavaScript
const result = getDefaultAmmoForWeaponPickup(pickupHash);Lua
local result = getDefaultAmmoForWeaponPickup(pickupHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
pickupHash | Hash | number | integer |
Returns
int JavaScript number, Lua integerReference
- Namespace
- Object OBJECT
- In the game
int GET_DEFAULT_AMMO_FOR_WEAPON_PICKUP(Hash pickupHash)- Hash
0xDB41D07A45A6D4B7