PedClient

toggleScenarioPedCowerInPlace

TOGGLE_SCENARIO_PED_COWER_IN_PLACE0x9A77DFD295E29B09

The GTA V native TOGGLE_SCENARIO_PED_COWER_IN_PLACE of the PED namespace, as LS:MP client scripts call it: the global function toggleScenarioPedCowerInPlace, in JavaScript and in Lua.

SignatureJavaScript
toggleScenarioPedCowerInPlace(ped: Ped, toggle: boolean): void
SignatureLua
toggleScenarioPedCowerInPlace(ped: Ped, toggle: boolean)

Usage

JavaScript
toggleScenarioPedCowerInPlace(ped, toggle);
Lua
toggleScenarioPedCowerInPlace(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void TOGGLE_SCENARIO_PED_COWER_IN_PLACE(Ped ped, BOOL toggle)
Hash
0x9A77DFD295E29B09
Formerly
_SET_PED_SCARED_WHEN_USING_SCENARIO

Open in the interactive natives reference