Installation
Follow these steps to correctly install the script on GTA 5.
Requirements
Section titled “Requirements”- A functional FiveM server (local or hosted).
- Access to server files (via FTP or directly on your machine).
Installation steps
Section titled “Installation steps”-
Download the script
Get the script folder (usually in .zip or .rar format) from the official source. -
Extract the folder
Use a tool like WinRAR or 7-Zip to extract the script folder onto your computer. -
Place the folder in the
resources
directory
Copy the script folder into theresources
folder of your FiveM server (for example:resources/[myserver]/electric_baton
). -
Declare the script in the
server.cfg
file
Open theserver.cfg
file at the root of your server and add the following line:ensure 'electric_baton'
-
Configure the script
Modify the configuration fileconfig.lua
. Adjust it according to your needs before starting the server. (See Configuration) -
Restart the server
Restart your FiveM server for the script to be taken into account.
Make sure the script folder contains a fxmanifest.lua
file: this is essential for FiveM to recognize the script.