Template:Player functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(41 intermediate revisions by 17 users not shown)
Line 1: Line 1:
* [[canPlayerUseFunction]]
<includeonly>
* [[forcePlayerMap]]
<ul>
* [[getAlivePlayers]]
{{#if: {{{1|}}}
* [[getDeadPlayers]]
| {{#ifeq: {{lc:{{{1}}}}} | client
* [[getPlayerAmmoInClip]]
|
* [[getPlayerBlurLevel]]
    <!-- CLIENT functions -->
* [[getPlayerCount]]
    <li>[[getLocalPlayer]]</li>
* [[getPlayerFromNick]]
    <li>[[getPlayerMapBoundingBox]]</li>
* [[getPlayerMoney]]
    <li>[[getPlayerMapOpacity]]</li>
* [[givePlayerMoney]]
    <li>[[isPlayerMapVisible]]</li>
* [[getPlayerNametagText]]
    <li>[[resetBlurLevel]]</li>
* [[getPlayerNametagColor]]
    <li>[[isPlayerHudComponentVisible]]</li>
* [[getPlayerPing]]
    {{New items|3.0161|1.6.0|
* [[getRandomPlayer]]
    <li>[[isPlayerCrosshairVisible]]</li>
* [[getPlayerTeam]]
    |22751}}
* [[getPlayerTotalAmmo]]
| {{#ifeq: {{lc:{{{1}}}}} | server
* [[getPlayerWantedLevel]]
|
* [[getPlayerWeapon]]
    <!-- SERVER functions -->
* [[isPlayerNametagShowing]]
    <li>[[getAlivePlayers]]</li>
* [[isPlayerMapForced]]
    <li>[[getDeadPlayers]]</li>
* [[isPlayerMuted]]
    <li>[[getPlayerACInfo]]</li>
* [[setPlayerNametagText]]
    <li>[[getPlayerAnnounceValue]]</li>
* [[setPlayerNametagColor]]
    <li>[[getPlayerCount]]</li>
* [[setPlayerNametagShowing]]
    <li>[[getPlayerIdleTime]]</li>
* [[setPlayerMoney]]
    <li>[[getPlayerIP]]</li>
* [[setPlayerMuted]]
    <li>[[getPlayerVersion]]</li>
* [[showPlayerHudComponent]]
    <li>[[getRandomPlayer]]</li>
{{New feature|3|1.0|
    <li>[[isPlayerMuted]]</li>
* [[redirectPlayer]]
    <li>[[redirectPlayer]]</li>
* [[getPlayerIP]]
    <li>[[resendPlayerACInfo]]</li>
* [[getPlayerName]]
    <li>[[resendPlayerModInfo]]</li>
* [[setPlayerName]]
    <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>
}}
}}
* [[setPlayerBlurLevel]]
* [[setPlayerTeam]]
* [[setPlayerWantedLevel]]
* [[spawnPlayer]]
* [[takePlayerMoney]]


<!-- 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>


{{Deprecated_feature|3|1.0|
<noinclude>
* [[addPlayerClothes]]
{{Functions list info}}
* [[doesPlayerHaveJetPack]]
[[Category:Functions templates]]</noinclude>
* [[getPlayerArmor]]
* [[getPlayerClothes]]
* [[getPlayerContactElement]]
* [[getPlayerFightingStyle]]
* [[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]]
}}

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.