resendPlayerModInfo | Multi Theft Auto: Wiki Skip to content

resendPlayerModInfo

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function will force the specified player to resend their mod info, triggering the onPlayerModInfo event again.

OOP Syntax Help! I don't understand this!

  • Method:player:resendModInfo(...)

Syntax

bool resendPlayerModInfo ( player thePlayer )
Required Arguments
  • thePlayer: A player object referencing the specified player

Returns

  • bool: value

Returns true if the mod info will be resent, false otherwise.

Code Examples

shared

This example shows how to resend each players mod info duringonResourceStart

addEventHandler( "onResourceStart", resourceRoot,
function()
for _,player in ipairs( getElementsByType("player") ) do
resendPlayerModInfo( player )
end
end
)

See Also