Template:Player functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(51 intermediate revisions by 19 users not shown)
Line 1: Line 1:
* [[addPlayerClothes]]
<includeonly>
<ul>
{{#if: {{{1|}}}
| {{#ifeq: {{lc:{{{1}}}}} | client
|
    <!-- CLIENT functions -->
    <li>[[getLocalPlayer]]</li>
    <li>[[getPlayerMapBoundingBox]]</li>
    <li>[[getPlayerMapOpacity]]</li>
    <li>[[isPlayerMapVisible]]</li>
    <li>[[resetBlurLevel]]</li>
    <li>[[isPlayerHudComponentVisible]]</li>
    {{New items|3.0161|1.6.0|
    <li>[[isPlayerCrosshairVisible]]</li>
    |22751}}
| {{#ifeq: {{lc:{{{1}}}}} | server
|
    <!-- SERVER functions -->
    <li>[[getAlivePlayers]]</li>
    <li>[[getDeadPlayers]]</li>
    <li>[[getPlayerACInfo]]</li>
    <li>[[getPlayerAnnounceValue]]</li>
    <li>[[getPlayerCount]]</li>
    <li>[[getPlayerIdleTime]]</li>
    <li>[[getPlayerIP]]</li>
    <li>[[getPlayerVersion]]</li>
    <li>[[getRandomPlayer]]</li>
    <li>[[isPlayerMuted]]</li>
    <li>[[redirectPlayer]]</li>
    <li>[[resendPlayerACInfo]]</li>
    <li>[[resendPlayerModInfo]]</li>
    <li>[[setPlayerAnnounceValue]]</li>
    <li>[[setPlayerMuted]]</li>
    <li>[[setPlayerScriptDebugLevel]]</li>
    <li>[[setPlayerTeam]]</li>
    <li>[[setPlayerVoiceBroadcastTo]]</li>
    <li>[[setPlayerVoiceIgnoreFrom]]</li>
    <li>[[setPlayerWantedLevel]]</li>
    <li>[[spawnPlayer]]</li>
    <li>[[takePlayerScreenShot]]</li>
    }}
  }}
</br>
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
}}


* [[canPlayerUseFunction]]
<!-- SHARED functions-->
<li>[[getPlayerTeam]]</li>
<li>[[getPlayerBlurLevel]]</li>
<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>


* [[doesPlayerHaveJetPack]]
<noinclude>
 
{{Functions list info}}
* [[forcePlayerMap]]
[[Category:Functions templates]]</noinclude>
 
* [[getAlivePlayers]]
* [[getDeadPlayers]]
 
* [[getPlayerAmmoInClip]]
* [[getPlayerArmor]]
* [[getPlayerClothes]]
* [[getPlayerCount]]
* [[getPlayerFromNick]]
* [[getPlayerMoney]]
* [[getPlayerNametagText]]
* [[getPlayerNametagColor]]
* [[getPlayerOccupiedVehicle]]
* [[getPlayerOccupiedVehicleSeat]]
* [[getPlayerPing]]
* [[getPlayerRotation]]
* [[getPlayerSkin]]
* [[getPlayerStat]]
* [[getPlayerTarget]]
* [[getPlayerTeam]]
* [[getPlayerTotalAmmo]]
* [[getPlayerUserName]]
* [[getPlayerWantedLevel]]
* [[getPlayerWeapon]]
* [[getPlayerWeaponSlot]]
* [[getRandomPlayer]]
 
* [[givePlayerJetPack]]
* [[givePlayerMoney]]
 
* [[isPlayerChoking]]
* [[isPlayerDead]]
* [[isPlayerDucked]]
* [[isPlayerInVehicle]]
* [[isPlayerInWater]]
* [[isPlayerMapForced]]
* [[isPlayerMuted]]
* [[isPlayerOnGround]]
* [[isPlayerNametagShowing]]
 
* [[getPlayerFightingStyle]]
* [[getPlayerGravity]]
* [[getPlayerBlurLevel]]
* [[getPlayerContactElement]]
 
* [[killPlayer]]
 
* [[removePlayerClothes]]
* [[removePlayerFromVehicle]]
* [[removePlayerJetPack]]
 
* [[setPlayerArmor]]
* [[setPlayerBlurLevel]]
* [[setPlayerChoking]]
* [[setPlayerFightingStyle]]
* [[setPlayerGravity]]
* [[setPlayerMoney]]
* [[setPlayerMuted]]
* [[setPlayerNametagText]]
* [[setPlayerNametagColor]]
* [[setPlayerNametagShowing]]
* [[setPlayerRotation]]
* [[setPlayerSkin]]
* [[setPlayerStat]]
* [[setPlayerWantedLevel]]
* [[setPlayerWeaponSlot]]
* [[setPlayerTeam]]
 
* [[showPlayerHudComponent]]
* [[spawnPlayer]]
* [[takePlayerMoney]]
* [[warpPlayerIntoVehicle]]

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.