PedClient

setPedCanPlayAmbientBaseAnims

SET_PED_CAN_PLAY_AMBIENT_BASE_ANIMS0x0EB0585D15254740

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_PED_CAN_PLAY_AMBIENT_BASE_ANIMS(Ped ped, BOOL toggle)
Hash
0x0EB0585D15254740

Open in the interactive natives reference