GET_BEST_PED_WEAPON
Hash
0x8483E98E8B888AE2Runtime name
GetBestPedWeaponNamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x8483E98E8B888AE2Signature
Hash GET_BEST_PED_WEAPON(Ped ped, BOOL p1, BOOL p2);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
p1 | BOOL | — |
p2 | BOOL | — |
Returns Hash
Usage
local retval = GetBestPedWeapon(ped, p1, p2)
-- always works, by hash
local retval = Citizen.InvokeNative(0x8483E98E8B888AE2, ped, p1, p2, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetBestPedWeapon(ped, p1, p2);
// by hash
const retval = Citizen.invokeNative('0x8483E98E8B888AE2', ped, p1, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x8483E98E8B888AE2, ped, p1, p2);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.