GIVE_WEAPON_TO_PED
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
WEAPONBuild 1207
Signature
lua
GiveWeaponToPed(PlayerPedId(), GetHashKey("..."), 0, true, true, 0, true, 0.0, 0.0, GetHashKey("..."), true, 0.0, true)
-- returns HashParameters
| Name | Type | Description |
|---|---|---|
| Ped | — | |
| Hash | — | |
| int | — | |
| BOOL | — | |
| BOOL | — | |
| int | — | |
| BOOL | — | |
| float | — | |
| float | — | |
| Hash | — | |
| BOOL | — | |
| float | — | |
| BOOL | — |
Usage
lua
GiveWeaponToPed(PlayerPedId(), GetHashKey("..."), 0, true, true, 0, true, 0.0, 0.0, GetHashKey("..."), true, 0.0, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
