{"hash":"0x9F67929D98E7C6E8","ns":"WEAPON","name":"_GET_BEST_PED_WEAPON_IN_GROUP","slug":"_GET_BEST_PED_WEAPON_IN_GROUP","official":false,"named":true,"luaName":"GetBestPedWeaponInGroup","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"ped","type":"Ped"},{"name":"weaponGroup","type":"Hash"},{"name":"p2","type":"BOOL"},{"name":"p3","type":"BOOL"}],"summary":"If near your horse when called, weapons stored on your horse will be considered Returns weaponHash","descriptions":[{"source":"alloc8or","format":"text","body":"If near your horse when called, weapons stored on your horse will be considered\nReturns weaponHash"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/_GET_BEST_PED_WEAPON_IN_GROUP","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_GET_BEST_PED_WEAPON_IN_GROUP.md","snippets":{"lua":"local retval = GetBestPedWeaponInGroup(ped, weaponGroup, p2, p3)","luaInvoke":"local retval = Citizen.InvokeNative(0x9F67929D98E7C6E8, ped, weaponGroup, p2, p3, Citizen.ResultAsInteger())","js":"const retval = GetBestPedWeaponInGroup(ped, weaponGroup, p2, p3);","jsInvoke":"const retval = Citizen.invokeNative('0x9F67929D98E7C6E8', ped, weaponGroup, p2, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x9F67929D98E7C6E8, ped, weaponGroup, p2, p3);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}