Jump to content
  • 0

2 bug, need fixes


godmode8

Question

Hello. I found 2 bugs in version 1.0.5.1 and I do not know how to fix it.

Bug # 1: When removing a 30m plot, you can open inventory and move tools and a crowbar into the backpack. You can not be afraid that they will break.

 

Bug # 2: I use a custom script that forbids the opening of the inventory of closed transport. fn_gearMenuChecks.sqf

Spoiler

private ["_display","_typeoftech"];
disableSerialization;
_display = (_this select 0);
GearStorags = ["WeaponHolder","WoodCrate_DZ","Wooden_shed_DZ","WoodShack_DZ","StorageShed_DZ","GunRack_DZ","VaultStorage","LockboxStorage"]; 
 
if (isNil "counterattemptsbuguse") then {counterattemptsbuguse = 0};
 
{
    if ( (locked _x) && !((typeOF cursorTarget) in GearStorags) ) exitWith
        {
            cutText [(localize "str_epoch_player_7") , "PLAIN DOWN"];
            counterattemptsbuguse = counterattemptsbuguse + 1;
            _typeoftech = typeOF _x;
            _display closeDisplay 1;
        };
} count (player nearEntities [["LandVehicle", "Air", "Ship"], 12]);
 
if (counterattemptsbuguse > 2) then {
    PVDZE_atp = format["Игрок %1(%2) пытается открыть инвентарь закрытой техники %3. Координаты: %4",name player,getPlayerUID player,_typeoftech,mapGridPosition(getPosATL player)];
    publicVariableServer "PVDZE_atp";
    counterattemptsbuguse = 0;
};

 

The problem is that if there is one weapon in the transport, you can take it through the menu, turning the mouse wheel (Link to Menu) . Players learned to duping this way.

Is there a solution to these problems? I will be grateful for any help.

Sorry for mistakes, I'm writing through a translator.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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...