London Studios Documentation
Our StoreSupport PanelYouTube Channel
  • General
    • Documentation
    • Resource Support
    • Downloading Resources
    • Installing Resources
    • Resource Transfers
    • Common Errors
    • Translating Resources
    • Inventory Icons
    • Resource Ideas
    • Integration Requests
  • Vehicles
    • American Rearmount Ladder
      • Setting up
      • Anticheat Issues
    • Advanced Recovery Truck
      • Setting up
      • Anticheat Issues
    • SWAT Vehicle
      • Setting up
      • Anticheat Issues
    • Police Water Cannon
      • Setting up
      • Anticheat Issues
    • British Ladder Truck
      • Setting up
      • Anticheat Issues
    • Tiller Ladder Truck
      • Setting up
      • Anticheat Issues
    • Scissor Lift
      • Setting up
      • Anticheat Issues
    • Car Transporter
      • Setting up
      • Anticheat Issues
    • Water Carrier & Command Unit
      • Setting up
      • Anticheat Issues
    • Water Spray Unit
      • Setting up
      • Anticheat Issues
    • Snow Loader Pack
      • Setting up
      • Anticheat Issues
  • Resources
    • Bike Hire
      • Using the resource
      • Configuring the resource
      • Configuring locations
    • Bomb Disposal Robot (EOD)
      • EOD - How to use
      • EOD - Permissions Check
      • OX_Inventory Integration
      • Other Integrations
    • Car Sale Sign
      • Installation Video
      • Using the resource
      • Configuring the resource
      • Configuring permissions
      • Item Support
    • Congestion Charge
      • Configuring the resource
      • Modifying Zones & Adding Cameras
    • Custom Vinewood Sign
      • Installation Video
      • Sign Setup
    • Decontamination Tent
      • Using the resource
      • Configuring the resource
      • OX_Inventory Integration
      • Other Integrations
    • Directional Spikes
      • Using the resource
      • Configuring the resource
    • Emergency Call Points
      • Using the resource
      • Configuring the resource
    • Fire Supply Line [v2]
      • Using the resource
      • Configuring Fire Supply Line
    • Fire Tools [v2]
      • Using the resource
      • Configuration
      • Permissions, Notifications and Items
      • Item Support
    • Helicopter Rescue
      • Using the resource
      • Configuring the resource
      • Configuring the permissions
      • Configuring locations
    • Mobile Spike
      • Setting up vehicles
      • Misc Configuration Values
      • Permission Checks
      • OX_Inventory Integration
      • Other Integrations
    • Police Grappler
      • Setting up vehicles
      • Misc Configuration Values
      • Permissions, Notifications & Items
      • Item Support
    • Police Shields
      • Using the resource
      • Permissions, Notifications & Items
      • Item Support
    • Rope Rescue Tripod & Basket
      • Using the resource
      • Configuring the resource
      • OX_Inventory Integration
      • Other Integrations
    • Rescue Cushion
      • Using the resource
      • Permissions, Notifications & Items
      • Other Integrations
    • Smart Speed Signs
      • Configuring the resource
      • Adding new locations
    • Smart Airbags
      • Using this resource
      • Permissions & Notifications
    • Smart Bollards
      • Installation Video
      • Configuring the resource
      • Setting up a new set
    • Smart Clamp
      • Permissions, Notifications and Items
      • Item Support
      • Exports and Events
    • Smart Defib
      • Using the resource
      • Defib locations
      • Framework support
      • Setting up blips
      • Chance of success
      • Sound settings
      • Keybind configuration
      • Automatic reset
      • Custom Death Scripts
      • OX_Inventory Integration
      • Other Integrations
    • Smart Drone
      • Using the resource
      • Permission Checks, Notifications & Items
      • Keybinds
      • Item Support
      • Other Integrations
    • Smart Fires
      • Installation Video
      • Putting out fires
      • Fire Alerts
      • Remove Fires Automatically
      • Custom Notifications
      • Automatic Fires
        • Enabling automatic fires
        • Job / Permission Check
        • Adding locations
        • Automatic Fire Chances
        • Other automatic fire settings
      • Commands
      • Command permission checks
      • Editing fire types
      • Editing smoke types
      • Misc configuration values
      • Setting up weapons
      • Area of patrol settings
      • Clock on system
      • Lighter Item & Command
      • Server exports and events
      • Discord logging
      • Society Payments
    • Smart Hose [v2]
      • Using the resource
      • Configuring Smart Hose
    • Smart Matrix
      • Install & Configuration Video
      • OX_Inventory Integration
      • Other Integrations
    • Smart Motorways
      • Using the resource
      • Configuring the resource
    • Smart Signs
      • Configuring the resource
      • Configuring the permissions
    • Smart Speed Cameras
      • Configuring the resource
      • Adding new cameras
    • Smart Taser
      • Using the resource
      • Configuration
      • OX_Inventory Integration
      • Other Integrations
    • Smart Vehicle
      • Compatible Vehicles
      • Free Developer Copy
      • Permission Checks
      • Using a Smart Vehicle
      • Informations for Developers
      • Vehicle Control Menus
    • Police Tracker
      • Setting up vehicles
      • Resource Configuration & Usage
      • Item Support
    • Throw Bag
      • Resource Usage
      • OX_Inventory Integration
      • Other Integrations
    • Vehicle Rescue
      • Using the Resource
      • Permissions, Notifications & Items
      • Copy of Item Support
    • Water Monitor
      • Using the resource
      • Copy of Permissions, Notifications & Items
      • Copy of Item Support
    • Weapon Lanyard
      • Setting up weapons
      • Using the resource
      • Setting up clothing / EUP
Powered by GitBook
On this page

Was this helpful?

  1. Resources
  2. Smart Taser

Configuration

To begin configuring the resource, open the config.lua file and navigate to the main = { section.

Sound Volume

soundVolume = 0.7, -- This allows you to change the sound volume. The number should be a maximum of 1.0

You can edit the sound volume using the above variable. This can be a maximum of 1.0. Once again, we're utilising 3D sound, unlike the original TaserFramework, to enhance the realism for your server.

Barb Removal Range

rangeToRemoveBarbs = 25.0, -- This is the range of barbs, after this, they will remove automatically

This variable allows you to set the range at which barbs will remove automatically. By default, we've set this to 25m.

Arc Mode Range

arcModeRange = 1.2, -- This is the range your drive stun (arc) mode will operate in, you must be this close to another player

This variable allows you to set the range at which drive stun/arc mode will work within. By default, we've set this to 1.2m and we recommend this value.

Drive Stun Cooldown

driveStunCooldown = 1, -- This is the cooldown after using drive stun (arc) mode, before being able to use it again

This is the cooldown after using the drive stun/arc mode. By default, we've set this to 1 second.

Cartridge Reactivation Cooldown

cartridgeReactivationCooldown = 1, -- This is the cooldown between reactivations

This is the cooldown after reactivating a cartridge. You'll still be able to reactivate the other cartridge within the cooldown period though. By default, we've set this to 1 second.

Default Keybinds

selectRightCartridge = "PAGEDOWN",
selectLeftCartridge = "PAGEUP",
enableArcMode = 'X',
enableFlashlight = 'Q',
enableLaserSight = 'E',
enableSafety = 'Z',

These must be entered as strings. Select right/left cartridge keys are also used for reactivation. You can also set the keys for toggling arc, flash, laser and safety mode.

These are only default keybinds, your users are able to change the keys in their FiveM settings, as we've registered them as keymappings.

To do this, you can head to Settings -> Keybinds -> FiveM where you'll see all the different keybinds associated with the resource. This allows every player on your server to choose their own unique set of keybinds.

Flashlight / Laser Colour

flashlightColour = {221, 221, 221}, -- This is the colour of the flashlight
laserSightColour = {255, 0, 0}, -- This is the colour of the laser sight

This variable allows you to set the colour of the flashlight (white by default) and laser (red by default). Both values are in RGB.

Laser Sight Range

laserSightRange = 25.0, -- This is the range on the laser sight

This is the range on the laser sight. By default, we've set this to 25m.

Logging Settings

This is where you'll configure the logging settings. This isn't where you'll enter the webhook, you must do this in the sv_utils.lua file.

webhookOptions = {
        colour = 1752220, -- This must be in a decimal format, please find a list here: https://gist.github.com/thomasbnt/b6f455e2c7d743b796917fa3c205f812
        webhookImage = "https://i.imgur.com/FtbsbMX.png", -- This is the image that will display in the webhook
        webHookName = "Axon Audit Trail" -- This is the name of the webhook
},

Afterwards, you can then set the webhook image that will be displayed and also the webhook name.

CID Position

By default, the CID is in the bottom right hand side of the screen.

cidXY = {0.94, 0.94}, -- {X, Y}

Below this, you'll see values for above the map, top left and top right.

-- Copy these into the CID for wherever you'd like it to be placed:
-- Above Map: {0.08, 0.73}
-- Top Left: {0.0625, 0.055}
-- Bottom Right: {0.94, 0.94}
-- Top Right: {0.94, 0.055}}

If you wish to change the CID to another place, copy one of the example values and replace the variable with it. For example, you may want to switch it to above the map instead.

Adding Additional Tasers

To begin, navigate to the tasers = { section of the config.lua file.

-- This section allows you to support additional taser models for your server
tasers = {
    [`weapon_stungun`] = { -- This is the model of the taser
        name = "Taser X2", -- This is the name of the taser and will appear in logs
        loadedCartridges = 2, -- Always keep loadedCartrides as 2
        ableToDriveStun = true, -- This enables/disables Arc Mode of the taser
        ableToReactivate = true, -- This enables/disables reactivating the taser
    },
}

Adding additional tasers requires you to add them to the table wrapped in this symbol: `` (the model name within them).

You'll then need to define the name of the taser and the ability to drive stun/reactivate. For example, you may want to add another stun gun just for police in training, without the full set of features.

Notifications

By default notifications use base GTA features and appear above the map. We also support mythicNotify. We have plans to support others in the future.

If you wish to enable mythic notify, head to the main.notifications = { section of the file.

main.notifications = {
    gtaAboveMap = true,
    mythicNotify = {
        enabled = false,
        mythicNotifyResourceName = "mythic_notify"
    }
}

Simple enable or disable the options you want. If you need another notification resource integrating, just let us know.

PreviousUsing the resourceNextOX_Inventory Integration

Last updated 1 year ago

Was this helpful?

You can set the colour, which must be in a decimal format. The link may help you in choosing a colour in a decimal format.

here