ResendPlayerModInfo
From Multi Theft Auto: Wiki
This function will force the specified player to resend their mod info, triggering the onPlayerModInfo event again.
Syntax
bool resendPlayerModInfo ( player thePlayer )
OOP Syntax Help! I don't understand this!
- Method: player:resendModInfo(...)
Required Arguments
- thePlayer: A player object referencing the specified player
Returns
Returns true if the mod info will be resent, false otherwise.
Example
This example shows how to resend each players mod info during onResourceStart
addEventHandler( "onResourceStart", resourceRoot, function() for _,player in ipairs( getElementsByType("player") ) do resendPlayerModInfo( player ) end end )
Requirements
Minimum supported server | 1.1.1-9.03451 |
---|---|
Minimum supported client | n/a |
Note: Using this function requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.1.1-9.03451" />
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