ResendPlayerACInfo: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server function}} {{New items|3.0152|1.5.1-7633| This function will force the specified player to resend their AC info, triggering the onPlayerACInfo event ag...")
 
Line 30: Line 30:


==See Also==
==See Also==
{{Player functions}}
{{Player functions|server}}

Revision as of 22:42, 6 September 2024

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

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

Example

This example shows how to resend each players AC info during onResourceStart

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

Requirements

This template will be deleted.

See Also