RedM Natives

GIVE_DELAYED_WEAPON_TO_PED

Hash0xB282DC6EBD803C75
Runtime nameGiveDelayedWeaponToPed
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB282DC6EBD803C75

Signature

void GIVE_DELAYED_WEAPON_TO_PED(Ped ped, Hash weaponHash, int ammoCount, BOOL p3, Hash addReason);

Parameters

NameTypeDescription
pedPed—
weaponHashHash—
ammoCountint—
p3BOOL—
addReasonHash—

Returns void

Description

addReason: see _ADD_AMMO_TO_PED

Usage

Lua
GiveDelayedWeaponToPed(ped, weaponHash, ammoCount, p3, addReason)

-- always works, by hash
Citizen.InvokeNative(0xB282DC6EBD803C75, ped, weaponHash, ammoCount, p3, addReason)
JavaScript and C#
JavaScript
GiveDelayedWeaponToPed(ped, weaponHash, ammoCount, p3, addReason);

// by hash
Citizen.invokeNative('0xB282DC6EBD803C75', ped, weaponHash, ammoCount, p3, addReason);
C#
Function.Call((Hash)0xB282DC6EBD803C75, ped, weaponHash, ammoCount, p3, addReason);
  • 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.