GET_BEST_PED_WEAPON
Returns the hash of the best weapon the ped has.
Signature
Hash GET_BEST_PED_WEAPON(Ped ped, BOOL p1, BOOL p2); // 0x8483E98E8B888AE2 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | p1 | BOOL |
| 3 | p2 | BOOL |
Facts
| Name | GET_BEST_PED_WEAPON |
|---|---|
| Hash | 0x8483E98E8B888AE2 |
| Namespace | |
| Returns | Hash |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local hash = Citizen.InvokeNative(0x8483E98E8B888AE2, -- GET_BEST_PED_WEAPON
PlayerPedId(), -- Ped ped
false, -- BOOL p1
false, -- BOOL p2
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0x8483E98E8B888AE2", // GET_BEST_PED_WEAPON
PlayerPedId(), // Ped ped
false, // BOOL p1
false, // BOOL p2
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0x8483E98E8B888AE2, // GET_BEST_PED_WEAPON
API.PlayerPedId(), // Ped ped
false, // BOOL p1
false // BOOL p2
);Related WEAPON natives
- GET_BEST_PED_SHORTARM_GUID
- _GET_BEST_PED_WEAPON_IN_GROUP
- _GET_BEST_PED_WEAPON_IN_INVENTORY
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- GET_AMMO_IN_PED_WEAPON
- GET_CURRENT_PED_VEHICLE_WEAPON
- GET_CURRENT_PED_WEAPON
- GET_CURRENT_PED_WEAPON_ENTITY_INDEX
- GET_PED_AMMO_TYPE_FROM_WEAPON
- GET_PED_BACKUP_WEAPON
- GET_PED_LAST_WEAPON_IMPACT_COORD
- GET_PED_WEAPON_GUID_AT_ATTACH_POINT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.