Game codeUnofficial name
PED::_SET_PED_MELEE_ACTION
0xC8E38BF83B750BDF ·RVA 0x04BD9C20
Signature
BOOL _SET_PED_MELEE_ACTION(Ped p0, int p1);
The scripts pass 3 values to this native; the decoded signature lists 2 (arguments the game doesn't read are left out).
Parameters 2
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | p0 |
the game looks it up as a ped. |
| 1 | int | p1 |
– |
Returns
BOOL
the game returns one byte.
Call it
// PED::_SET_PED_MELEE_ACTION
auto result = invoke<BOOL>(0xC8E38BF83B750BDF, p0, p1);// PED::_SET_PED_MELEE_ACTION
bool result = Function.Call<bool>((Hash)0xC8E38BF83B750BDF, p0, p1);-- PED::_SET_PED_MELEE_ACTION
local result = Citizen.InvokeNative(0xC8E38BF83B750BDF, p0, p1)// PED::_SET_PED_MELEE_ACTION
const result = Citizen.invokeNative("0xC8E38BF83B750BDF", p0, p1);Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.
Improve this page
Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.