GIVE_DELAYED_WEAPON_TO_PED
Hash
0xB282DC6EBD803C75Runtime name
GiveDelayedWeaponToPedNamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xB282DC6EBD803C75Signature
void GIVE_DELAYED_WEAPON_TO_PED(Ped ped, Hash weaponHash, int ammoCount, BOOL p3, Hash addReason);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
weaponHash | Hash | — |
ammoCount | int | — |
p3 | BOOL | — |
addReason | Hash | — |
Returns void
Description
addReason: see _ADD_AMMO_TO_PED
Usage
GiveDelayedWeaponToPed(ped, weaponHash, ammoCount, p3, addReason)
-- always works, by hash
Citizen.InvokeNative(0xB282DC6EBD803C75, ped, weaponHash, ammoCount, p3, addReason)JavaScript and C#
GiveDelayedWeaponToPed(ped, weaponHash, ammoCount, p3, addReason);
// by hash
Citizen.invokeNative('0xB282DC6EBD803C75', ped, weaponHash, ammoCount, p3, addReason);Function.Call((Hash)0xB282DC6EBD803C75, ped, weaponHash, ammoCount, p3, addReason);- 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.