This script allows you to add custom particle effects to weapons in FiveM. Particle effects can be configured and associated with specific weapons, automatically activating when a player holds the configured weapon. Effects are synced across all players within a 30 meter radius, ensuring consistent display of particle effects throughout the game.
Using Commands
Admins can use the `/weaponeff` command to configure and save particle effects for weapons directly in the game.
#### Command Syntax
* **Command**: `/weaponeff [playerId] [weaponName] [core] [dict] [size]`
* **Parameter Descriptions**:
* `playerId`: The ID of the player to apply the effect to.
* `weaponName`: The name of the weapon (e.g., `weapon_pistol`).
* `core`: The core of the particle effect.
* `dict`: The dictionary of the particle effect.
* `size`: The size of the particle effect.
#### Example Usage
To configure a particle effect for a player with ID 1 and a pistol:
```
/weaponeff 1 weapon_pistol core fire_wrecked_plane_cockpit 1.0
```
PREVIEW:
> VIDEO: https://streamable.com/g5jmzf
DISCORD: https://discord.gg/XP4yA7vWpH
