CAC_GetGameOptionStatus

Description

Gets status of a specific game option. (previously set with CAC_SetGameOptionStatus)

Definition

native CAC_GetGameOptionStatus(option_id);

Parameters

Return values

Example usage

// example requires: zcmd-style command processor
COMMAND:vehicle_blips_status(player_id, params[])
{
    new status = CAC_GetGameOptionStatus(CAC_GAMEOPTION__VEHICLEBLIPS);
    if(status)
    {
        SendClientMessage(player_id, -1, "Vehicle blips are enabled.");
    }
    else
    {
        SendClientMessage(player_id, -1, "Vehicle blips are disabled.");
    }
    return 1;
}

Remarks