Jump to content

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.