RemovePlayerJetPack
From Multi Theft Auto: Wiki
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. | |
Please use removePedJetPack instead. |
This function is used to remove a player's jetpack.
Syntax
bool removePlayerJetPack ( player thePlayer )
Required Arguments
- thePlayer: The player you want to remove the jetpack from.
Returns
Returns true if the player had a jetpack, false otherwise.
Example
This example adds a "jetpack" command in console, which allows toggling of a jetpack.
function jetPackCommand ( source, key ) if ( doesPlayerHaveJetPack ( source ) ) then -- if the player has a jetpack removePlayerJetPack ( source ) -- remove it else givePlayerJetPack ( source ) -- otherwise give him one end end addCommandHandler ( "jetpack", jetPackCommand )
See Also
- forcePlayerMap
- getAlivePlayers
- getDeadPlayers
- getPlayerACInfo
- getPlayerAnnounceValue
- getPlayerBlurLevel
- getPlayerCount
- getPlayerFromName
- getPlayerIdleTime
- getPlayerIP
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
FROM VERSION 1.5.7 r19626 ONWARDS
- getPlayerSerial
- getPlayerTeam
- getPlayerVersion
- getPlayerWantedLevel
- getRandomPlayer
- givePlayerMoney
- isPlayerMapForced
- isPlayerMuted
- isPlayerNametagShowing
- isVoiceEnabled
- redirectPlayer
- resendPlayerACInfo
- resendPlayerModInfo
- setPlayerAnnounceValue
- setPlayerBlurLevel
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerMuted
- setPlayerName
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
FROM VERSION 1.5.7 r19626 ONWARDS
- setPlayerTeam
- setPlayerVoiceBroadcastTo
- setPlayerVoiceIgnoreFrom
- setPlayerWantedLevel
- spawnPlayer
- takePlayerMoney
- takePlayerScreenShot