Jump to content
View in the app

A better way to browse. Learn more.

RDR2Mods.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Native Details

  • NameGIVE_WEAPON_TO_PED
  • NamespaceWEAPON
  • Native Hash0x5E3BDDBCB83F3D84
  • Typeint
  • First seen version1207

Native Parameters

  • Parameter 0Ped ped
    Ped to give the weapon to
  • Parameter 1Hash weaponHash
    Hash of the weapon
  • Parameter 2int ammoCount
  • Parameter 3BOOL equipNow
  • Parameter 4BOOL p4
    true
  • Parameter 5int group
  • Parameter 6BOOL p6
    false
  • Parameter 7int p7
  • Parameter 8int p8
  • Parameter 9BOOL leftHanded

User Feedback

Recommended Comments

Hayden Almeida

Members

Example in C#:

public static void GivePlayerWeapon(int playerid, WeaponHash weapon, int ammo)
{
            if(Function.Call<bool>((Hash)0x8DECB02F88F428BC, playerid, (uint)weapon, 0, true)) // Has ped Got Weapon
                API.SetPedAmmo(playerid, (uint)weapon, ammo); // will give only ammo 
            else
                Function.Call((Hash)0x5E3BDDBCB83F3D84, playerid, (uint)weapon, ammo, false, true, 1, false, 0.5F, 1.0F, false, 0);
}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

Recently Browsing 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.