PedClient

setPedUsingActionMode

SET_PED_USING_ACTION_MODE0xD75ACCF5E0FB5367

The 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.

SignatureJavaScript
setPedUsingActionMode(ped: Ped, p1: boolean, p2: number, action: string): void
SignatureLua
setPedUsingActionMode(ped: Ped, p1: boolean, p2: integer, action: string)

Usage

JavaScript
setPedUsingActionMode(ped, p1, p2, action);
Lua
setPedUsingActionMode(ped, p1, p2, action)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
p1BOOLbooleanboolean
p2intnumberinteger
actionstringstringstring

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

Open in the interactive natives reference