RemoveBarriers removes all barriers on the map. This is part of an old slice of code I found on the internet and made it work. I know there is a YMAP for this that removes the barriers at Legion, but I find that extremely useless as it only removes the barriers at Legion and messes up other existing YMAPs.
I kindly ask you to report any bug/suggestion down below.
Ahhh yeah, I removed all barriers that I could remember. The screenshots above are some of the barriers I removed. I forgot to remove the one’s at the dock though. I’m not currently home, but I will update the script to remove the one’s on the dock on Sunday. Thanks for the feedback!
As standard, the script is removing barriers every 2.5 seconds, so if you’re driving fast, it doesn’t get to remove it in time. You can change how often it’s gonna remove barriers in the client.lua.
You can change it to f.ex every half second like this:
Line 31:
Citizen.Wait(2500)
Change to:
Citizen.Wait(500)
Do keep in mind, lowering the delay will also cause the script to run slower. Hope this helped