PedClient

setPedAlertness

SET_PED_ALERTNESS0xDBA71115ED9941A6

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

SignatureJavaScript
setPedAlertness(ped: Ped, value: number): void
SignatureLua
setPedAlertness(ped: Ped, value: integer)

Usage

JavaScript
setPedAlertness(ped, value);
Lua
setPedAlertness(ped, value)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
valueintnumberinteger

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

Open in the interactive natives reference