_GET_CORRECT_KIT_EMOTE_TWIRL_GUN
_GET_BEST_* - _GET_CLOSEST_*
Hash
0xCD356B42C57BFE01Runtime name
GetCorrectKitEmoteTwirlGunNamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1355
Signature
BOOL _GET_CORRECT_KIT_EMOTE_TWIRL_GUN(Ped ped, Any* weaponGuid);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
weaponGuid | Any* | — |
Returns BOOL
Description
_GET_BEST_* - _GET_CLOSEST_*
Usage
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#
const [retval, weaponGuid] = GetCorrectKitEmoteTwirlGun(ped, weaponGuid);
// by hash
const [retval, weaponGuid] = Citizen.invokeNative('0xCD356B42C57BFE01', ped, Citizen.pointerValueIntInitialized(weaponGuid), Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.