RedM Natives

GET_BEST_PED_SHORTARM_GUID

Hash0xF52BD94B47CCF736
Runtime nameGetBestPedShortarmGuid
NamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207

Signature

void GET_BEST_PED_SHORTARM_GUID(Ped ped, Any* outGUID, BOOL p2, BOOL p3);

Parameters

NameTypeDescription
pedPed—
outGUIDAny*—
p2BOOL—
p3BOOL—

Returns void

Usage

Lua
local outGUID = GetBestPedShortarmGuid(ped, p2, p3)

-- always works, by hash
local outGUID = Citizen.InvokeNative(0xF52BD94B47CCF736, ped, Citizen.PointerValueInt(), p2, p3)
JavaScript and C#
JavaScript
const outGUID = GetBestPedShortarmGuid(ped, p2, p3);

// by hash
const outGUID = Citizen.invokeNative('0xF52BD94B47CCF736', ped, Citizen.pointerValueInt(), p2, p3);
C#
var outGUID = new OutputArgument();
Function.Call((Hash)0xF52BD94B47CCF736, ped, outGUID, p2, p3);
// outGUID.GetResult<int>()
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.

Sources

alloc8or RDR3 NativeDB

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