ResendPlayerACInfo

From Multi Theft Auto: Wiki
Jump to: navigation, search

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

Minimum supported server 1.5.1-9.07633
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.5.1-9.07633" />

See Also