Template:Player functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(90 intermediate revisions by 33 users not shown)
Line 1: Line 1:
* [[addPlayerClothes]]
<includeonly>
* [[canPlayerUseFunction]]
<ul>
* [[doesPlayerHaveJetPack]]
{{#if: {{{1|}}}
* [[getPlayerArmor]]
| {{#ifeq: {{lc:{{{1}}}}} | client
* [[getPlayerClothes]]
|
* [[getPlayerCount]]
    <!-- CLIENT functions -->
* [[getPlayerCurrentWeaponAmmoInClip]]
    <li>[[getLocalPlayer]]</li>
* [[getPlayerCurrentWeaponID]]
    <li>[[getPlayerMapBoundingBox]]</li>
* [[getPlayerFromNick]]
    <li>[[getPlayerMapOpacity]]</li>
* [[getPlayerHealth]]
    <li>[[isPlayerMapVisible]]</li>
* [[getPlayerLevel]]
    <li>[[resetBlurLevel]]</li>
* [[getPlayerMoney]]
    <li>[[isPlayerHudComponentVisible]]</li>
* [[getPlayerOccupiedVehicle]]
    {{New items|3.0161|1.6.0|
* [[getPlayerOccupiedVehicleSeat]]
    <li>[[isPlayerCrosshairVisible]]</li>
* [[getPlayerPing]]
    |22751}}
* [[getPlayerRotation]]
| {{#ifeq: {{lc:{{{1}}}}} | server
* [[getPlayerSkin]]
|
* [[getPlayerSourceIP]]
    <!-- SERVER functions -->
* [[getPlayerStat]]
    <li>[[getAlivePlayers]]</li>
* [[getPlayerTarget]]
    <li>[[getDeadPlayers]]</li>
* [[getPlayerTeam]]
    <li>[[getPlayerACInfo]]</li>
* [[getRandomPlayer]]
    <li>[[getPlayerAnnounceValue]]</li>
* [[givePlayerJetPack]]
    <li>[[getPlayerCount]]</li>
* [[givePlayerMoney]]
    <li>[[getPlayerIdleTime]]</li>
* [[isPlayerDead]]
    <li>[[getPlayerIP]]</li>
* [[isPlayerDucked]]
    <li>[[getPlayerVersion]]</li>
* [[isPlayerInVehicle]]
    <li>[[getRandomPlayer]]</li>
* [[isPlayerMuted]]
    <li>[[isPlayerMuted]]</li>
* [[isPlayerOnGround]]
    <li>[[redirectPlayer]]</li>
* [[isPlayerUnderWater]]
    <li>[[resendPlayerACInfo]]</li>
* [[killPlayer]]
    <li>[[resendPlayerModInfo]]</li>
* [[removePlayerClothes]]
    <li>[[setPlayerAnnounceValue]]</li>
* [[removePlayerFromVehicle]]
    <li>[[setPlayerMuted]]</li>
* [[removePlayerJetPack]]
    <li>[[setPlayerScriptDebugLevel]]</li>
* [[setPlayerArmor]]
    <li>[[setPlayerTeam]]</li>
* [[setPlayerHealth]]
    <li>[[setPlayerVoiceBroadcastTo]]</li>
* [[setPlayerMoney]]
    <li>[[setPlayerVoiceIgnoreFrom]]</li>
* [[setPlayerRotation]]
    <li>[[setPlayerWantedLevel]]</li>
* [[setPlayerSkin]]
    <li>[[spawnPlayer]]</li>
* [[setPlayerStat]]
    <li>[[takePlayerScreenShot]]</li>
* [[showPlayerHudArmor]]
    }}
* [[showPlayerHudBreath]]
  }}
* [[showPlayerHudComponent]]
</br>
* [[showPlayerHudHealth]]
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
* [[showPlayerHudMoney]]
}}
* [[showPlayerHudWeapon]]
 
* [[spawnPlayer]]
<!-- SHARED functions-->
* [[spawnPlayerAtSpawnpoint]]
<li>[[getPlayerTeam]]</li>
* [[takePlayerMoney]]
<li>[[getPlayerBlurLevel]]</li>
* [[warpPlayerintoVehicle]]
<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.