IsResourceProtected
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 [-]
ServerScript Example Missing Function IsResourceProtected needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
-- todo
See Also
- abortRemoteRequest
- call
- fetchRemote
- getResourceConfig
- getResourceDynamicElementRoot
- getResourceExportedFunctions
- getResourceFromName
- getResourceName
- getResourceRootElement
- getResourceState
- getThisResource
- getRemoteRequests
- getRemoteRequestInfo