OnPlayerACInfo

From Multi Theft Auto: Wiki
Revision as of 21:21, 3 December 2015 by Ccw (talk | contribs)
Jump to navigation Jump to search

This event is triggered when a player trips anti-cheat detections.

[[{{{image}}}|link=|]] Note: Any resource using this event should call resendPlayerACInfo for each player in onResourceStart

Parameters

table acCodelist, int d3dSize, string d3dMd5, string d3dSha256
  • acCodelist: A table of tripped AC codes represented as numbers
  • d3dsize: File size of detected d3d9.dll
  • d3dmd5: MD5 of detected d3d9.dll
  • d3dsha356: SHA256 of detected d3d9.dll

Source

The source of this event is the player

Example

This example prints all information into the chatbox


function handleOnPlayerACInfo( acCodelist, d3dSize, d3dMd5, d3dSha256 )
    outputChatBox( "ACInfo for " .. getPlayerName(source)
                .. " acCodelist:" .. table.concat(acCodelist,",")
                .. " d3dSize:" .. d3dSize
                .. " d3dSha256:" .. d3dSha256 
                )
end
	
addEventHandler( "onPlayerACInfo", root, handleOnPlayerACInfo )

-- Ensure no one gets missed when the resource is (re)started
addEventHandler( "onResourceStart", resourceRoot,
    function()
        for _,plr in ipairs( getElementsByType("player") ) do
            resendPlayerACInfo( plr )
        end
    end
)


See Also

Player events


Event functions