ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. setOcclusionsEnabled

Function

setOcclusionsEnabled

Server and clientMiscellaneousIdentical to MTA:SA

Turns the game's occlusion zones on or off. In Trilogy Hub what is hidden is computed by Unreal Engine, so the value is only stored (getOcclusionsEnabled) so that existing scripts run without errors.

Syntax

bool setOcclusionsEnabled(bool enabled)

Arguments

enabledbool
The setting.

Returns

true on success.

Example

setOcclusionsEnabled(false)

See also