Xtortion

maxDeposit for safes

7 posts in this topic

So I found in the config.cpp you can change your maxDeposit for the lockers

 

But I would also like to be able to increase the maxDeposit for the personal safes that people can have and that one is just 30k

 

Does anyone know where I can change the maxDeposit for the safes?

 

 

Thanks in advance already.

Share this post


Link to post
Share on other sites

You need to overwrite two files, one client and one server.

ExileServer_system_money_network_putMoneyRequest.sqf

_maximumPoptabsLoad = _maximumLoad * 10;

ExileClient_gui_inventory_updatePopTabControls.sqf

_maximumCapacity = _maximumLoad * 10;

If you want to find out the maximum load for each container

_maximumLoad = getNumber (configFile >> "CfgVehicles" >> typeOf ExileClientCurrentInventoryContainer >> "maximumLoad");

You'll need to take config.bin from client and convert it to .cpp.

Safe is 3000 maxload. So 3000 * 10 = 30000 by default.

Mine are all set to * 50

  • Like 5

Share this post


Link to post
Share on other sites
Advertisement

You're amazing @CEN !

 

Thanks a lot - Very helpful.

 

I could easily adjust the locker ones but I don't want people to simply store all their money in safezones.

 

So instead I want people to be able to store up a huge bundle into a safe and they'll have to travel with a big amount of money towards the safe zonen if they wanna purchase something big.

 

This is exactly what we need.

 

Thanks again :)

  • Like 1

Share this post


Link to post
Share on other sites
On 2.7.2016 at 9:11 PM, CEN said:

You need to overwrite two files, one client and one server.

ExileServer_system_money_network_putMoneyRequest.sqf


_maximumPoptabsLoad = _maximumLoad * 10;

ExileClient_gui_inventory_updatePopTabControls.sqf


_maximumCapacity = _maximumLoad * 10;

If you want to find out the maximum load for each container


_maximumLoad = getNumber (configFile >> "CfgVehicles" >> typeOf ExileClientCurrentInventoryContainer >> "maximumLoad");

You'll need to take config.bin from client and convert it to .cpp.

Safe is 3000 maxload. So 3000 * 10 = 30000 by default.

Mine are all set to * 50

Hi,

sounds good. Who wants to buy 50 safes? :D

I never created an override file myself i must admit, but added of course some from others here in the forum.
So what has do be done?

Do I take the original file and check for a good location to add the formula?
Or do i create a function / method to manipulate those two values?
Just adding those to lines to two files and put it into an init - can't be so easy?

What happens if the locker is to small for all the money? You can't add more money or the money is gone?

MrD

Edited by MrDynamite

Share this post


Link to post
Share on other sites

Take those 2 files listed above (one is in @Exile\addons\exile_client.pbo other is in @ExileServer

Change the single line in each, save them

Put them in your mission.pbo somewhere.

Open config.cpp in your mission file and fine the custom code section (overwrites) and list the file and the path to the file (they give you an example)

  • Like 1

Share this post


Link to post
Share on other sites

Take those 2 files listed above (one is in @Exile\addons\exile_client.pbo other is in @ExileServer

Change the single line in each, save them

Put them in your mission.pbo somewhere.

Open config.cpp in your mission file and fine the custom code section (overwrites) and list the file and the path to the file (they give you an example)

Hi,

yesterday evening i I could give it a shot.
Got it working with your help, on the first try.

Did my first overwrite file - thx man!

MrD

Edited by MrDynamite
  • Like 1

Share this post


Link to post
Share on other sites
On 2.07.2016 at 9:11 PM, CEN said:

You need to overwrite two files, one client and one server.

ExileServer_system_money_network_putMoneyRequest.sqf


_maximumPoptabsLoad = _maximumLoad * 10;

ExileClient_gui_inventory_updatePopTabControls.sqf


_maximumCapacity = _maximumLoad * 10;

If you want to find out the maximum load for each container


_maximumLoad = getNumber (configFile >> "CfgVehicles" >> typeOf ExileClientCurrentInventoryContainer >> "maximumLoad");

You'll need to take config.bin from client and convert it to .cpp.

Safe is 3000 maxload. So 3000 * 10 = 30000 by default.

Mine are all set to * 50

Will this increase capacity of all containers like cars or just safekit?

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.