{"hash":"0xC48AF420371C7407","ns":"PED","name":"_SET_PED_MELEE_ACTION","slug":"_SET_PED_MELEE_ACTION","official":false,"named":true,"luaName":"SetPedMeleeAction","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"},{"name":"actionHash","type":"Hash"}],"summary":"Requests a specific melee action, grapple move, or execution for the ped's next valid melee opportunity.","descriptions":[{"source":"alloc8or","format":"text","body":"Requests a specific melee action, grapple move, or execution for the ped's next valid melee opportunity.\nThe actionHash is resolved from the internal AR_* action table, such as AR_GRAPPLE_EXECUTION or AR_GRAPPLE_FRONT_FROM_FRONT.\nReturns false if the ped is invalid, not in a valid gameplay state, has no melee intelligence task, or the action hash is not registered."},{"source":"vorp","format":"text","body":"Sets the next melee attack of a ped eg AR_ATTACK_HAYMAKER_TO_HEAD_RIGHT_HAND_DIST_MED_V01 AR_GRAPPLE_MOUNT_FACEDOWN_FROM_FRONT"}],"examples":[],"aliases":["_SET_PED_NEXT_MELEE_ATTACK"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_SET_PED_MELEE_ACTION","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_SET_PED_MELEE_ACTION.md","snippets":{"lua":"local retval = SetPedMeleeAction(ped, actionHash)","luaInvoke":"local retval = Citizen.InvokeNative(0xC48AF420371C7407, ped, actionHash, Citizen.ReturnResultAnyway())","js":"const retval = SetPedMeleeAction(ped, actionHash);","jsInvoke":"const retval = Citizen.invokeNative('0xC48AF420371C7407', ped, actionHash, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xC48AF420371C7407, ped, actionHash);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}