Jump to content

Recommended Posts

This is the solution to insert the button for the economy, it must be inserted in the main dialog
 

class DynMarketIcon: Life_RscPicture
        {
            idc = 1213;
            text = "CBX\phone\images\icons\economy.paa";
            x = 0.4175 * safezoneW + safezoneX;
            y = 0.533 * safezoneH + safezoneY;
            w = 0.0288751 * safezoneW;
            h = 0.0484 * safezoneH;
        };

 

       This is to open the page on the economy :

 

class DynMarketButton: CBX_RscButtonInvisable
        {
            idc = 3025;
            onButtonClick = "[] spawn life_fnc_openMarketView;";
            x = 0.4175 * safezoneW + safezoneX;
            y = 0.533 * safezoneH + safezoneY;
            w = 0.0288751 * safezoneW;
            h = 0.0484 * safezoneH;
        };

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×