Installation
Follow these steps to install the script correctly on GTA 5.
Requirements
Section titled “Requirements”- A working FiveM server (local or hosted) with OneSync enabled.
- Access to the 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 on your computer. -
Place the folder in the
resourcesdirectory
Copy the script folder into theresourcesfolder of your FiveM server (for example:resources/[myserver]/intense_smoke_grenade).
⚠️ Do not rename the folder: the nameintense_smoke_grenadeis used by the item export. -
Declare the script in the
server.cfgfile
Open theserver.cfgfile at the root of your server and add the following line:ensure intense_smoke_grenade
If you use ox_inventory, place this line afterensure ox_inventory. -
Configure the script
Edit theshared/config.luaconfiguration file to suit your needs before starting the server. (See Configuration) -
Add the item to your inventory
-
With ox_inventory: add the following item to
ox_inventory/data/items.lua:['intense_smoke_grenade'] = {label = 'Intense smoke bomb',weight = 500,stack = true,close = true,description = 'Smoke bomb to place on the ground, detonated remotely.',server = {export = 'intense_smoke_grenade.intense_smoke_grenade'}},The item name must be identical to
Config.Inventory.iteminshared/config.lua. The export follows the formatintense_smoke_grenade.<item name>. -
Without ox_inventory: set
Config.Inventory.enabledtofalse. Bombs are then handled by the script’s internal stock (/givesmokebombcommand) or by the server exports (see Important functions and variables).
-
-
Allow the admin command (internal stock only)
Add to yourserver.cfg:add_ace group.admin command.givesmokebomb allow -
Restart the server
Fully restart your FiveM server so the script, the 3D model and the.metafiles are loaded.
- Make sure the script folder contains an
fxmanifest.luafile: it is required for FiveM to recognize the script.