IsResourceProtected

From Multi Theft Auto: Wiki

BETA: FROM VERSION 1.5.7 r20468 ONWARDS

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

BETA: FROM VERSION 1.5.7 r20468 ONWARDS