Installation
Follow these steps to install the script correctly on GTA 5.
Prerequisites
Section titled “Prerequisites”- 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 (often in .zip or .rar format) from the official source. -
Unzip the folder
Use a tool like WinRAR or 7-Zip to extract the script folder on your computer. -
Place the folder in the
resourcesdirectory
Copy the script folder into theresourcesfolder of your FiveM server (for example:resources/[myserver]/funny_grenade). -
Declare the script in the
server.cfgfile
Open theserver.cfgfile at the root of your server and add the following line: ensure ‘funny_grenade’ -
Configure the script
Modify the configuration fileconfig.lua. Change it according to your needs before starting the server. (See Configuration) -
Add the item to your inventory Make sure to do it via your inventory system. The item name is WEAPON_LAUGHGRENADE. The item image is in the /shared/ folder.
-
Restart the server
Restart your FiveM server for the script to be taken into account.
Check that the script folder contains an fxmanifest.lua file: this is essential for FiveM to recognize the script.