The Lab
WEAPON native

_GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID

returns void3 paramsbuild 1232

Writes the GUIDs of the ped's primary and secondary quick swap weapons to the output pointers.

Signature

C
void _GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID(Ped ped, Any* guidPrimary, Any* guidSecondary); // 0xB7E52A058B07C7E2 b1232

Parameters

#NameType
1pedPed
2guidPrimaryAny* (out pointer)
3guidSecondaryAny* (out pointer)

Facts

Facts about _GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID
Name
_GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID
Hash
0xB7E52A058B07C7E2
Namespace
Returns
void
Game build
1232

Examples

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

Lua
local guidPrimary, guidSecondary = Citizen.InvokeNative(0xB7E52A058B07C7E2, -- _GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID
  PlayerPedId(), -- Ped ped
  Citizen.PointerValueInt(), -- Any* guidPrimary
  Citizen.PointerValueInt() -- Any* guidSecondary
)
print(guidPrimary, guidSecondary)
JavaScript
const [guidPrimary, guidSecondary] = Citizen.invokeNative("0xB7E52A058B07C7E2", // _GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID
  PlayerPedId(), // Ped ped
  Citizen.pointerValueInt(), // Any* guidPrimary
  Citizen.pointerValueInt() // Any* guidSecondary
);
console.log(guidPrimary, guidSecondary)
C#
var guidPrimaryArg = new OutputArgument();
var guidSecondaryArg = new OutputArgument();
Function.Call((Hash)0xB7E52A058B07C7E2, // _GET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID
  API.PlayerPedId(), // Ped ped
  guidPrimaryArg, // Any* guidPrimary
  guidSecondaryArg // Any* guidSecondary
);
int guidPrimary = guidPrimaryArg.GetResult<int>();
int guidSecondary = guidSecondaryArg.GetResult<int>();
All WEAPON natives

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