Template:Utility functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(42 intermediate revisions by 22 users not shown)
Line 1: Line 1:
*[[getColorFromString]]
<includeonly>
*[[getDistanceBetweenPoints2D]]
<ul>
*[[getDistanceBetweenPoints3D]]
{{#if: {{{1|}}}
{{New items|3.0110|1.1|
| {{#ifeq: {{lc:{{{1}}}}} | client
* [[getEasingValue]]
|
* [[interpolateBetween]]
    <!-- CLIENT functions -->
* [[getPerformanceStats]]
    <li>[[createTrayNotification]]</li>
* [[getNetworkStats]]
    <li>[[downloadFile]]</li>
* [[getServerConfigSetting]]
    <li>[[getDevelopmentMode]]</li>
* [[setServerConfigSetting]]
    <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>
}}
}}
<!--
 
*[[getPacketInfo]]
<!-- SHARED functions-->
-->
<li>[[addDebugHook]]</li>
*[[getRealTime]]
<li>[[base64Decode]]</li>
*[[getTickCount]]
<li>[[base64Encode]]</li>
*[[getTimerDetails]]
<li>[[debugSleep]]</li>
*[[getTimers]]
<li>[[decodeString]]</li>
*[[gettok]]
<li>[[encodeString]]</li>
*[[killTimer]]
<li>[[fromJSON]]</li>
*[[resetTimer]]
<li>[[generateKeyPair]]</li>
*[[setTimer]]
<li>[[getColorFromString]]</li>
*[[split]]
<li>[[getDevelopmentMode]]</li>
*[[isTimer]]
<li>[[getDistanceBetweenPoints2D]]</li>
*[[md5]]
<li>[[getDistanceBetweenPoints3D]]</li>
*[[sha256]]
<li>[[getEasingValue]]</li>
*[[teaEncode]]
<li>[[getNetworkStats]]</li>
*[[teaDecode]]
<li>[[getNetworkUsageData]]</li>
*[[base64encode]]
<li>[[getPerformanceStats]]</li>
*[[base64decode]]
<li>[[getRealTime]]</li>
{{New items|3.0110|1.1|
<li>[[getTickCount]]</li>
* [[utfChar]]
<li>[[getTimerDetails]]</li>
* [[utfCode]]
<li>[[getTimers]]</li>
* [[utfLen]]
<li>[[getFPSLimit]]</li>
* [[utfSeek]]
<li>[[getUserdataType]]</li>
* [[utfSub]]
<li>[[getVersion]]</li>
}}
<li>[[gettok]]</li>
{{New feature/item|4.0132|1.4|5106|
<li>[[isTransferBoxVisible]]</li>
* [[pregFind]]
<li>[[setTransferBoxVisible]]</li>
* [[pregReplace]]
<li>[[hash]]</li>
* [[pregMatch]]
<li>[[inspect]]</li>
}}
<li>[[interpolateBetween]]</li>
<noinclude>[[Category:Functions templates]]</noinclude>
<li>[[iprint]]</li>
<li>[[isOOPEnabled]]</li>
<li>[[isTimer]]</li>
{{New items|3.0161|1.6.0|
<li>[[isTimerPaused]]</li>
<li>[[setTimerPaused]]</li>
|22701}}
<li>[[killTimer]]</li>
<li>[[md5]]</li>
<li>[[passwordHash]]</li>
<li>[[passwordVerify]]</li>
<li>[[pregFind]]</li>
<li>[[pregMatch]]</li>
<li>[[pregReplace]]</li>
<li>[[removeDebugHook]]</li>
<li>[[resetTimer]]</li>
<li>[[setDevelopmentMode]]</li>
<li>[[setFPSLimit]]</li>
<li>[[setTimer]]</li>
<li>[[ref]]</li>
<li>[[deref]]</li>
<li>[[sha256]]</li>
<li>[[split]]</li>
<li>[[teaDecode]]</li>
<li>[[teaEncode]]</li>
<li>[[toJSON]]</li>
<li>[[tocolor]]</li>
<li>[[getProcessMemoryStats]]</li>
<li>[[utfChar]]</li>
<li>[[utfCode]]</li>
<li>[[utfLen]]</li>
<li>[[utfSeek]]</li>
<li>[[utfSub]]</li>
</ul>
{{Bit_functions}}
</includeonly>
 
<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.