Jump to content

[Tutorial] 5.0 Dynamic Market


Fopeak
 Share

Recommended Posts

1 hour ago, Beauregard said:

I am not the best when it comes to GUI shit , but add a SizeEx to the List box. but I think this would work

        class listResources: RscListbox
        {
            idc = 1500;
            x = 5.5 * GUI_GRID_W + GUI_GRID_X;
            y = 2.5 * GUI_GRID_H + GUI_GRID_Y;
            w = 10.5 * GUI_GRID_W;
            h = 19.5 * GUI_GRID_H

             sizeEx = 0.04; //Change these to your liking Idk how this would look like in game just a guess
            onLBSelChanged = "[] spawn life_fnc_refreshMarketView";
        };

and experiment with sizes 

Thanks a lot, it worked and was exactly was I meant.

Link to comment
Share on other sites

  • 4 weeks later...
1 hour ago, redtraxx said:

Hey guys I have a problem My market system always goes down to 0. Can i do that so that he stays at a fixed price? Kind regards

You can't fix it, this script is broken. We had the same problem when we had a server a while back, nothing you do or change will stop it dropping to zero, best off using the other market system.

Link to comment
Share on other sites

  • 1 month later...

Hey guys market works perfect for me, was just wondering if anyone could help with adding something to the market. For example all I want to add is turtles. How would I go about that? I tired to copy and paste gold buyers but change it to turtle_raw along with filling out the rest of the things in the market configuration sqf but couldn't get it to work. Any ideas?

Link to comment
Share on other sites

4 hours ago, kdaws5 said:

Hey guys market works perfect for me, was just wondering if anyone could help with adding something to the market. For example all I want to add is turtles. How would I go about that? I tired to copy and paste gold buyers but change it to turtle_raw along with filling out the rest of the things in the market configuration sqf but couldn't get it to work. Any ideas?

Pastebin your market config.

Link to comment
Share on other sites

  • 1 month later...
1 minute ago, KaanE said:

_display = findDisplay 39500;

if(isNull _display) exitWith {hint "Dialog not open!"; };

  

Weird, that shouldn't be possible. Your refreshMarketView should have a waitUntil with the same display as the condition, so that refresh wouldn't run until then. Pastebin your Client RPT from when you tried it.

Link to comment
Share on other sites

  • 3 weeks later...
On 5/7/2017 at 1:15 AM, Robbo said:

You need to edit the init.sqf in the main directory, not the one in the Altis_Life.Altis\core. I made the same mistake as he says to edit it after "player enableFatigue false;". Ignore it and edit the other init.sqf file just adding the string in it.

main mission or life_server because i dont have init.sqf in main mission

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.