ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setMapObjectSyncEnabled

Function

setMapObjectSyncEnabled

ServerObjectsTrilogy Hub only

Turns synchronisation of San Andreas map objects between players on or off. On (default): when someone knocks over a hydrant or smashes a barrel, others see the same. Off: each player sees their own object state.

Syntax

bool setMapObjectSyncEnabled(bool state)

Arguments

statebool
true = sync on.

Returns

true on success.

Example

setMapObjectSyncEnabled(false)

See also