The Lab
PED native

_SET_PED_MELEE_ACTION

returns BOOL2 paramsbuild 1207

Makes ped perform the melee action actionHash, returning true on success.

Signature

C
BOOL _SET_PED_MELEE_ACTION(Ped ped, Hash actionHash); // 0xC48AF420371C7407 b1207

Parameters

#NameType
1pedPed
2actionHashHash

Facts

Facts about _SET_PED_MELEE_ACTION
Name
_SET_PED_MELEE_ACTION
Hash
0xC48AF420371C7407
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xC48AF420371C7407, -- _SET_PED_MELEE_ACTION
  PlayerPedId(), -- Ped ped
  GetHashKey("name") -- Hash actionHash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xC48AF420371C7407", // _SET_PED_MELEE_ACTION
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash actionHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xC48AF420371C7407, // _SET_PED_MELEE_ACTION
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name") // Hash actionHash
);
All PED natives

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