Template:Player functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(67 intermediate revisions by 26 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>
* [[isPlayerInWater]]
    <li>[[setPlayerAnnounceValue]]</li>
* [[isPlayerMapForced]]
    <li>[[setPlayerMuted]]</li>
* [[getAlivePlayers]]
    <li>[[setPlayerScriptDebugLevel]]</li>
* [[getDeadPlayers]]
    <li>[[setPlayerTeam]]</li>
* [[getPlayerTask]]
    <li>[[setPlayerVoiceBroadcastTo]]</li>
* [[getPlayerSimplestTask]]
    <li>[[setPlayerVoiceIgnoreFrom]]</li>
* [[isPlayerDoingTask]]
    <li>[[setPlayerWantedLevel]]</li>
* [[getPlayerNametagText]]
    <li>[[spawnPlayer]]</li>
* [[getPlayerNametagColor]]
    <li>[[takePlayerScreenShot]]</li>
* [[isPlayerNametagShowing]]
    }}
* [[getPlayerFightingStyle]]
  }}
* [[killPlayer]]
</br>
* [[removePlayerClothes]]
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
* [[removePlayerFromVehicle]]
}}
* [[removePlayerJetPack]]
 
* [[setPlayerArmor]]
<!-- SHARED functions-->
* [[setPlayerHealth]]
<li>[[getPlayerTeam]]</li>
* [[setPlayerMoney]]
<li>[[getPlayerBlurLevel]]</li>
* [[setPlayerRotation]]
<li>[[setPlayerBlurLevel]]</li>
* [[setPlayerSkin]]
<li>[[getPlayerSerial]]</li>
* [[setPlayerStat]]
<li>[[forcePlayerMap]]</li>
* [[setPlayerWeaponSlot]]
<li>[[getPlayerScriptDebugLevel]]</li>
* [[setPlayerWantedLevel]]
<li>[[getPlayerFromName]]</li>
* [[showPlayerHudComponent]]
<li>[[getPlayerMoney]]</li>
* [[spawnPlayer]]
<li>[[getPlayerName]]</li>
* [[spawnPlayerAtSpawnpoint]]
<li>[[getPlayerNametagColor]]</li>
* [[takePlayerMoney]]
<li>[[getPlayerNametagText]]</li>
* [[warpPlayerIntoVehicle]]
<li>[[getPlayerPing]]</li>
* [[forcePlayerMap]]
<li>[[getPlayerWantedLevel]]</li>
* [[setPlayerNametagText]]
<li>[[givePlayerMoney]]</li>
* [[setPlayerNametagColor]]
<li>[[isPlayerMapForced]]</li>
* [[setPlayerNametagShowing]]
<li>[[isPlayerNametagShowing]]</li>
* [[setPlayerFightingStyle]]
<li>[[setPlayerHudComponentVisible]]</li>
* [[setPlayerGravity]]
<li>[[setPlayerMoney]]</li>
* [[getPlayerGravity]]
<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.