setPedUsingActionMode
SET_PED_USING_ACTION_MODE0xD75ACCF5E0FB5367The GTA V native SET_PED_USING_ACTION_MODE of the PED namespace, as LS:MP client scripts call it: the global function setPedUsingActionMode, in JavaScript and in Lua.
setPedUsingActionMode(ped: Ped, p1: boolean, p2: number, action: string): voidsetPedUsingActionMode(ped: Ped, p1: boolean, p2: integer, action: string)Usage
JavaScript
setPedUsingActionMode(ped, p1, p2, action);Lua
setPedUsingActionMode(ped, p1, p2, action)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
p1 | BOOL | boolean | boolean |
p2 | int | number | integer |
action | string | string | string |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
p2 is usually -1 in the scripts. action is either 0 or "DEFAULT_ACTION".
Reference
- Namespace
- Ped PED
- In the game
void SET_PED_USING_ACTION_MODE(Ped ped, BOOL p1, int p2, const char* action)- Hash
0xD75ACCF5E0FB5367