The Lab
WEAPON native

_GET_CORRECT_KIT_EMOTE_TWIRL_GUN

returns BOOL2 paramsbuild 1355

Writes the GUID of the gun suitable for the ped's kit twirl emote to weaponGuid. Returns true if one was found.

Signature

C
BOOL _GET_CORRECT_KIT_EMOTE_TWIRL_GUN(Ped ped, Any* weaponGuid); // 0xCD356B42C57BFE01 b1355

Parameters

#NameType
1pedPed
2weaponGuidAny* (out pointer)

Facts

Facts about _GET_CORRECT_KIT_EMOTE_TWIRL_GUN
Name
_GET_CORRECT_KIT_EMOTE_TWIRL_GUN
Hash
0xCD356B42C57BFE01
Namespace
Returns
BOOL
Game build
1355

Examples

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

Lua
local result, weaponGuid = Citizen.InvokeNative(0xCD356B42C57BFE01, -- _GET_CORRECT_KIT_EMOTE_TWIRL_GUN
  PlayerPedId(), -- Ped ped
  Citizen.PointerValueInt(), -- Any* weaponGuid
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, weaponGuid] = Citizen.invokeNative("0xCD356B42C57BFE01", // _GET_CORRECT_KIT_EMOTE_TWIRL_GUN
  PlayerPedId(), // Ped ped
  Citizen.pointerValueInt(), // Any* weaponGuid
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var weaponGuidArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xCD356B42C57BFE01, // _GET_CORRECT_KIT_EMOTE_TWIRL_GUN
  API.PlayerPedId(), // Ped ped
  weaponGuidArg // Any* weaponGuid
);
int weaponGuid = weaponGuidArg.GetResult<int>();
All WEAPON natives

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