Template:Utility functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(added utf funcs to template)
mNo edit summary
 
(51 intermediate revisions by 26 users not shown)
Line 1: Line 1:
*[[getColorFromString]]
<includeonly>
*[[getDistanceBetweenPoints2D]]
<ul>
*[[getDistanceBetweenPoints3D]]
{{#if: {{{1|}}}
<!--
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[getPacketInfo]]
|
-->
    <!-- CLIENT functions -->
{{New feature|3.0110|1.1|
    <li>[[createTrayNotification]]</li>
*[[getPerformanceStats]]
    <li>[[downloadFile]]</li>
}}
    <li>[[getDevelopmentMode]]</li>
*[[getRealTime]]
    <li>[[getKeyboardLayout]]</li>
*[[getTickCount]]
    <li>[[getLocalization]]</li>
*[[getTimerDetails]]
    <li>[[isShowCollisionsEnabled]]</li>
*[[getTimers]]
    <li>[[isShowSoundEnabled]]</li>
*[[gettok]]
    <li>[[isTransferBoxAlwaysVisible]]</li>
*[[killTimer]]
    <li>[[isTransferBoxVisible]]</li>
*[[resetTimer]]
    <li>[[isTrayNotificationEnabled]]</li>
*[[setTimer]]
    <li>[[setClipboard]]</li>
*[[split]]
    <li>[[setDevelopmentMode]]</li>
*[[isTimer]]
    <li>[[setTransferBoxVisible]]</li>
*[[md5]]
    <li>[[setWindowFlashing]]</li>
{{New feature|3.0110|1.1|
    <li>[[showCol]]</li>
* [[utfChar]]
    <li>[[showSound]]</li>
* [[utfCode]]
| {{#ifeq: {{lc:{{{1}}}}} | server
* [[utfLen]]
|
* [[utfSeek]]
    <!-- SERVER functions -->
* [[utfSub]]
    <li>[[setServerConfigSetting]]</li>
    <li>[[getServerConfigSetting]]</li>
    }}
  }}
</br>
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
}}
}}
<!-- SHARED functions-->
<li>[[addDebugHook]]</li>
<li>[[base64Decode]]</li>
<li>[[base64Encode]]</li>
<li>[[debugSleep]]</li>
<li>[[decodeString]]</li>
<li>[[encodeString]]</li>
<li>[[fromJSON]]</li>
<li>[[generateKeyPair]]</li>
<li>[[getColorFromString]]</li>
<li>[[getDevelopmentMode]]</li>
<li>[[getDistanceBetweenPoints2D]]</li>
<li>[[getDistanceBetweenPoints3D]]</li>
<li>[[getEasingValue]]</li>
<li>[[getNetworkStats]]</li>
<li>[[getNetworkUsageData]]</li>
<li>[[getPerformanceStats]]</li>
<li>[[getRealTime]]</li>
<li>[[getTickCount]]</li>
<li>[[getTimerDetails]]</li>
<li>[[getTimers]]</li>
<li>[[getFPSLimit]]</li>
<li>[[getUserdataType]]</li>
<li>[[getVersion]]</li>
<li>[[gettok]]</li>
<li>[[isTransferBoxVisible]]</li>
<li>[[setTransferBoxVisible]]</li>
<li>[[hash]]</li>
<li>[[inspect]]</li>
<li>[[interpolateBetween]]</li>
<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.