Configuration
To begin configuring the resource, open the config.lua file and navigate to the main = {
section.
Sound Volume
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
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
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
This is the cooldown after using the drive stun/arc mode. By default, we've set this to 1 second.
Cartridge Reactivation Cooldown
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
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
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
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.
You can set the colour, which must be in a decimal format. The link here may help you in choosing a colour in a decimal format.
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.
Below this, you'll see values for above the map, top left and top right.
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.
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.
Simple enable or disable the options you want. If you need another notification resource integrating, just let us know.
Last updated