[Release] KnifeArch - Metal Detector, Custom Sound, /arch, /archdetect - Permissions, Config - London Studios

London Studios

London Studios - Update

Since forming London Studios in April 2020 we’ve created a number of high quality and premium resources for the FiveM project, focusing on the emergency services and aiming to bring your server to the next level.

Although we made a number of free resources such as this one in the first year, we’ve now switched to creating paid content, keeping them constantly updated and working along with providing the best possible support to our customers.

Our most popular resources now include Smart Fires, Police Grappler and Smart Hose.

With thousands of happy customers we are confident you’ll love our resources and our active support team are on hand to help if you have any questions!

Our store: https://store.londonstudios.net/forum

Therefore, this resource is now likely out of date and is no longer supported by us. The full source code is available should you wish to make any changes. All of our paid resources however are constantly updated and we invite you to take a look!

KnifeArch - London Studios

KnifeArch is a FiveM resource coded in C# allowing you to setup walk-through metal detectors which can be triggered by other players, alerting you and playing an external, custom sound as it is activated.

The time has come, you are now able to run knife arch operations and ensure that players are not carrying anything they shouldn’t be!

The included model has been taken from the DLC Casino Heist, and re textured.

This plugin is made by LondonStudios, we have created a variety of releases including TaserFramework, SearchHandler, ActivateAlarm, SmartTester, SmartSounds, CustodyAlarm, SmartObservations and more!

Video demo: here.

Usage

/arch [setup/remove] - Setup or remove a knife arch at your location.
/archdetect [true/false] - Set whether you will activate the arch when walking through

The /arch command is able to use AcePermissions, this must be enabled in “config.ini”.

The included Activation sound will play upon another player activating the metal detector.

You are only able to remove knife arches you have created and you may only setup one at a time.

Installation

Download the resource from GitHub here.

  1. Create a new resource folder on your server.
  2. Add the contents of “resource” inside it. This includes:
    “Client.net.dll”, “Server.net.dll”, “fxmanifest.lua”, “html”, “stream”, “config.ini”, “SharpConfig.dll”
  3. In server.cfg, “ensure” KnifeArch, to make it load with your server startup.

Configuration

The “config.ini” file allows you to enable permissions for the /arch command, which means you will have to give players access in your Server.cfg or another whitelisting method.

[KnifeArch]
PermissionsEnabled = false
SoundVolume = 0.6 # This must be below 1.0
SoundRadius = 30.0 # We recommend 30.0

On line 2, you can set PermissionsEnabled to “true” or "false. The /archdetect command is not included in this.
On line 3, you can set the SoundVolume, this must be below 1.0.
On line 4, you can set the SoundRadius, we recommend keeping this at 30.0.

Source Code

Please find the source code in the “src” folder. Please ensure you follow the licence in “LICENCE.md”.

Feedback

We appreciate feedback, bugs and suggestions related to KnifeArch and future plugins. We hope you enjoy using the resource and look forward to hearing from people!

Screenshots

Take a look at some screenshots of the plugin in action!

KnifeArch
KnifeArch
KnifeArch
KnifeArch

13 Likes

This looks AWESOME! Def gonna be having some fun with this one and I really appreciate the integration of AcePerms so I can restrict the setup to my LEO!!

Two questions:

  1. Does this automatically detect when you have a knife, or do you have to set a result before walking through?
  2. Does this only detect knives or does it detect other weapons as well?

Cheers

Hey,

  1. The description states you must do /archdetect true.
  2. Please see answer one.

Thanks,
London Studios

Hey,

Thanks for the comments.

I’ll sort aceperms out on all of my other plugins.

Thanks,
London Studios.

Excellent resource! 10/10

Would love to potentially see a similar resource or even a resource that associates directly with this one that utilizes a handheld metal detector like one of those Garret Super Scanner handhelds as those would be cool to work alongside this script.

(Kinda like this one)
image
Piggybacking off of that, maybe the handheld could be a separate script that also allows to detect the “location” the weapon is being hidden at. (Just a thought and suggestion from what we personally would love to see.)

Also, is there an ability to perhaps link this script to several “stactic” detectors throughout the map? What I mean by that is, we have several locations where we have added in the metal detector prop via Codewalker and were curious if it was possible to configure this script to auto-detect existing “detectors” and detect. (Hopefully that makes sense?)

Keep making such awesome resources!

=============
Warm Regards,
J.B.
Community Director
INGRP - Infamous Notoriety Gaming

1 Like

@LondonStudios This seems to spawn on every player in the server when you do /arch setup

Hey,

Another user made a pull request on the GitHub (they made changes to the KnifeArch) to add some features, this was a slight mistake they made which we will be resolving today.

Thanks,
London Studios

No problem

any update @LondonStudios If I knew C# then I would fix it but I don’t :frowning: maybe I should learn C#

This has now been resolved and an updated version is on GitHub.

Thanks,
London Studios

Any possibility an delete all knife arch command can be added? I cant delete the arch of players in the server if they place it in the middle of the road.

@LondonStudios

Hi, I believe I asked this In another post, May I ask that you could please state the prefix for the ace-permissions In the Release,
On that note, Could I please get the Acepermissions Prefix
add_ace group.police [?command.arch?] allow
??