# WEAPON Natives - Part 3 of 5
Red Dead Redemption 3 Native Functions Reference
**Namespace:** WEAPON
**Natives in this file:** 50
**Total natives in namespace:** 222
**Generated from:** RDR3natives JSON data
---
## _0xB0FB9B196A3D13F0
| Property | Value |
|----------|-------|
| Native Name | `_0xB0FB9B196A3D13F0` |
| Hash | `0xB0FB9B196A3D13F0` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `p0` (Any), `p1` (Any), `p2` (Any) |
### Parameters
- **`p0`** (`Any`)
- **`p1`** (`Any`)
- **`p2`** (`Any`)
### Usage
**Lua (Direct):**
```lua
_0xB0FB9B196A3D13F0(p0, p1, p2)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xB0FB9B196A3D13F0, p0, p1, p2)
```
---
## _SET_INSTANTLY_STORE_LONGARMS_ON_DISMOUNT
**Description:** Stores longarms to your horse on dismount
Params: p2 = 0
SET_[I - M]*
| Property | Value |
|----------|-------|
| Native Name | `_SET_INSTANTLY_STORE_LONGARMS_ON_DISMOUNT` |
| Hash | `0xB832F1A686B9B810` |
| Return Type | `void` |
| API Set | `client` |
| Build | `1207` |
| Parameters | `ped` (Ped), `storeLongarms` (BOOL), `p2` (int) |
### Parameters
- **`ped`** (`Ped`)
- **`storeLongarms`** (`BOOL`)
- **`p2`** (`int`)
### Usage
**Lua (Direct):**
```lua
SetInstantlyStoreLongarmsOnDismount(ped, storeLongarms, p2)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xB832F1A686B9B810, ped, storeLongarms, p2)
```
---
## _0xBC9444F2FF94A9C0
| Property | Value |
|----------|-------|
| Native Name | `_0xBC9444F2FF94A9C0` |
| Hash | `0xBC9444F2FF94A9C0` |
| Return Type | `Any` |
| Build | `1355` |
| Parameters | `p0` (Any) |
### Parameters
- **`p0`** (`Any`)
### Usage
**Lua (Direct):**
```lua
local result = _0xBC9444F2FF94A9C0(p0)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xBC9444F2FF94A9C0, p0)
```
---
## _DOES_PED_HAVE_PISTOL
**Description:** Returns whether the ped has a pistol p1: 0 or 1
| Property | Value |
|----------|-------|
| Native Name | `_DOES_PED_HAVE_PISTOL` |
| Hash | `0xBFCA7AFABF9D7967` |
| Return Type | `BOOL` |
| API Set | `client` |
| Build | `1207` |
| Parameters | `ped` (Ped), `p1` (int) |
### Parameters
- **`ped`** (`Ped`)
- **`p1`** (`int`)
### Usage
**Lua (Direct):**
```lua
local result = DoesPedHavePistol(ped, p1)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xBFCA7AFABF9D7967, ped, p1)
```
---
## _0xC5899C4CD2E2495D
| Property | Value |
|----------|-------|
| Native Name | `_0xC5899C4CD2E2495D` |
| Hash | `0xC5899C4CD2E2495D` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `p0` (Any) |
### Parameters
- **`p0`** (`Any`)
### Usage
**Lua (Direct):**
```lua
_0xC5899C4CD2E2495D(p0)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xC5899C4CD2E2495D, p0)
```
---
## _0xD2209866B0CB72EA
| Property | Value |
|----------|-------|
| Native Name | `_0xD2209866B0CB72EA` |
| Hash | `0xD2209866B0CB72EA` |
| Return Type | `Any` |
| Build | `1207` |
| Parameters | `p0` (Any), `p1` (Any) |
### Parameters
- **`p0`** (`Any`)
- **`p1`** (`Any`)
### Usage
**Lua (Direct):**
```lua
local result = _0xD2209866B0CB72EA(p0, p1)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xD2209866B0CB72EA, p0, p1)
```
---
## _0xD4C6E24D955FF061
| Property | Value |
|----------|-------|
| Native Name | `_0xD4C6E24D955FF061` |
| Hash | `0xD4C6E24D955FF061` |
| Return Type | `void` |
| Build | `1311` |
| Parameters | `p0` (Any) |
### Parameters
- **`p0`** (`Any`)
### Usage
**Lua (Direct):**
```lua
_0xD4C6E24D955FF061(p0)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xD4C6E24D955FF061, p0)
```
---
## _0xD53846B9C931C181
| Property | Value |
|----------|-------|
| Native Name | `_0xD53846B9C931C181` |
| Hash | `0xD53846B9C931C181` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `p0` (Any), `p1` (Any), `p2` (Any) |
### Parameters
- **`p0`** (`Any`)
- **`p1`** (`Any`)
- **`p2`** (`Any`)
### Usage
**Lua (Direct):**
```lua
_0xD53846B9C931C181(p0, p1, p2)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xD53846B9C931C181, p0, p1, p2)
```
---
## _0xD63B4BA3A02A99E0
| Property | Value |
|----------|-------|
| Native Name | `_0xD63B4BA3A02A99E0` |
| Hash | `0xD63B4BA3A02A99E0` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `p0` (Any), `p1` (Any) |
### Parameters
- **`p0`** (`Any`)
- **`p1`** (`Any`)
### Usage
**Lua (Direct):**
```lua
_0xD63B4BA3A02A99E0(p0, p1)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xD63B4BA3A02A99E0, p0, p1)
```
---
## _0xE9B3FEC825668291
| Property | Value |
|----------|-------|
| Native Name | `_0xE9B3FEC825668291` |
| Hash | `0xE9B3FEC825668291` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `p0` (Any), `p1` (Any), `p2` (Any) |
### Parameters
- **`p0`** (`Any`)
- **`p1`** (`Any`)
- **`p2`** (`Any`)
### Usage
**Lua (Direct):**
```lua
_0xE9B3FEC825668291(p0, p1, p2)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xE9B3FEC825668291, p0, p1, p2)
```
---
## _IS_WEAPON_CLOSE_RANGE
**Description:** _IS_WEAPON_CLOSE_RANGE?
returns true when it's lassos , melee, thrown weapons (matchetes and unarmed return false)
all guns ,bows and animal weapons return false
| Property | Value |
|----------|-------|
| Native Name | `_IS_WEAPON_CLOSE_RANGE` |
| Hash | `0xEA522F991E120D45` |
| Return Type | `BOOL` |
| API Set | `client` |
| Build | `1207` |
| Parameters | `weaponHash` (Hash) |
### Parameters
- **`weaponHash`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
local result = IsWeaponCloseRange(weaponHash)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xEA522F991E120D45, weaponHash)
```
---
## _0xEC97101A8F311282
| Property | Value |
|----------|-------|
| Native Name | `_0xEC97101A8F311282` |
| Hash | `0xEC97101A8F311282` |
| Return Type | `Any` |
| Build | `1207` |
| Parameters | `p0` (Any) |
### Parameters
- **`p0`** (`Any`)
### Usage
**Lua (Direct):**
```lua
local result = _0xEC97101A8F311282(p0)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xEC97101A8F311282, p0)
```
---
## _0xECBB26529A737EF6
| Property | Value |
|----------|-------|
| Native Name | `_0xECBB26529A737EF6` |
| Hash | `0xECBB26529A737EF6` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `p0` (Any) |
### Parameters
- **`p0`** (`Any`)
### Usage
**Lua (Direct):**
```lua
_0xECBB26529A737EF6(p0)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xECBB26529A737EF6, p0)
```
---
## _0xF08D8FEB455F2C8C
| Property | Value |
|----------|-------|
| Native Name | `_0xF08D8FEB455F2C8C` |
| Hash | `0xF08D8FEB455F2C8C` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `ped` (Ped), `toggle` (BOOL) |
### Parameters
- **`ped`** (`Ped`)
- **`toggle`** (`BOOL`)
### Usage
**Lua (Direct):**
```lua
_0xF08D8FEB455F2C8C(ped, toggle)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xF08D8FEB455F2C8C, ped, toggle)
```
---
## _0xF252A85B8F3F8C58
| Property | Value |
|----------|-------|
| Native Name | `_0xF252A85B8F3F8C58` |
| Hash | `0xF252A85B8F3F8C58` |
| Return Type | `BOOL` |
| Build | `1207` |
| Parameters | `weaponCollection` (Hash), `dualwieldVariant` (Hash) |
### Parameters
- **`weaponCollection`** (`Hash`)
- **`dualwieldVariant`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
local result = _0xF252A85B8F3F8C58(weaponCollection, dualwieldVariant)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xF252A85B8F3F8C58, weaponCollection, dualwieldVariant)
```
---
## _0xF2F585411E748B9C
| Property | Value |
|----------|-------|
| Native Name | `_0xF2F585411E748B9C` |
| Hash | `0xF2F585411E748B9C` |
| Return Type | `Any` |
| Build | `1207` |
| Parameters | `p0` (Any), `p1` (Any) |
### Parameters
- **`p0`** (`Any`)
- **`p1`** (`Any`)
### Usage
**Lua (Direct):**
```lua
local result = _0xF2F585411E748B9C(p0, p1)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xF2F585411E748B9C, p0, p1)
```
---
## _0xF8204EF17410BF43
**Description:** Returns weaponHash
| Property | Value |
|----------|-------|
| Native Name | `_0xF8204EF17410BF43` |
| Hash | `0xF8204EF17410BF43` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `weaponGroupHash` (Hash), `p1` (float), `p2` (float), `p3` (Any) |
### Parameters
- **`weaponGroupHash`** (`Hash`)
- **`p1`** (`float`)
- **`p2`** (`float`)
- **`p3`** (`Any`)
### Usage
**Lua (Direct):**
```lua
local result = _0xF8204EF17410BF43(weaponGroupHash, p1, p2, p3)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xF8204EF17410BF43, weaponGroupHash, p1, p2, p3)
```
---
## _ADD_AMMO_TO_PED
**Description:** addReason:
enum eAddItemReason : Hash
{
ADD_REASON_AWARDS = 0xB784AD1E,
ADD_REASON_CREATE_CHARACTER = 0xE2C4FF71,
ADD_REASON_DEBUG = 0x5C05C64D,
ADD_REASON_DEFAULT = 0x2CD419DC,
ADD_REASON_GET_INVENTORY = 0xD8188685,
ADD_REASON_INCENTIVE = 0x8ADC2E95,
ADD_REASON_LOADOUT = 0xCA3454E6,
ADD_REASON_LOAD_SAVEGAME = 0x56212906,
ADD_REASON_LOOTED = 0xCA806A55,
ADD_REASON_MELEE = 0x7B9BDCE7,
ADD_REASON_MP_MISSION = 0xEC0E0194,
ADD_REASON_NOTIFICATION = 0xC56292D2,
ADD_REASON_PICKUP = 0x1A770E22,
ADD_REASON_PURCHASED = 0x4A6726C9,
ADD_REASON_SET_AMOUNT = 0x4504731E,
ADD_REASON_SYNCING = 0x8D4B4FF4,
ADD_REASON_USE_FAILED = 0xD385B670
};
| Property | Value |
|----------|-------|
| Native Name | `_ADD_AMMO_TO_PED` |
| Hash | `0xB190BCA3F4042F95` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `ped` (Ped), `weaponHash` (Hash), `amount` (int), `addReason` (Hash) |
### Parameters
- **`ped`** (`Ped`)
- **`weaponHash`** (`Hash`)
- **`amount`** (`int`)
- **`addReason`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
AddAmmoToPed(ped, weaponHash, amount, addReason)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xB190BCA3F4042F95, ped, weaponHash, amount, addReason)
```
---
## _ADD_AMMO_TO_PED_BY_TYPE
**Description:** addReason: see _ADD_AMMO_TO_PED
| Property | Value |
|----------|-------|
| Native Name | `_ADD_AMMO_TO_PED_BY_TYPE` |
| Hash | `0x106A811C6D3035F3` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `ped` (Ped), `ammoType` (Hash), `amount` (int), `addReason` (Hash) |
### Parameters
- **`ped`** (`Ped`)
- **`ammoType`** (`Hash`)
- **`amount`** (`int`)
- **`addReason`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
AddAmmoToPedByType(ped, ammoType, amount, addReason)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0x106A811C6D3035F3, ped, ammoType, amount, addReason)
```
---
## _CLEAR_PED_LAST_WEAPON_DAMAGE
| Property | Value |
|----------|-------|
| Native Name | `_CLEAR_PED_LAST_WEAPON_DAMAGE` |
| Hash | `0x087D8F4BC65F68E4` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `ped` (Ped) |
### Parameters
- **`ped`** (`Ped`)
### Usage
**Lua (Direct):**
```lua
ClearPedLastWeaponDamage(ped)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0x087D8F4BC65F68E4, ped)
```
---
## _CREATE_WEAPON_OBJECT
| Property | Value |
|----------|-------|
| Native Name | `_CREATE_WEAPON_OBJECT` |
| Hash | `0x9888652B8BA77F73` |
| Return Type | `Object` |
| Build | `1207` |
| Parameters | `weaponHash` (Hash), `ammoCount` (int), `x` (float), `y` (float), `z` (float), `showWorldModel` (BOOL), `scale` (float) |
### Parameters
- **`weaponHash`** (`Hash`)
- **`ammoCount`** (`int`)
- **`x`** (`float`)
- **`y`** (`float`)
- **`z`** (`float`)
- **`showWorldModel`** (`BOOL`)
- **`scale`** (`float`)
### Usage
**Lua (Direct):**
```lua
local result = CreateWeaponObject(weaponHash, ammoCount, x, y, z, showWorldModel, scale)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x9888652B8BA77F73, weaponHash, ammoCount, x, y, z, showWorldModel, scale)
```
---
## _DISABLE_AMMO_TYPE_FOR_PED
| Property | Value |
|----------|-------|
| Native Name | `_DISABLE_AMMO_TYPE_FOR_PED` |
| Hash | `0xAA5A52204E077883` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `ped` (Ped), `ammoHash` (Hash) |
### Parameters
- **`ped`** (`Ped`)
- **`ammoHash`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
DisableAmmoTypeForPed(ped, ammoHash)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xAA5A52204E077883, ped, ammoHash)
```
---
## _DISABLE_AMMO_TYPE_FOR_PED_WEAPON
| Property | Value |
|----------|-------|
| Native Name | `_DISABLE_AMMO_TYPE_FOR_PED_WEAPON` |
| Hash | `0xF0D728EEA3C99775` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `ped` (Ped), `weaponHash` (Hash), `ammoHash` (Hash) |
### Parameters
- **`ped`** (`Ped`)
- **`weaponHash`** (`Hash`)
- **`ammoHash`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
DisableAmmoTypeForPedWeapon(ped, weaponHash, ammoHash)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xF0D728EEA3C99775, ped, weaponHash, ammoHash)
```
---
## _ENABLE_AMMO_TYPE_FOR_PED
| Property | Value |
|----------|-------|
| Native Name | `_ENABLE_AMMO_TYPE_FOR_PED` |
| Hash | `0x3B7B7908B7ADFB4B` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `ped` (Ped), `weaponHash` (Hash) |
### Parameters
- **`ped`** (`Ped`)
- **`weaponHash`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
EnableAmmoTypeForPed(ped, weaponHash)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0x3B7B7908B7ADFB4B, ped, weaponHash)
```
---
## _ENABLE_AMMO_TYPE_FOR_PED_WEAPON
| Property | Value |
|----------|-------|
| Native Name | `_ENABLE_AMMO_TYPE_FOR_PED_WEAPON` |
| Hash | `0x23FB9FACA28779C1` |
| Return Type | `void` |
| Build | `1207` |
| Parameters | `ped` (Ped), `weaponHash` (Hash), `ammoHash` (Hash) |
### Parameters
- **`ped`** (`Ped`)
- **`weaponHash`** (`Hash`)
- **`ammoHash`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
EnableAmmoTypeForPedWeapon(ped, weaponHash, ammoHash)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0x23FB9FACA28779C1, ped, weaponHash, ammoHash)
```
---
## _ENABLE_WEAPON_RESTORE
| Property | Value |
|----------|-------|
| Native Name | `_ENABLE_WEAPON_RESTORE` |
| Hash | `0xC395355843BE134B` |
| Return Type | `BOOL` |
| Build | `1207` |
| Parameters | `ped` (Ped) |
### Parameters
- **`ped`** (`Ped`)
### Usage
**Lua (Direct):**
```lua
local result = EnableWeaponRestore(ped)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xC395355843BE134B, ped)
```
---
## _GET_AMMO_IN_CLIP_BY_INVENTORY_UID
| Property | Value |
|----------|-------|
| Native Name | `_GET_AMMO_IN_CLIP_BY_INVENTORY_UID` |
| Hash | `0x678F00858980F516` |
| Return Type | `BOOL` |
| Build | `1207` |
| Parameters | `ped` (Ped), `ammo` (int*), `inventoryUid` (Any*) |
### Parameters
- **`ped`** (`Ped`)
- **`ammo`** (`int*`)
- **`inventoryUid`** (`Any*`)
### Usage
**Lua (Direct):**
```lua
local result = GetAmmoInClipByInventoryUid(ped, ammo, inventoryUid)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x678F00858980F516, ped, ammo, inventoryUid)
```
---
## _GET_AMMO_TYPE_FOR_WEAPON
| Property | Value |
|----------|-------|
| Native Name | `_GET_AMMO_TYPE_FOR_WEAPON` |
| Hash | `0x5C2EA6C44F515F34` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `weaponHash` (Hash) |
### Parameters
- **`weaponHash`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
local result = GetAmmoTypeForWeapon(weaponHash)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x5C2EA6C44F515F34, weaponHash)
```
---
## _GET_BEST_PED_WEAPON_IN_GROUP
**Description:** If near your horse when called, weapons stored on your horse will be considered
Returns weaponHash
| Property | Value |
|----------|-------|
| Native Name | `_GET_BEST_PED_WEAPON_IN_GROUP` |
| Hash | `0x9F67929D98E7C6E8` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `ped` (Ped), `weaponGroup` (Hash), `p2` (BOOL), `p3` (BOOL) |
### Parameters
- **`ped`** (`Ped`)
- **`weaponGroup`** (`Hash`)
- **`p2`** (`BOOL`)
- **`p3`** (`BOOL`)
### Usage
**Lua (Direct):**
```lua
local result = GetBestPedWeaponInGroup(ped, weaponGroup, p2, p3)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x9F67929D98E7C6E8, ped, weaponGroup, p2, p3)
```
---
## _GET_BEST_PED_WEAPON_IN_INVENTORY
| Property | Value |
|----------|-------|
| Native Name | `_GET_BEST_PED_WEAPON_IN_INVENTORY` |
| Hash | `0x7B98500614C8E8B8` |
| Return Type | `Any` |
| Build | `1232` |
| Parameters | `ped` (Ped), `p1` (Any), `guidPrimary` (Any*) |
### Parameters
- **`ped`** (`Ped`)
- **`p1`** (`Any`)
- **`guidPrimary`** (`Any*`)
### Usage
**Lua (Direct):**
```lua
local result = GetBestPedWeaponInInventory(ped, p1, guidPrimary)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x7B98500614C8E8B8, ped, p1, guidPrimary)
```
---
## _GET_CAN_TWIRL_WEAPON
| Property | Value |
|----------|-------|
| Native Name | `_GET_CAN_TWIRL_WEAPON` |
| Hash | `0x6554ECCE226F2A2A` |
| Return Type | `BOOL` |
| Build | `1207` |
| Parameters | `weaponHash` (Hash) |
### Parameters
- **`weaponHash`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
local result = GetCanTwirlWeapon(weaponHash)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x6554ECCE226F2A2A, weaponHash)
```
---
## _GET_CORRECT_KIT_EMOTE_TWIRL_GUN
**Description:** _GET_BEST_* - _GET_CLOSEST_*
| Property | Value |
|----------|-------|
| Native Name | `_GET_CORRECT_KIT_EMOTE_TWIRL_GUN` |
| Hash | `0xCD356B42C57BFE01` |
| Return Type | `BOOL` |
| Build | `1355` |
| Parameters | `ped` (Ped), `weaponGuid` (Any*) |
### Parameters
- **`ped`** (`Ped`)
- **`weaponGuid`** (`Any*`)
### Usage
**Lua (Direct):**
```lua
local result = GetCorrectKitEmoteTwirlGun(ped, weaponGuid)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xCD356B42C57BFE01, ped, weaponGuid)
```
---
## _GET_CURRENT_AMMO_TYPE_FROM_GUID
**Description:** Returns ammoHash
| Property | Value |
|----------|-------|
| Native Name | `_GET_CURRENT_AMMO_TYPE_FROM_GUID` |
| Hash | `0xAF9D167A5656D6A6` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `ped` (Ped), `weaponGuid` (Any*) |
### Parameters
- **`ped`** (`Ped`)
- **`weaponGuid`** (`Any*`)
### Usage
**Lua (Direct):**
```lua
local result = GetCurrentAmmoTypeFromGuid(ped, weaponGuid)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xAF9D167A5656D6A6, ped, weaponGuid)
```
---
## _GET_CURRENT_PED_WEAPON_AMMO_TYPE
**Description:** Returns ammoHash from weaponObject (Returned by 0x6CA484C9A7377E4F)
| Property | Value |
|----------|-------|
| Native Name | `_GET_CURRENT_PED_WEAPON_AMMO_TYPE` |
| Hash | `0x7E7B19A4355FEE13` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `ped` (Ped), `weaponObject` (Object) |
### Parameters
- **`ped`** (`Ped`)
- **`weaponObject`** (`Object`)
### Usage
**Lua (Direct):**
```lua
local result = GetCurrentPedWeaponAmmoType(ped, weaponObject)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x7E7B19A4355FEE13, ped, weaponObject)
```
---
## _GET_DEFAULT_PED_WEAPON_COLLECTION
**Description:** Returns weaponCollection Hash
Example: RE_POLICECHASE_MALES_01: Carbine Repeater + Knife, LO_AGRO_PED
| Property | Value |
|----------|-------|
| Native Name | `_GET_DEFAULT_PED_WEAPON_COLLECTION` |
| Hash | `0xD42514C182121C23` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `pedModel` (Hash) |
### Parameters
- **`pedModel`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
local result = GetDefaultPedWeaponCollection(pedModel)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xD42514C182121C23, pedModel)
```
---
## _GET_DEFAULT_UNARMED_WEAPON_HASH
**Description:** Returns the ped's default unarmed weapon hash as defined in CPedModelInfo (DefaultUnarmedWeapon).
Falls back to WEAPON_UNARMED if the ped doesn't have a valid model info pointer, or 0 if the ped doesn't exist.
| Property | Value |
|----------|-------|
| Native Name | `_GET_DEFAULT_UNARMED_WEAPON_HASH` |
| Hash | `0x08FF1099ED2E6E21` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `ped` (Ped) |
### Parameters
- **`ped`** (`Ped`)
### Usage
**Lua (Direct):**
```lua
local result = GetDefaultUnarmedWeaponHash(ped)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x08FF1099ED2E6E21, ped)
```
---
## _GET_MAX_LOCKON_DISTANCE_OF_CURRENT_PED_WEAPON
| Property | Value |
|----------|-------|
| Native Name | `_GET_MAX_LOCKON_DISTANCE_OF_CURRENT_PED_WEAPON` |
| Hash | `0x79B1A6E780266DB0` |
| Return Type | `float` |
| Build | `1207` |
| Parameters | `ped` (Ped) |
### Parameters
- **`ped`** (`Ped`)
### Usage
**Lua (Direct):**
```lua
local result = GetMaxLockonDistanceOfCurrentPedWeapon(ped)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x79B1A6E780266DB0, ped)
```
---
## _GET_PED_CURRENT_HELD_WEAPON
**Description:** Returns eCurrentHeldWeapon
_GET_R* - _GET_T*
| Property | Value |
|----------|-------|
| Native Name | `_GET_PED_CURRENT_HELD_WEAPON` |
| Hash | `0x8425C5F057012DAB` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `ped` (Ped) |
### Parameters
- **`ped`** (`Ped`)
### Usage
**Lua (Direct):**
```lua
local result = GetPedCurrentHeldWeapon(ped)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x8425C5F057012DAB, ped)
```
---
## _GET_PED_GUN_SPINNING_EQUIPPED_KIT_EMOTE_TWIRL
**Description:** Returns emote Hash
| Property | Value |
|----------|-------|
| Native Name | `_GET_PED_GUN_SPINNING_EQUIPPED_KIT_EMOTE_TWIRL` |
| Hash | `0x2C4FEC3D0EFA9FC0` |
| Return Type | `Hash` |
| Build | `1355` |
| Parameters | `ped` (Ped) |
### Parameters
- **`ped`** (`Ped`)
### Usage
**Lua (Direct):**
```lua
local result = GetPedGunSpinningEquippedKitEmoteTwirl(ped)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x2C4FEC3D0EFA9FC0, ped)
```
---
## _GET_PED_GUN_SPINNING_HASH_FROM_WEAPON_EMOTE_VARIATION
**Description:** Returns iSpinHash / iVariationSpin
| Property | Value |
|----------|-------|
| Native Name | `_GET_PED_GUN_SPINNING_HASH_FROM_WEAPON_EMOTE_VARIATION` |
| Hash | `0xF3B1620B920D1708` |
| Return Type | `Hash` |
| Build | `1355` |
| Parameters | `ped` (Ped), `weaponEmoteVariation` (int) |
### Parameters
- **`ped`** (`Ped`)
- **`weaponEmoteVariation`** (`int`)
### Usage
**Lua (Direct):**
```lua
local result = GetPedGunSpinningHashFromWeaponEmoteVariation(ped, weaponEmoteVariation)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xF3B1620B920D1708, ped, weaponEmoteVariation)
```
---
## _GET_PED_HOGTIE_WEAPON
| Property | Value |
|----------|-------|
| Native Name | `_GET_PED_HOGTIE_WEAPON` |
| Hash | `0x90EB1CB189923587` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `ped` (Ped) |
### Parameters
- **`ped`** (`Ped`)
### Usage
**Lua (Direct):**
```lua
local result = GetPedHogtieWeapon(ped)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x90EB1CB189923587, ped)
```
---
## _GET_PED_WEAPON_IN_SLOT
**Description:** slotHash is usually just the weaponHash name, but WEAPON_* is replaced with SLOT_*
| Property | Value |
|----------|-------|
| Native Name | `_GET_PED_WEAPON_IN_SLOT` |
| Hash | `0xDBC4B552B2AE9A83` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `ped` (Ped), `slotHash` (Hash) |
### Parameters
- **`ped`** (`Ped`)
- **`slotHash`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
local result = GetPedWeaponInSlot(ped, slotHash)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xDBC4B552B2AE9A83, ped, slotHash)
```
---
## _GET_PED_WEAPON_OBJECT
**Description:** _GET_M* - _GET_PED_A*
| Property | Value |
|----------|-------|
| Native Name | `_GET_PED_WEAPON_OBJECT` |
| Hash | `0x6CA484C9A7377E4F` |
| Return Type | `Object` |
| Build | `1207` |
| Parameters | `ped` (Ped), `p1` (BOOL) |
### Parameters
- **`ped`** (`Ped`)
- **`p1`** (`BOOL`)
### Usage
**Lua (Direct):**
```lua
local result = GetPedWeaponObject(ped, p1)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x6CA484C9A7377E4F, ped, p1)
```
---
## _GET_PED_WORST_WEAPON
| Property | Value |
|----------|-------|
| Native Name | `_GET_PED_WORST_WEAPON` |
| Hash | `0xDA37A053C1522F5D` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `ped` (Ped), `p1` (BOOL), `p2` (BOOL), `p3` (BOOL) |
### Parameters
- **`ped`** (`Ped`)
- **`p1`** (`BOOL`)
- **`p2`** (`BOOL`)
- **`p3`** (`BOOL`)
### Usage
**Lua (Direct):**
```lua
local result = GetPedWorstWeapon(ped, p1, p2, p3)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xDA37A053C1522F5D, ped, p1, p2, p3)
```
---
## _GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID
**Description:** Outputs cached guids
| Property | Value |
|----------|-------|
| Native Name | `_GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID` |
| Hash | `0xB7E52A058B07C7E2` |
| Return Type | `void` |
| Build | `1232` |
| Parameters | `ped` (Ped), `guidPrimary` (Any*), `guidSecondary` (Any*) |
### Parameters
- **`ped`** (`Ped`)
- **`guidPrimary`** (`Any*`)
- **`guidSecondary`** (`Any*`)
### Usage
**Lua (Direct):**
```lua
GetPlayerPedQuickSwapWeaponByGuid(ped, guidPrimary, guidSecondary)
```
**Lua (Hash):**
```lua
Citizen.InvokeNative(0xB7E52A058B07C7E2, ped, guidPrimary, guidSecondary)
```
---
## _GET_WEAPONTYPE_MODEL
**Description:** Gets the model hash from the weapon hash.
| Property | Value |
|----------|-------|
| Native Name | `_GET_WEAPONTYPE_MODEL` |
| Hash | `0xF70825EB340E7D15` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `weaponHash` (Hash) |
### Parameters
- **`weaponHash`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
local result = GetWeapontypeModel(weaponHash)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xF70825EB340E7D15, weaponHash)
```
---
## _GET_WEAPONTYPE_SLOT
**Description:** Returns hash where WEAPON_ is replaced with SLOT_
| Property | Value |
|----------|-------|
| Native Name | `_GET_WEAPONTYPE_SLOT` |
| Hash | `0x46F032B8DDF46CDE` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `weaponHash` (Hash) |
### Parameters
- **`weaponHash`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
local result = GetWeapontypeSlot(weaponHash)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x46F032B8DDF46CDE, weaponHash)
```
---
## _GET_WEAPON_ATTACH_POINT
**Description:** Returns WeaponAttachPoint
| Property | Value |
|----------|-------|
| Native Name | `_GET_WEAPON_ATTACH_POINT` |
| Hash | `0xCAD4FE9398820D24` |
| Return Type | `int` |
| Build | `1207` |
| Parameters | `ped` (Ped), `attachPoint` (int) |
### Parameters
- **`ped`** (`Ped`)
- **`attachPoint`** (`int`)
### Usage
**Lua (Direct):**
```lua
local result = GetWeaponAttachPoint(ped, attachPoint)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0xCAD4FE9398820D24, ped, attachPoint)
```
---
## _GET_WEAPON_COMPONENT_TYPE_MODEL
| Property | Value |
|----------|-------|
| Native Name | `_GET_WEAPON_COMPONENT_TYPE_MODEL` |
| Hash | `0x59DE03442B6C9598` |
| Return Type | `Hash` |
| Build | `1207` |
| Parameters | `componentHash` (Hash) |
### Parameters
- **`componentHash`** (`Hash`)
### Usage
**Lua (Direct):**
```lua
local result = GetWeaponComponentTypeModel(componentHash)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x59DE03442B6C9598, componentHash)
```
---
## _GET_WEAPON_DAMAGE
**Description:** Related to weapon visual damage, not actual damage.
| Property | Value |
|----------|-------|
| Native Name | `_GET_WEAPON_DAMAGE` |
| Hash | `0x904103D5D2333977` |
| Return Type | `float` |
| Build | `1207` |
| Parameters | `weaponObject` (Object) |
### Parameters
- **`weaponObject`** (`Object`)
### Usage
**Lua (Direct):**
```lua
local result = GetWeaponDamage(weaponObject)
```
**Lua (Hash):**
```lua
local result = Citizen.InvokeNative(0x904103D5D2333977, weaponObject)
```
---
*End of WEAPON natives part 3*