IsResourceProtected

From Multi Theft Auto: Wiki
Revision as of 17:31, 31 May 2020 by Qaisjp (talk | contribs) (Created page with "__NOTOC__ {{Server function}} <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> {{New feature/item|3.0158|1.5.7|20468|...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This will check if a resource is currently protected, as defined in mtaserver.conf.

Syntax

bool isResourceProtected(resource theResource)

OOP Syntax Help! I don't understand this!

Method: resource:isProtected(...)
Variable: .protected


Required Arguments

  • theResource: the resource to check

Returns

Returns true if the resource is 'protected', false otherwise.

Example

Click to collapse [-]
Server
Accessories-text-editor.png Script Example Missing Function IsResourceProtected needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.
-- todo

See Also