Template:Utility functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Fixed inconsistencies for webscraping)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<ul>
<ul>
{{#if: {{{1|}}}
| {{#ifeq: {{lc:{{{1}}}}} | client
|
    <!-- CLIENT functions -->
    <li>[[createTrayNotification]]</li>
    <li>[[downloadFile]]</li>
    <li>[[getDevelopmentMode]]</li>
    <li>[[getKeyboardLayout]]</li>
    <li>[[getLocalization]]</li>
    <li>[[isShowCollisionsEnabled]]</li>
    <li>[[isShowSoundEnabled]]</li>
    <li>[[isTransferBoxAlwaysVisible]]</li>
    <li>[[isTransferBoxVisible]]</li>
    <li>[[isTrayNotificationEnabled]]</li>
    <li>[[setClipboard]]</li>
    <li>[[setDevelopmentMode]]</li>
    <li>[[setTransferBoxVisible]]</li>
    <li>[[setWindowFlashing]]</li>
    <li>[[showCol]]</li>
    <li>[[showSound]]</li>
| {{#ifeq: {{lc:{{{1}}}}} | server
|
    <!-- SERVER functions -->
    <li>[[setServerConfigSetting]]</li>
    <li>[[getServerConfigSetting]]</li>
    }}
  }}
</br>
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
}}
<!-- SHARED functions-->
<li>[[addDebugHook]]</li>
<li>[[addDebugHook]]</li>
<li>[[base64Decode]]</li>
<li>[[base64Decode]]</li>
<li>[[base64Encode]]</li>
<li>[[base64Encode]]</li>
</ul>
{{Bit_functions}}
<ul>
<li>[[debugSleep]]</li>
<li>[[debugSleep]]</li>
{{New items|3.0156|1.5.5|
<li>[[decodeString]]</li>
<li>[[decodeString]]</li>
|11849}}
<li>[[deref]]</li>
{{New items|3.0156|1.5.5|
<li>[[encodeString]]</li>
<li>[[encodeString]]</li>
|11849}}
<li>[[fromJSON]]</li>
<li>[[fromJSON]]</li>
<!--{{New items|3.0160|1.6.0|-->
{{Added feature/item|1.6.0|1.5.9|21055|
<li>[[generateKeyPair]]</li>
<li>[[generateKeyPair]]</li>
}}
<li>[[getColorFromString]]</li>
<li>[[getColorFromString]]</li>
<li>[[getDevelopmentMode]]</li>
<li>[[getDevelopmentMode]]</li>
Line 24: Line 46:
<li>[[getDistanceBetweenPoints3D]]</li>
<li>[[getDistanceBetweenPoints3D]]</li>
<li>[[getEasingValue]]</li>
<li>[[getEasingValue]]</li>
<li>[[getFPSLimit]]</li>
<li>[[getNetworkStats]]</li>
<li>[[getNetworkStats]]</li>
<li>[[getNetworkUsageData]]</li>
<li>[[getNetworkUsageData]]</li>
<li>[[getPerformanceStats]]</li>
<li>[[getPerformanceStats]]</li>
<!--{{New items|3.0160|1.6.0|-->
{{Added feature/item|1.6.0|1.5.9|21389|
<li>[[getProcessMemoryStats]]</li>
}}
<li>[[getRealTime]]</li>
<li>[[getRealTime]]</li>
<li>[[getServerConfigSetting]]</li>
<li>[[getTickCount]]</li>
<li>[[getTickCount]]</li>
<li>[[getTimerDetails]]</li>
<li>[[getTimerDetails]]</li>
<li>[[getTimers]]</li>
<li>[[getTimers]]</li>
<li>[[gettok]]</li>
<li>[[getFPSLimit]]</li>
<li>[[getUserdataType]]</li>
<li>[[getUserdataType]]</li>
<li>[[getVersion]]</li>
<li>[[getVersion]]</li>
<li>[[gettok]]</li>
<li>[[isTransferBoxVisible]]</li>
<li>[[setTransferBoxVisible]]</li>
<li>[[hash]]</li>
<li>[[hash]]</li>
<li>[[inspect]]</li>
<li>[[inspect]]</li>
Line 46: Line 65:
<li>[[isOOPEnabled]]</li>
<li>[[isOOPEnabled]]</li>
<li>[[isTimer]]</li>
<li>[[isTimer]]</li>
{{New items|3.0161|1.6.0|
<li>[[isTimerPaused]]</li>
<li>[[setTimerPaused]]</li>
|22701}}
<li>[[killTimer]]</li>
<li>[[killTimer]]</li>
<li>[[md5]]</li>
<li>[[md5]]</li>
Line 54: Line 77:
<li>[[pregReplace]]</li>
<li>[[pregReplace]]</li>
<li>[[removeDebugHook]]</li>
<li>[[removeDebugHook]]</li>
<li>[[ref]]</li>
<li>[[resetTimer]]</li>
<li>[[resetTimer]]</li>
<li>[[setDevelopmentMode]]</li>
<li>[[setDevelopmentMode]]</li>
<li>[[setFPSLimit]]</li>
<li>[[setFPSLimit]]</li>
<li>[[setServerConfigSetting]]</li>
<li>[[setTimer]]</li>
<li>[[setTimer]]</li>
<li>[[ref]]</li>
<li>[[deref]]</li>
<li>[[sha256]]</li>
<li>[[sha256]]</li>
<li>[[split]]</li>
<li>[[split]]</li>
<li>[[teaDecode]]</li>
<li>[[teaDecode]]</li>
<li>[[teaEncode]]</li>
<li>[[teaEncode]]</li>
{{New items|3.0156|1.5.5|
<li>[[toJSON]]</li>
<li>[[tocolor]]</li>
<li>[[tocolor]]</li>
|13977}}
<li>[[getProcessMemoryStats]]</li>
<li>[[toJSON]]</li>
<li>[[utfChar]]</li>
<li>[[utfChar]]</li>
<li>[[utfCode]]</li>
<li>[[utfCode]]</li>
Line 74: Line 96:
<li>[[utfSub]]</li>
<li>[[utfSub]]</li>
</ul>
</ul>
{{Bit_functions}}
</includeonly>


<noinclude>[[Category:Functions templates]]</noinclude>
<noinclude>
{{Functions list info}}
[[Category:Functions templates]]</noinclude>

Latest revision as of 18:06, 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.