Scripting/Server/Classes/Player/CheckFileHash

Asks the player's game for the CRC32 of a file (path relative to their GTA III folder). The answer arrives in onPlayerFileHash. Max 8 pending requests per player.

Syntax

player.CheckFileHash("data/handling.cfg")

Arguments

Returns

bool (false if the request could not be sent)

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "checkfilehash" )
	{
		local result = player.CheckFileHash( 0 );
		MessagePlayer( "player.CheckFileHash returned: " + result, player );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Player

Categories: Server methods | Player