Template:Player functions: Difference between revisions

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