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
- any "data/handling.cfg"
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.
Related pages
- player.SetWeapon
- player.ClearWeapons
- player.GetWeaponAmmoAtSlot
- player.SetAnim
- player.RemoveLimb
- player.RemoveFromVehicle
- player.Spawn
- player.RespawnAt
- player.ForceToSpawnScreen
Section: Player
Categories: Server methods | Player