Template:Player functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Removed serverside task functions)
mNo edit summary
 
(65 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>
* [[getPlayerNametagText]]
    <li>[[setPlayerVoiceBroadcastTo]]</li>
* [[getPlayerNametagColor]]
    <li>[[setPlayerVoiceIgnoreFrom]]</li>
* [[isPlayerNametagShowing]]
    <li>[[setPlayerWantedLevel]]</li>
* [[getPlayerFightingStyle]]
    <li>[[spawnPlayer]]</li>
* [[getPlayerGravity]]
    <li>[[takePlayerScreenShot]]</li>
* [[getPlayerBlurLevel]]
    }}
* [[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>
* [[setPlayerWeaponSlot]]
<li>[[forcePlayerMap]]</li>
* [[setPlayerWantedLevel]]
<li>[[getPlayerScriptDebugLevel]]</li>
* [[showPlayerHudComponent]]
<li>[[getPlayerFromName]]</li>
* [[spawnPlayer]]
<li>[[getPlayerMoney]]</li>
* [[spawnPlayerAtSpawnpoint]]
<li>[[getPlayerName]]</li>
* [[takePlayerMoney]]
<li>[[getPlayerNametagColor]]</li>
* [[warpPlayerIntoVehicle]]
<li>[[getPlayerNametagText]]</li>
* [[forcePlayerMap]]
<li>[[getPlayerPing]]</li>
* [[setPlayerNametagText]]
<li>[[getPlayerWantedLevel]]</li>
* [[setPlayerNametagColor]]
<li>[[givePlayerMoney]]</li>
* [[setPlayerNametagShowing]]
<li>[[isPlayerMapForced]]</li>
* [[setPlayerFightingStyle]]
<li>[[isPlayerNametagShowing]]</li>
* [[setPlayerGravity]]
<li>[[setPlayerHudComponentVisible]]</li>
* [[setPlayerBlurLevel]]
<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.