# Show/Hide Resource

GrammarshowHide resourceType for playerGroup
FlagsNative | Action

# Arguments

Returns — void

native void UISetResourceVisible(
	playergroup inPlayers,
	int inResource,
	bool inVisible,
);

Category: UI / Game UI

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:830

    PlayerModifyPropertyInt(gv_pLAYER_02_ZERG, c_playerPropMinerals, c_playerPropOperSetTo, 5000);
    PlayerModifyPropertyInt(gv_pLAYER_02_ZERG, c_playerPropVespene, c_playerPropOperSetTo, 5000);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeVespene, false);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeCustom, true);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:831

    PlayerModifyPropertyInt(gv_pLAYER_02_ZERG, c_playerPropVespene, c_playerPropOperSetTo, 5000);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeVespene, false);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeCustom, true);
    return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:832

    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeVespene, false);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeCustom, true);
    return true;
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:1184

    PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION3, c_playerPropMinerals, c_playerPropOperSetTo, 100);
    PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION3, c_playerPropMinerals, c_playerPropOperSetTo, 100);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeCustom, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeTerrazine, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:1185

    PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION3, c_playerPropMinerals, c_playerPropOperSetTo, 100);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeCustom, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeTerrazine, false);
    PlayerSetState(gv_pLAYER_02_DOMINION, c_playerStateFidgetingEnabled, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:1186

    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeCustom, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeTerrazine, false);
    PlayerSetState(gv_pLAYER_02_DOMINION, c_playerStateFidgetingEnabled, false);
    DialogControlHookupStandard(c_triggerControlTypeButton, "UIContainer/ConsoleUIContainer/IdleButton");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:1314

    UISetAlertTypeVisible(PlayerGroupAll(), "AttackUnitAlly_Zerg", false);
    UISetFrameVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_syncFrameTypeSupply, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:1315

    UISetFrameVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_syncFrameTypeSupply, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    return true;
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:1842

    }

    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus03.sc2map/MapScript.galaxy:1843


    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeIdleWorkerButton, false);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition03.sc2mapMapScript.galaxy:830

    PlayerModifyPropertyInt(gv_pLAYER_02_ZERG, c_playerPropMinerals, c_playerPropOperSetTo, 5000);
    PlayerModifyPropertyInt(gv_pLAYER_02_ZERG, c_playerPropVespene, c_playerPropOperSetTo, 5000);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeVespene, false);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeCustom, true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition03.sc2mapMapScript.galaxy:831

    PlayerModifyPropertyInt(gv_pLAYER_02_ZERG, c_playerPropVespene, c_playerPropOperSetTo, 5000);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeVespene, false);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeCustom, true);
    return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition03.sc2mapMapScript.galaxy:832

    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeVespene, false);
    UISetResourceVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_resourceTypeCustom, true);
    return true;
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:1184

    PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION3, c_playerPropMinerals, c_playerPropOperSetTo, 100);
    PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION3, c_playerPropMinerals, c_playerPropOperSetTo, 100);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeCustom, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeTerrazine, false);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:1185

    PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION3, c_playerPropMinerals, c_playerPropOperSetTo, 100);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeCustom, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeTerrazine, false);
    PlayerSetState(gv_pLAYER_02_DOMINION, c_playerStateFidgetingEnabled, false);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:1186

    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeCustom, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeTerrazine, false);
    PlayerSetState(gv_pLAYER_02_DOMINION, c_playerStateFidgetingEnabled, false);
    DialogControlHookupStandard(c_triggerControlTypeButton, "UIContainer/ConsoleUIContainer/IdleButton");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2mapMapScript.galaxy:1314

    UISetAlertTypeVisible(PlayerGroupAll(), "AttackUnitAlly_Zerg", false);
    UISetFrameVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_syncFrameTypeSupply, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2mapMapScript.galaxy:1315

    UISetFrameVisible(PlayerGroupSingle(gv_pLAYER_01_USER), c_syncFrameTypeSupply, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    return true;
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2mapMapScript.galaxy:1842

    }

    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus03.sc2mapMapScript.galaxy:1843


    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeIdleWorkerButton, false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:7730

        libVCMI_gf_CinematicModeCampaign(false, lv_fadeDuration, false);
        CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1286), lv_fadeDuration, -1, 10.0, true);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
        UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:7731

        CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1286), lv_fadeDuration, -1, 10.0, true);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
        UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
        CinematicFade(true, lv_fadeDuration, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:7740

        libVCMI_gf_CinematicModeCampaign(false, lv_fadeDuration, false);
        libNtve_gf_SwooshCamera(gv_pLAYER_01_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), CameraInfoGetTarget(CameraInfoFromId(1286)), lv_fadeDuration);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
        UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:7741

        libNtve_gf_SwooshCamera(gv_pLAYER_01_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), CameraInfoGetTarget(CameraInfoFromId(1286)), lv_fadeDuration);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
        UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
        CinematicFade(true, lv_fadeDuration, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:8213

    UnitIssueOrder(UnitFromId(35), Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
    VisExploreArea(gv_pLAYER_01_USER, RegionFromId(7), true, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, true);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, true);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:8214

    VisExploreArea(gv_pLAYER_01_USER, RegionFromId(7), true, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, true);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, true);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, true);
    PingDestroy(libHots_gf_PingStoredForUnit(gv_kERRIGAN, 1));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2mapMapScript.galaxy:7730

        libVCMI_gf_CinematicModeCampaign(false, lv_fadeDuration, false);
        CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1286), lv_fadeDuration, -1, 10.0, true);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
        UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2mapMapScript.galaxy:7731

        CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(1286), lv_fadeDuration, -1, 10.0, true);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
        UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
        CinematicFade(true, lv_fadeDuration, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2mapMapScript.galaxy:7740

        libVCMI_gf_CinematicModeCampaign(false, lv_fadeDuration, false);
        libNtve_gf_SwooshCamera(gv_pLAYER_01_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), CameraInfoGetTarget(CameraInfoFromId(1286)), lv_fadeDuration);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
        UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2mapMapScript.galaxy:7741

        libNtve_gf_SwooshCamera(gv_pLAYER_01_USER, ((CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance)) + 8.0), CameraInfoGetValue(CameraInfoDefault(), c_cameraValueDistance), CameraInfoGetTarget(CameraInfoFromId(1286)), lv_fadeDuration);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, false);
        UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, false);
        UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, false);
        CinematicFade(true, lv_fadeDuration, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2mapMapScript.galaxy:8213

    UnitIssueOrder(UnitFromId(35), Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
    VisExploreArea(gv_pLAYER_01_USER, RegionFromId(7), true, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, true);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, true);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2mapMapScript.galaxy:8214

    VisExploreArea(gv_pLAYER_01_USER, RegionFromId(7), true, false);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeMinerals, true);
    UISetResourceVisible(PlayerGroupAll(), c_resourceTypeVespene, true);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeSupply, true);
    PingDestroy(libHots_gf_PingStoredForUnit(gv_kERRIGAN, 1));