Template:Resource functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Rework)
 
(12 intermediate revisions by 9 users not shown)
Line 1: Line 1:
*[[addResourceConfig]]
<includeonly>
*[[addResourceMap]]
<ul>
*[[call]]
{{#if: {{{1|}}}
*[[callRemote]]
| {{#ifeq: {{lc:{{{1}}}}} | client
{{New items|3.0131|1.3.1|
|
*[[fetchRemote]]
    <!-- 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>
}}
}}
*[[copyResource]]
 
*[[createResource]]
<!-- SHARED functions-->
*[[getResourceConfig]]
<li>[[abortRemoteRequest]]</li>
*[[getResourceDynamicElementRoot]]
<li>[[call]]</li>
*[[getResourceExportedFunctions]]
<li>[[fetchRemote]]</li>
*[[getResourceFromName]]
<li>[[getResourceConfig]]</li>
*[[getResourceInfo]]
<li>[[getResourceDynamicElementRoot]]</li>
*[[getResourceLastStartTime]]
<li>[[getResourceExportedFunctions]]</li>
*[[getResourceLoadFailureReason]]
<li>[[getResourceFromName]]</li>
*[[getResourceLoadTime]]
<li>[[getResourceName]]</li>
*[[getResourceMapRootElement]]
<li>[[getResourceRootElement]]</li>
*[[getResourceName]]
<li>[[getResourceState]]</li>
*[[getResourceRootElement]]
<li>[[getThisResource]]</li>
*[[getResources]]
<li>[[getRemoteRequests]]</li>
*[[getResourceState]]
<li>[[getRemoteRequestInfo]]</li>
*[[getThisResource]]
</ul>
*[[refreshResources]]
</includeonly>
*[[removeResourceDefaultSetting]]
 
*[[removeResourceFile]]
<noinclude>
*[[restartResource]]
{{Functions list info}}
*[[setResourceDefaultSetting]]
[[Category:Functions templates]]</noinclude>
*[[startResource]]
*[[stopResource]]
*[[setResourceInfo]]
{{New items|3.0120|1.2|
*[[renameResource]]
*[[deleteResource]]
*[[getResourceACLRequests]]
*[[updateResourceACLRequest]]
}}
<noinclude>[[Category:Functions templates]]</noinclude>

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.