CAC_OnGameResourceMismatch

Description

This callback is called when a player is detected with game resource modifications.

Definition

forward CAC_OnGameResourceMismatch(player_id, model_id, component_type, checksum);

Parameters

Return values

Example usage

public CAC_OnGameResourceMismatch(player_id, model_id, component_type, checksum)
{
    if(model_id == CAC_GAMERESOURCE_MODELID__PEDIFP)
    {
        new buf[128], name[MAX_PLAYER_NAME];
        GetPlayerName(player_id, name, sizeof(name));
        format(buf, sizeof(buf), "%s [ID: %i] is using a modified PED.IFP.", name, player_id);
        SendClientMessageToAll(-1, buf);
    }
    return 1;
}

Remarks