Jump to content
  • 0

have a anti glitch script causing side issues


Vindomire

Question

I have a script that closes the gear window when within say 6m of a locked car. It is apparently possible to glitch into the gear of a locked car and loot it. The script i use closes all windows though so if a player locks a car too close to a door the unlock screen gets closed. Or if a car is locked too close to a trader the trade window gets closed.

_lockVehicle = ["Air","Car","Motorcycle","Tank","Ship","Truck"];
_pos = getPosATL player;
_vehicles = (nearestObjects [_pos, _lockVehicle, 6]);

//Close Gear Window near locked cars
{
    if (locked _x) then {
        closeDialog 0;
    };
} forEach _vehicles;

is there a specific GEAR Dialog i can close instead of 0.

Link to comment
Share on other sites

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