Template:Player functions: Difference between revisions

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