Installation
Follow these steps to properly install the script on GTA 5.
Requirements
Section titled “Requirements”- A working 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 to your computer. -
Place the folder in the
resourcesdirectory
Copy the script folder to theresourcesfolder of your FiveM server (for example:resources/[myserver]/dart_rifle). -
Declare the script in the
server.cfgfile
Open theserver.cfgfile at the root of your server and add the following line: ensure ‘dart_rifle’ -
Configure the script
Edit theconfig.luaconfiguration file. Modify it according to your needs before starting the server. (See Configuration) -
Add the weapon to your inventory Make sure to do this via your inventory system. The weapon name is found in the /client/weaponName.lua file => WEAPON_DARTRIFLE. The name of the ammunition is AMMO_DARTRIFLE. The weapon/ammo image is found in the /shared/ folder.
-
Restart the server
Restart your FiveM server for the script to take effect.
Verify that the script folder contains a fxmanifest.lua file: this is essential for FiveM to recognize the script.