GIVE_DELAYED_WEAPON_TO_PED
Gives the ped the weapon weaponHash with ammoCount rounds without equipping it immediately.
Signature
void GIVE_DELAYED_WEAPON_TO_PED(Ped ped, Hash weaponHash, int ammoCount, BOOL p3, Hash addReason); // 0xB282DC6EBD803C75 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | weaponHash | Hash |
| 3 | ammoCount | int |
| 4 | p3 | BOOL |
| 5 | addReason | Hash |
Facts
| Name | GIVE_DELAYED_WEAPON_TO_PED |
|---|---|
| Hash | 0xB282DC6EBD803C75 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xB282DC6EBD803C75, -- GIVE_DELAYED_WEAPON_TO_PED
PlayerPedId(), -- Ped ped
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
0, -- int ammoCount
false, -- BOOL p3
GetHashKey("name") -- Hash addReason
)Citizen.invokeNative("0xB282DC6EBD803C75", // GIVE_DELAYED_WEAPON_TO_PED
PlayerPedId(), // Ped ped
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0, // int ammoCount
false, // BOOL p3
GetHashKey("name") // Hash addReason
);Function.Call((Hash)0xB282DC6EBD803C75, // GIVE_DELAYED_WEAPON_TO_PED
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0, // int ammoCount
false, // BOOL p3
(uint)API.GetHashKey("name") // Hash addReason
);Related WEAPON natives
- GIVE_WEAPON_TO_PED
- GIVE_WEAPON_TO_PED_WITH_OPTIONS
- _GIVE_WEAPON_COLLECTION_TO_PED
- _GIVE_WEAPON_COMPONENT_TO_WEAPON_OBJECT
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _GIVE_WEAPON_COMPONENT_TO_ENTITY
- IS_PED_WEAPON_READY_TO_SHOOT
- GET_AMMO_IN_PED_WEAPON
- GET_BEST_PED_WEAPON
- GET_CURRENT_PED_VEHICLE_WEAPON
- GET_CURRENT_PED_WEAPON
- GET_CURRENT_PED_WEAPON_ENTITY_INDEX
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.