RedM Natives

_GET_CORRECT_KIT_EMOTE_TWIRL_GUN

_GET_BEST_* - _GET_CLOSEST_*

Hash0xCD356B42C57BFE01
Runtime nameGetCorrectKitEmoteTwirlGun
NamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1355

Signature

BOOL _GET_CORRECT_KIT_EMOTE_TWIRL_GUN(Ped ped, Any* weaponGuid);

Parameters

NameTypeDescription
pedPed—
weaponGuidAny*—

Returns BOOL

Description

_GET_BEST_* - _GET_CLOSEST_*

Usage

Lua
local retval, weaponGuid = GetCorrectKitEmoteTwirlGun(ped, weaponGuid)

-- always works, by hash
local retval, weaponGuid = Citizen.InvokeNative(0xCD356B42C57BFE01, ped, Citizen.PointerValueIntInitialized(weaponGuid), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, weaponGuid] = GetCorrectKitEmoteTwirlGun(ped, weaponGuid);

// by hash
const [retval, weaponGuid] = Citizen.invokeNative('0xCD356B42C57BFE01', ped, Citizen.pointerValueIntInitialized(weaponGuid), Citizen.returnResultAnyway());
C#
var weaponGuid = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xCD356B42C57BFE01, ped, weaponGuid);
// weaponGuid.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.
  • 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.

Sources

alloc8or RDR3 NativeDB

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