The Lab
WEAPON native

_GET_WEAPON_EMOTE_VARIATION

returns int2 paramsbuild 1355

Returns the weapon emote variation used by the ped.

Signature

C
int _GET_WEAPON_EMOTE_VARIATION(Ped ped, int variation); // 0x86147D05FA831D3A b1355

Parameters

#NameType
1pedPed
2variationint

Facts

Facts about _GET_WEAPON_EMOTE_VARIATION
Name
_GET_WEAPON_EMOTE_VARIATION
Hash
0x86147D05FA831D3A
Namespace
Returns
int
Game build
1355

Examples

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

Lua
local result = Citizen.InvokeNative(0x86147D05FA831D3A, -- _GET_WEAPON_EMOTE_VARIATION
  PlayerPedId(), -- Ped ped
  0, -- int variation
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x86147D05FA831D3A", // _GET_WEAPON_EMOTE_VARIATION
  PlayerPedId(), // Ped ped
  0, // int variation
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x86147D05FA831D3A, // _GET_WEAPON_EMOTE_VARIATION
  API.PlayerPedId(), // Ped ped
  0 // int variation
);
All WEAPON natives

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