GiveWeaponToPed — RedM Natives
0x5E3BDDBCB83F3D84 · WEAPON · all
`` Gives the ped the weapon. List: https://github.com/femga/rdr3_discoveries/blob/master/weapons/weapons.lua Params: p7 is 0.5f, and p8 is 1.0f. p11 and p12 are both 0 in R* Scripts attachPoint: see SET_CURRENT_PED_WEAPON addReason: see _ADD_AMMO_TO_PED permanentDegradation: default 0.5, any higher than 0 it will automatically make the weapon worn, you can also adjust the value to change the weapons maximum cleanliness ``
Parameters
| Name | Type |
|---|---|
| ped | Ped |
| weaponHash | Hash |
| ammoCount | int |
| bForceInHand | BOOL |
| bForceInHolster | BOOL |
| attachPoint | int |
| bAllowMultipleCopies | BOOL |
| p7 | float |
| p8 | float |
| addReason | Hash |
| bIgnoreUnlocks | BOOL |
| permanentDegradation | float |
| p12 | BOOL |
Returns
Hash