Usage
This section explains how to use the ‘Electric Baton’ script once installed on your FiveM server.
Script activation
Section titled “Script activation”- The script starts automatically when the server starts if you have correctly added it in the
server.cfg
file with the line: ensure ‘electric_baton’ - No manual restart is necessary after installation, unless you modify the script configuration.
Available commands
Section titled “Available commands”- /electric_baton
Description: Toggles the electric mode of the baton on or off
Usage example:
- /electric_baton
In-game interactions
Section titled “In-game interactions”- When the baton is equipped, you can activate or deactivate the electricity at any time with the /electric_baton command or via the predefined key in the configuration.
- Once electricity is activated, hitting a player with the baton triggers a shock effect: the target is immobilized and falls to the ground for a few seconds, simulating a paralysis effect similar to a taser.
- If the baton is deactivated, it works as a normal baton without electric effect.
Specific features
Section titled “Specific features”- The paralysis duration is configurable in the configuration file.
- The default or custom effect is configurable in the configuration file.