setPedAlertness
SET_PED_ALERTNESS0xDBA71115ED9941A6The GTA V native SET_PED_ALERTNESS of the PED namespace, as LS:MP client scripts call it: the global function setPedAlertness, in JavaScript and in Lua.
setPedAlertness(ped: Ped, value: number): voidsetPedAlertness(ped: Ped, value: integer)Usage
JavaScript
setPedAlertness(ped, value);Lua
setPedAlertness(ped, value)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
value | int | number | integer |
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.
value ranges from 0 to 3.
Reference
- Namespace
- Ped PED
- In the game
void SET_PED_ALERTNESS(Ped ped, int value)- Hash
0xDBA71115ED9941A6