PedClient

setSynchronizedSceneLooped

SET_SYNCHRONIZED_SCENE_LOOPED0xD9A897A4C6C2974F

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

SignatureJavaScript
setSynchronizedSceneLooped(sceneID: number, toggle: boolean): void
SignatureLua
setSynchronizedSceneLooped(sceneID: integer, toggle: boolean)

Usage

JavaScript
setSynchronizedSceneLooped(sceneID, toggle);
Lua
setSynchronizedSceneLooped(sceneID, toggle)

Parameters

ParameterTypeJavaScriptLua
sceneIDintnumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_SYNCHRONIZED_SCENE_LOOPED(int sceneID, BOOL toggle)
Hash
0xD9A897A4C6C2974F

Open in the interactive natives reference