IS_PED_PERFORMING_MELEE_ACTION
Returns true if ped is performing a melee action, optionally of a specific type.
Signature
BOOL IS_PED_PERFORMING_MELEE_ACTION(Ped ped, int p1, Hash p2); // 0xDCCA191DF9980FD7 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | p1 | int |
| 3 | p2 | Hash |
Facts
| Name | IS_PED_PERFORMING_MELEE_ACTION |
|---|---|
| Hash | 0xDCCA191DF9980FD7 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xDCCA191DF9980FD7, -- IS_PED_PERFORMING_MELEE_ACTION
PlayerPedId(), -- Ped ped
0, -- int p1
GetHashKey("name") -- Hash p2
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xDCCA191DF9980FD7", // IS_PED_PERFORMING_MELEE_ACTION
PlayerPedId(), // Ped ped
0, // int p1
GetHashKey("name"), // Hash p2
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xDCCA191DF9980FD7, // IS_PED_PERFORMING_MELEE_ACTION
API.PlayerPedId(), // Ped ped
0, // int p1
(uint)API.GetHashKey("name") // Hash p2
);Related PED natives
- IS_PED_FACING_PED
- IS_PED_HEADTRACKING_PED
- IS_PED_IN_MELEE_COMBAT
- IS_PED_USING_ACTION_MODE
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- _GET_PED_MELEE_ACTION_PHASE
- _IS_PED_ACTION_DISABLE_FLAG_ENABLED
- _IS_PED_TARGET_ACTION_DISABLE_FLAG_ENABLED
- _IS_PED_USING_ACTION_MODE_2
- _SET_PED_MELEE_ACTION
- IS_PED_PLANTING_BOMB
- IS_PED_PRONE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.