CAC_PlayerSetGameOption

Description

Sets game options per-player.

Definition

native CAC_PlayerSetGameOption(player_id, option_id, status);

Parameters

Return values

Example usage

// example requires: zcmd-style command processor
COMMAND:no_vehicle_blips_except_me(player_id, params[])
{
    CAC_PlayerSetGameOption(player_id, CAC_GAMEOPTION__VEHICLEBLIPS, true);
    // I can see vehicle blips.

    CAC_SetGameOptionStatus(CAC_GAMEOPTION__VEHICLEBLIPS, false);
    // however, this call disables vehicle blips for all clients, including myself
    // so I won't see any more vehicle blips

    CAC_PlayerSetGameOption(player_id, CAC_GAMEOPTION__VEHICLEBLIPS, true);
    // revert back to old settings for vehicle blips
    // now I can see vehicle blips., while others can't

    return 1;
}

Remarks