The Lab
WEAPON native

GET_BEST_PED_SHORTARM_GUID

returns void4 paramsbuild 1207

Writes the GUID of the ped's best short arm (sidearm) to outGUID.

Signature

C
void GET_BEST_PED_SHORTARM_GUID(Ped ped, Any* outGUID, BOOL p2, BOOL p3); // 0xF52BD94B47CCF736 b1207

Parameters

#NameType
1pedPed
2outGUIDAny* (out pointer)
3p2BOOL
4p3BOOL

Facts

Facts about GET_BEST_PED_SHORTARM_GUID
Name
GET_BEST_PED_SHORTARM_GUID
Hash
0xF52BD94B47CCF736
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local outGUID = Citizen.InvokeNative(0xF52BD94B47CCF736, -- GET_BEST_PED_SHORTARM_GUID
  PlayerPedId(), -- Ped ped
  Citizen.PointerValueInt(), -- Any* outGUID
  false, -- BOOL p2
  false -- BOOL p3
)
print(outGUID)
JavaScript
const outGUID = Citizen.invokeNative("0xF52BD94B47CCF736", // GET_BEST_PED_SHORTARM_GUID
  PlayerPedId(), // Ped ped
  Citizen.pointerValueInt(), // Any* outGUID
  false, // BOOL p2
  false // BOOL p3
);
console.log(outGUID)
C#
var outGUIDArg = new OutputArgument();
Function.Call((Hash)0xF52BD94B47CCF736, // GET_BEST_PED_SHORTARM_GUID
  API.PlayerPedId(), // Ped ped
  outGUIDArg, // Any* outGUID
  false, // BOOL p2
  false // BOOL p3
);
int outGUID = outGUIDArg.GetResult<int>();
All WEAPON natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.