Template:Player functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(28 intermediate revisions by 13 users not shown)
Line 1: Line 1:
* [[forcePlayerMap]]
<includeonly>
* [[getAlivePlayers]]
<ul>
* [[getDeadPlayers]]
{{#if: {{{1|}}}
* [[getPlayerAnnounceValue]]
| {{#ifeq: {{lc:{{{1}}}}} | client
* [[getPlayerBlurLevel]]
|
* [[getPlayerCount]]
    <!-- CLIENT functions -->
* [[getPlayerMoney]]
    <li>[[getLocalPlayer]]</li>
* [[getPlayerNametagColor]]
    <li>[[getPlayerMapBoundingBox]]</li>
* [[getPlayerNametagText]]
    <li>[[getPlayerMapOpacity]]</li>
* [[getPlayerPing]]
    <li>[[isPlayerMapVisible]]</li>
* [[getPlayerTeam]]
    <li>[[resetBlurLevel]]</li>
* [[getPlayerVersion]]
    <li>[[isPlayerHudComponentVisible]]</li>
* [[getPlayerWantedLevel]]
    {{New items|3.0161|1.6.0|
* [[getRandomPlayer]]
    <li>[[isPlayerCrosshairVisible]]</li>
* [[givePlayerMoney]]
    |22751}}
* [[isPlayerMapForced]]
| {{#ifeq: {{lc:{{{1}}}}} | server
* [[isPlayerMuted]]
|
* [[isPlayerNametagShowing]]
    <!-- SERVER functions -->
* [[setPlayerAnnounceValue]]
    <li>[[getAlivePlayers]]</li>
* [[setPlayerBlurLevel]]
    <li>[[getDeadPlayers]]</li>
* [[setPlayerMoney]]
    <li>[[getPlayerACInfo]]</li>
* [[setPlayerMuted]]
    <li>[[getPlayerAnnounceValue]]</li>
* [[setPlayerNametagColor]]
    <li>[[getPlayerCount]]</li>
* [[setPlayerNametagShowing]]
    <li>[[getPlayerIdleTime]]</li>
* [[setPlayerNametagText]]
    <li>[[getPlayerIP]]</li>
* [[setPlayerTeam]]
    <li>[[getPlayerVersion]]</li>
* [[setPlayerWantedLevel]]
    <li>[[getRandomPlayer]]</li>
* [[showPlayerHudComponent]]
    <li>[[isPlayerMuted]]</li>
* [[spawnPlayer]]
    <li>[[redirectPlayer]]</li>
* [[takePlayerMoney]]
    <li>[[resendPlayerACInfo]]</li>
* [[getPlayerAccount]]
    <li>[[resendPlayerModInfo]]</li>
* [[getPlayerFromName]]
    <li>[[setPlayerAnnounceValue]]</li>
* [[getPlayerIP]]
    <li>[[setPlayerMuted]]</li>
* [[getPlayerName]]
    <li>[[setPlayerScriptDebugLevel]]</li>
* [[redirectPlayer]]
    <li>[[setPlayerTeam]]</li>
* [[setPlayerName]]
    <li>[[setPlayerVoiceBroadcastTo]]</li>
{{New feature|3.0120|1.2|
    <li>[[setPlayerVoiceIgnoreFrom]]</li>
* [[getPlayerIdleTime]]
    <li>[[setPlayerWantedLevel]]</li>
    <li>[[spawnPlayer]]</li>
    <li>[[takePlayerScreenShot]]</li>
    }}
  }}
</br>
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
}}
}}
* [[givePlayerJetPack]]
 
* [[isPlayerChoking]]
<!-- SHARED functions-->
* [[isPlayerDead]]
<li>[[getPlayerTeam]]</li>
* [[isPlayerDucked]]
<li>[[getPlayerBlurLevel]]</li>
* [[isPlayerInVehicle]]
<li>[[setPlayerBlurLevel]]</li>
* [[isPlayerInWater]]
<li>[[getPlayerSerial]]</li>
* [[isPlayerOnGround]]
<li>[[forcePlayerMap]]</li>
* [[killPlayer]]
<li>[[getPlayerScriptDebugLevel]]</li>
* [[removePlayerClothes]]
<li>[[getPlayerFromName]]</li>
* [[removePlayerFromVehicle]]
<li>[[getPlayerMoney]]</li>
* [[removePlayerJetPack]]
<li>[[getPlayerName]]</li>
* [[setPlayerArmor]]
<li>[[getPlayerNametagColor]]</li>
* [[setPlayerChoking]]
<li>[[getPlayerNametagText]]</li>
* [[setPlayerFightingStyle]]
<li>[[getPlayerPing]]</li>
* [[setPlayerGravity]]
<li>[[getPlayerWantedLevel]]</li>
* [[setPlayerRotation]]
<li>[[givePlayerMoney]]</li>
* [[setPlayerSkin]]
<li>[[isPlayerMapForced]]</li>
* [[setPlayerStat]]
<li>[[isPlayerNametagShowing]]</li>
* [[setPlayerWeaponSlot]]
<li>[[setPlayerHudComponentVisible]]</li>
* [[warpPlayerIntoVehicle]]
<li>[[setPlayerMoney]]</li>
* [[isVoiceEnabled]]
<li>[[setPlayerNametagColor]]</li>
* [[setPlayerVoiceBroadcastTo]]
<li>[[setPlayerNametagShowing]]</li>
* [[setPlayerVoiceIgnoreFrom]]
<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.