RedM Natives

GET_BEST_PED_WEAPON

Hash0x8483E98E8B888AE2
Runtime nameGetBestPedWeapon
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x8483E98E8B888AE2

Signature

Hash GET_BEST_PED_WEAPON(Ped ped, BOOL p1, BOOL p2);

Parameters

NameTypeDescription
pedPed—
p1BOOL—
p2BOOL—

Returns Hash

Usage

Lua
local retval = GetBestPedWeapon(ped, p1, p2)

-- always works, by hash
local retval = Citizen.InvokeNative(0x8483E98E8B888AE2, ped, p1, p2, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetBestPedWeapon(ped, p1, p2);

// by hash
const retval = Citizen.invokeNative('0x8483E98E8B888AE2', ped, p1, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x8483E98E8B888AE2, ped, p1, p2);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.