Jump to content

Safes being wiped when accessing after restarts


Lukedbx

Recommended Posts

So I've had an issue with safes deleting the contents when people access them. I placed a few items in a safe to test, restarted my server and checked the database to see if the items were in the safe, and they were. I then logged in and accessed the safe and it cleared the inventory on the database. 

There are no RPT errors, does anyone have any ideas?

Link to comment
Share on other sites

Hey mate this will help you out:



Search in your Server_Monitor.sqf this Part:

if (count _intentory > 0) then {
if (_type in DZE_LockedStorage) then {
// Fill variables with loot
_object setVariable ["WeaponCargo", (_intentory select 0),true];
_object setVariable ["MagazineCargo", (_intentory select 1),true];
_object setVariable ["BackpackCargo", (_intentory select 2),true];

Look that  you have also the true behind!

Link to comment
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
  • Advertisement
  • Discord

×
×
  • Create New...