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

Function

getResourceGUIElement

The root of a resource's GUI elements. The GUI only exists on players' clients, so on the server the function always returns false.

Syntax

bool getResourceGUIElement(resource theResource)

Arguments

theResourceresource
The resource.Optional in MTA:SA: resource theResource = getThisResource()

Differences from MTA:SA

  • Arguments in a different colour differ from MTA:SA.

In MTA:SA

getResourceGUIElement(resource theResource = getThisResource())

Returns

Always false.

Example

outputServerLog(tostring(getResourceGUIElement(getThisResource()))) -- false

See also