CAC_PlayerSetGameResource

Description

Sets game resource reporting policies per-player.

Definition

native CAC_PlayerSetGameResource(player_id, report_flags, report_type); 

Parameters

Return values

Example usage

// example requires: zcmd-style command processor
COMMAND:try_to_enable_ped_ifp(player_id, params[]) // _but_fails :(
{
    CAC_SetGameResourceReportStatus(CAC_GAMERESOURCE_MODELTYPEFLAG__WEAPONS, true);
    // this call will enable weapon mods reporting for all players, including myself

    CAC_PlayerSetGameResource(player_id, CAC_GAMERESOURCE_MODELTYPEFLAG__PEDIFP, CAC_GAMERESOURCE_REPORTTYPE__FULL);
    // however, this call enables ped.ifp mods reporting for me, but also disables all other mods reporting, ...
    // ... including weapon mods which were previously globally enabled
    // so I won't report any weapon mods anymore
    // also, report_type is now set to FULL, no matter what value was globally set before

    CAC_SetGameResourceReportStatus(CAC_GAMERESOURCE_MODELTYPEFLAG__WEAPONS, true);
    // this call overrided previous per-player settings, so I will report again weapon mods, but I won't report anymore ped.ifp mods.
    return 1;
}

Remarks