Template:Player functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(69 intermediate revisions by 27 users not shown)
Line 1: Line 1:
* [[addPlayerClothes]]
<includeonly>
* [[canPlayerUseFunction]]
<ul>
* [[doesPlayerHaveJetPack]]
{{#if: {{{1|}}}
* [[getPlayerArmor]]
| {{#ifeq: {{lc:{{{1}}}}} | client
* [[getPlayerClothes]]
|
* [[getPlayerCount]]
    <!-- CLIENT functions -->
* [[getPlayerWeapon]]
    <li>[[getLocalPlayer]]</li>
* [[getPlayerWeaponSlot]]
    <li>[[getPlayerMapBoundingBox]]</li>
* [[getPlayerAmmoInClip]]
    <li>[[getPlayerMapOpacity]]</li>
* [[getPlayerTotalAmmo]]
    <li>[[isPlayerMapVisible]]</li>
* [[getPlayerFromNick]]
    <li>[[resetBlurLevel]]</li>
* [[getPlayerHealth]]
    <li>[[isPlayerHudComponentVisible]]</li>
* [[getPlayerLevel]]
    {{New items|3.0161|1.6.0|
* [[getPlayerMoney]]
    <li>[[isPlayerCrosshairVisible]]</li>
* [[getPlayerOccupiedVehicle]]
    |22751}}
* [[getPlayerOccupiedVehicleSeat]]
| {{#ifeq: {{lc:{{{1}}}}} | server
* [[getPlayerPing]]
|
* [[getPlayerRotation]]
    <!-- SERVER functions -->
* [[getPlayerSkin]]
    <li>[[getAlivePlayers]]</li>
* [[getPlayerStat]]
    <li>[[getDeadPlayers]]</li>
* [[getPlayerTarget]]
    <li>[[getPlayerACInfo]]</li>
* [[getPlayerTeam]]
    <li>[[getPlayerAnnounceValue]]</li>
* [[getRandomPlayer]]
    <li>[[getPlayerCount]]</li>
* [[getPlayerWantedLevel]]
    <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]]
    }}
* [[isPlayerNametagShowing]]
  }}
* [[getPlayerFightingStyle]]
</br>
* [[killPlayer]]
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
* [[removePlayerClothes]]
}}
* [[removePlayerFromVehicle]]
 
* [[removePlayerJetPack]]
<!-- SHARED functions-->
* [[setPlayerArmor]]
<li>[[getPlayerTeam]]</li>
* [[setPlayerHealth]]
<li>[[getPlayerBlurLevel]]</li>
* [[setPlayerMoney]]
<li>[[setPlayerBlurLevel]]</li>
* [[setPlayerRotation]]
<li>[[getPlayerSerial]]</li>
* [[setPlayerSkin]]
<li>[[forcePlayerMap]]</li>
* [[setPlayerStat]]
<li>[[getPlayerScriptDebugLevel]]</li>
* [[setPlayerWeaponSlot]]
<li>[[getPlayerFromName]]</li>
* [[setPlayerWantedLevel]]
<li>[[getPlayerMoney]]</li>
* [[showPlayerHudComponent]]
<li>[[getPlayerName]]</li>
* [[spawnPlayer]]
<li>[[getPlayerNametagColor]]</li>
* [[spawnPlayerAtSpawnpoint]]
<li>[[getPlayerNametagText]]</li>
* [[takePlayerMoney]]
<li>[[getPlayerPing]]</li>
* [[warpPlayerIntoVehicle]]
<li>[[getPlayerWantedLevel]]</li>
* [[forcePlayerScoreboard]]
<li>[[givePlayerMoney]]</li>
* [[forcePlayerMap]]
<li>[[isPlayerMapForced]]</li>
* [[setPlayerNametagText]]
<li>[[isPlayerNametagShowing]]</li>
* [[setPlayerNametagColor]]
<li>[[setPlayerHudComponentVisible]]</li>
* [[setPlayerNametagShowing]]
<li>[[setPlayerMoney]]</li>
* [[setPlayerFightingStyle]]
<li>[[setPlayerNametagColor]]</li>
* [[setPlayerGravity]]
<li>[[setPlayerNametagShowing]]</li>
* [[getPlayerGravity]]
<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.