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

Function

isWorldSpecialPropertyEnabled

Server and clientWorldIdentical to MTA:SA

Returns whether a special world property is enabled: the value from setWorldSpecialPropertyEnabled or the default (e.g. randomfoliage and vehicle_engine_autostart on by default, hovercars off).

Syntax

bool isWorldSpecialPropertyEnabled(string property)

Arguments

propertystring
Property name.

Returns

true when enabled; false also for an unknown name.

Example

if isWorldSpecialPropertyEnabled("vehicle_engine_autostart") then
    outputDebugString("Silniki zapalaja sie same")
end

See also