resendPlayerACInfo | Multi Theft Auto: Wiki Skip to content

resendPlayerACInfo

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 AC info, triggering the onPlayerACInfo event again.

Syntax

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

Returns

  • bool: value

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

Code Examples

shared

This example shows how to resend each players AC info duringonResourceStart

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

See Also