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

Name
GIVE_WEAPON_TO_PED
Namespace
WEAPON
Native Hash0x5E3BDDBCB83F3D84
Typeint
First seen version1207

Native Parameters

  • Parameter 0
    Ped ped
    Ped to give the weapon to
  • Parameter 1
    Hash weaponHash
    Hash of the weapon
  • Parameter 2
    int ammoCount
  • Parameter 3
    BOOL equipNow
  • Parameter 4
    BOOL p4
    true
  • Parameter 5
    int group
  • Parameter 6
    BOOL p6
    false
  • Parameter 7
    int p7
  • Parameter 8
    int p8
  • Parameter 9
    BOOL 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.