Template:Resource functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Rework)
 
(39 intermediate revisions by 23 users not shown)
Line 1: Line 1:
*[[getResources]]
<includeonly>
<ul>
{{#if: {{{1|}}}
| {{#ifeq: {{lc:{{{1}}}}} | client
|
    <!-- CLIENT functions -->
    <li>[[getResourceGUIElement]]</li>
| {{#ifeq: {{lc:{{{1}}}}} | server
|
    <!-- SERVER functions -->
    <li>[[addResourceConfig]]</li>
    <li>[[addResourceMap]]</li>
    <li>[[callRemote]]</li>
    <li>[[copyResource]]</li>
    <li>[[createResource]]</li>
    <li>[[deleteResource]]</li>
    <li>[[getResourceACLRequests]]</li>
    <li>[[getResourceInfo]]</li>
    <li>[[getResourceLastStartTime]]</li>
    <li>[[getResourceLoadFailureReason]]</li>
    <li>[[getResourceLoadTime]]</li>
    <li>[[getResourceMapRootElement]]</li>
    <li>[[getResourceOrganizationalPath]]</li>
    <li>[[getResources]]</li>
    <li>[[isResourceArchived]]</li>
    <li>[[isResourceProtected]]</li>
    <li>[[refreshResources]]</li>
    <li>[[removeResourceFile]]</li>
    <li>[[renameResource]]</li>
    <li>[[restartResource]]</li>
    <li>[[setResourceInfo]]</li>
    <li>[[startResource]]</li>
    <li>[[stopResource]]</li>
    <li>[[updateResourceACLRequest]]</li>
    }}
  }}
</br>
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
}}


*[[getResourceInfo]]
<!-- SHARED functions-->
<li>[[abortRemoteRequest]]</li>
<li>[[call]]</li>
<li>[[fetchRemote]]</li>
<li>[[getResourceConfig]]</li>
<li>[[getResourceDynamicElementRoot]]</li>
<li>[[getResourceExportedFunctions]]</li>
<li>[[getResourceFromName]]</li>
<li>[[getResourceName]]</li>
<li>[[getResourceRootElement]]</li>
<li>[[getResourceState]]</li>
<li>[[getThisResource]]</li>
<li>[[getRemoteRequests]]</li>
<li>[[getRemoteRequestInfo]]</li>
</ul>
</includeonly>


*[[getResourceState]]
<noinclude>
 
{{Functions list info}}
*[[startResource]]
[[Category:Functions templates]]</noinclude>
 
*[[stopResource]]
 
*[[restartResource]]
 
*[[getThisResource]]
 
*[[getResourceFiles]]
 
*[[getResourceFileType]]
 
*[[getResourceConfig]]
 
*[[getResourceFunctions]]
 
*[[getResourceFunctionLevel]]
 
*[[getResourceFunctionHttp]]
 
*[[call]]
 
*[[getIncludedResources]]
 
*[[getResourceConfigLevel]]
 
*[[refreshResources]]
 
*[[setMapDimension]]
 
*[[getResourceLoadFailureReason]]

Latest revision as of 17:54, 6 September 2024


The template contains a list of functions. It accepts 1 parameter, which specifies whether the functions should be displayed for server or client. Regardless of the parameter, a list of shared functions will also be displayed

Example: {{Camera functions|client}} will display a list of client-side functions, and below it a list of shared functions, similarly for the server.