Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
/ KnifeArch Public archive

A FiveM resource allowing you to setup and activate walk-through metal detectors, coded in C#.

License

Notifications You must be signed in to change notification settings

LondonStudios/KnifeArch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

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!

Join our Discord here for exclusive plugin previews.

Video demo: here.

Buy Me A Coffee

KnifeArch

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. If DetectedWeapons is not empty in the configuration, it will detect the specified weapons regardless if this is turned on or off.

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

  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
DetectedWeapons = { weapon_dagger, weapon_machete, weapon_knife }

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. On line 5, you can set the DetectedWeapons, this is an array of weapon names. Set to { } to disable detection of weapons automatically.

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

About

A FiveM resource allowing you to setup and activate walk-through metal detectors, coded in C#.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published