Metal Detectors -
Metal Detectors is a script that gives you the ability to add metal detectors around the map either with or without an entity. You can give access to certain players so they can walk through a metal detector without it going off. There is plenty of customization options for this script to work just right for you.
Download - (Version 0.2)
Other -
It comes with some metal detectors already added, I use the scanners at the FIB Headquarters and I added one to the Lifeinvader lobby as an example. Please let me know of any issues. I will be updating this as time goes on. Feel free to edit the script but do not re-upload it.
So in the âconfig.luaâ you can choose the radius that the metal detector will start to scan. Once you walk in the radius it checks if you have any weapons that are in a list, if you do it will trigger an event to play a alarm near the metal detector everyone can hear. In this list I included all the weapons that would have metal in them realistically. For example if you were to walk through them metal detector with a broken glass bottle it wouldnât go off.
I agree with Nigel.Dâs idea of ace perms (though Iâd rather see a command like /mdexempt (secured with an ace perm) that would toggle them being able to pass through or not (maybe have a message show up when they enter that states they are exempt when they are in range of a detector). I say a command to toggle because if you âaceâ them in, or even just manually add them, and they are off duty as a diff character who is a criminal, exempting them from detection would allow them to stroll right on in weapons and all since they are cleared.
The weapons are not defined in the config.lua. If you would like to edit them you can look in main/src/client/functions.lua, look for a function called HasWeapon. Keep in mind I only put the weapons that would have metal realistically. I may update this table into the config.lua at some point. I will also look into adding the functionality to work in ace perms.
I have just tested and updated it this morning, it did spawn the detector and set off the alarm when I went through. I recommend double-checking your coordinates. Make sure you have the most recent download and make sure your server artifacts are updated.
Can you do another test to verify? Just installed 3184 and still wonât load in for me, Also installed a fresh copy and didnât do anything but rename it.
Make sure you restart the server to see the changes to the config. Restarting the script may not work reason being I am having to stream the prop because it is from the Casino DLC. I have added something to the CreateDetector function. Please update.