Template:Player functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (ver)
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* [[forcePlayerMap]]
<includeonly>
* [[getAlivePlayers]]
<ul>
* [[getDeadPlayers]]
{{#if: {{{1|}}}
* [[getPlayerACInfo]]
| {{#ifeq: {{lc:{{{1}}}}} | client
* [[getPlayerAnnounceValue]]
|
* [[getPlayerBlurLevel]]
    <!-- CLIENT functions -->
* [[getPlayerCount]]
    <li>[[getLocalPlayer]]</li>
* [[getPlayerFromName]]
    <li>[[getPlayerMapBoundingBox]]</li>
* [[getPlayerIdleTime]]
    <li>[[getPlayerMapOpacity]]</li>
* [[getPlayerIP]]
    <li>[[isPlayerMapVisible]]</li>
* [[getPlayerMoney]]
    <li>[[resetBlurLevel]]</li>
* [[getPlayerName]]
    <li>[[isPlayerHudComponentVisible]]</li>
* [[getPlayerNametagColor]]
    {{New items|3.0161|1.6.0|
* [[getPlayerNametagText]]
    <li>[[isPlayerCrosshairVisible]]</li>
* [[getPlayerPing]]
    |22751}}
{{New items|3.0158|1.5.7|
| {{#ifeq: {{lc:{{{1}}}}} | server
*[[getPlayerScriptDebugLevel]]
|
|19626}}
    <!-- SERVER functions -->
* [[getPlayerSerial]]
    <li>[[getAlivePlayers]]</li>
* [[getPlayerTeam]]
    <li>[[getDeadPlayers]]</li>
* [[getPlayerVersion]]
    <li>[[getPlayerACInfo]]</li>
* [[getPlayerWantedLevel]]
    <li>[[getPlayerAnnounceValue]]</li>
* [[getRandomPlayer]]
    <li>[[getPlayerCount]]</li>
* [[givePlayerMoney]]
    <li>[[getPlayerIdleTime]]</li>
* [[isPlayerMapForced]]
    <li>[[getPlayerIP]]</li>
* [[isPlayerMuted]]
    <li>[[getPlayerVersion]]</li>
* [[isPlayerNametagShowing]]
    <li>[[getRandomPlayer]]</li>
* [[isVoiceEnabled]]
    <li>[[isPlayerMuted]]</li>
* [[redirectPlayer]]
    <li>[[redirectPlayer]]</li>
{{New items|3.0152|1.5.1-7633|
    <li>[[resendPlayerACInfo]]</li>
*[[resendPlayerACInfo]]
    <li>[[resendPlayerModInfo]]</li>
    <li>[[setPlayerAnnounceValue]]</li>
    <li>[[setPlayerMuted]]</li>
    <li>[[setPlayerScriptDebugLevel]]</li>
    <li>[[setPlayerTeam]]</li>
    <li>[[setPlayerVoiceBroadcastTo]]</li>
    <li>[[setPlayerVoiceIgnoreFrom]]</li>
    <li>[[setPlayerWantedLevel]]</li>
    <li>[[spawnPlayer]]</li>
    <li>[[takePlayerScreenShot]]</li>
    }}
  }}
</br>
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
}}
}}
* [[resendPlayerModInfo]]
* [[setPlayerAnnounceValue]]
* [[setPlayerBlurLevel]]
* [[setPlayerHudComponentVisible]]
* [[setPlayerMoney]]
* [[setPlayerMuted]]
* [[setPlayerName]]
* [[setPlayerNametagColor]]
* [[setPlayerNametagShowing]]
* [[setPlayerNametagText]]
{{New items|3.0158|1.5.7|
*[[setPlayerScriptDebugLevel]]
|19626}}
* [[setPlayerTeam]]
* [[setPlayerVoiceBroadcastTo]]
* [[setPlayerVoiceIgnoreFrom]]
* [[setPlayerWantedLevel]]
* [[spawnPlayer]]
* [[takePlayerMoney]]
* [[takePlayerScreenShot]]


<noinclude>[[Category:Functions templates]]</noinclude>
<!-- SHARED functions-->
<li>[[getPlayerTeam]]</li>
<li>[[getPlayerBlurLevel]]</li>
<li>[[setPlayerBlurLevel]]</li>
<li>[[getPlayerSerial]]</li>
<li>[[forcePlayerMap]]</li>
<li>[[getPlayerScriptDebugLevel]]</li>
<li>[[getPlayerFromName]]</li>
<li>[[getPlayerMoney]]</li>
<li>[[getPlayerName]]</li>
<li>[[getPlayerNametagColor]]</li>
<li>[[getPlayerNametagText]]</li>
<li>[[getPlayerPing]]</li>
<li>[[getPlayerWantedLevel]]</li>
<li>[[givePlayerMoney]]</li>
<li>[[isPlayerMapForced]]</li>
<li>[[isPlayerNametagShowing]]</li>
<li>[[setPlayerHudComponentVisible]]</li>
<li>[[setPlayerMoney]]</li>
<li>[[setPlayerNametagColor]]</li>
<li>[[setPlayerNametagShowing]]</li>
<li>[[setPlayerNametagText]]</li>
<li>[[takePlayerMoney]]</li>
<li>[[countPlayersInTeam]]</li>
<li>[[getPlayersInTeam]]</li>
<li>[[isVoiceEnabled]]</li>
<li>[[setControlState]]</li>
<li>[[getControlState]]</li>
</ul>
</includeonly>
 
<noinclude>
{{Functions list info}}
[[Category:Functions templates]]</noinclude>

Latest revision as of 19:20, 30 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.