CAC_GetGameResourceReportStatus

Description

Gets report status of a specific game resource. (previously set with CAC_SetGameResourceReportStatus)

Definition

native CAC_GetGameResourceReportStatus(model_type_flag);

Parameters

Return values

Example usage

// example requires: zcmd-style command processor
COMMAND:fastsprint_status(player_id, params[])
{
    new status = CAC_GetGameResourceReportStatus(CAC_GAMERESOURCE_MODELTYPEFLAG__PEDS | CAC_GAMERESOURCE_MODELTYPEFLAG__WEAPONS | CAC_GAMERESOURCE_MODELTYPEFLAG__PEDIFP);
    if(status)
    {
        SendClientMessage(player_id, -1, "Reporting for peds, weapons AND ped.ifp modifications is enabled.");
    }
    else
    {
        SendClientMessage(player_id, -1, "Reporting for peds, weapons OR ped.ifp modifications is disabled.");
    }
    return 1;
}

Remarks