ResendPlayerModInfo: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
===Returns=== | ===Returns=== | ||
Returns ''true'' if the mod info will be resent, ''false'' otherwise. | Returns ''true'' if the mod info will be resent, ''false'' otherwise. | ||
==Example== | |||
This example shows how to resend each players mod info during [[onResourceStart]] | |||
<syntaxhighlight lang="lua"> | |||
addEventHandler( "onResourceStart", resourceRoot, | |||
function() | |||
for _,player in ipairs( getElementsByType("player") ) do | |||
resendPlayerModInfo( player ) | |||
end | |||
end | |||
) | |||
</syntaxhighlight> | |||
==Requirements== | ==Requirements== |
Revision as of 01:58, 27 September 2013
This function will force the specified player to resend their mod info, triggering the onPlayerModInfo event again.
Syntax
bool resendPlayerModInfo ( player thePlayer )
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
This template will be deleted.
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState