Installation
Download the script from the repository.
Extract the contents of the downloaded file to your FiveM server's
resources
directory.Add the following line to your server's
server.cfg
file:Import the provided SQL file (
sql.sql
) into your database to create the necessary tables.
Usage
Admin Panel
To open the admin panel, use the command specified in the configuration file (config/shared.lua
). The default command is /drugscreator
. This command is restricted to users with the specified admin group.
Creating a Drug
Open the admin panel using the command.
Click on the "CREATE DRUG" button.
Enter the name of the drug and configure the crafting and processing steps.
Save the drug configuration.
Editing a Drug
Open the admin panel using the command.
Click on the "VIEW CREATED DRUGS" button.
Select the drug you want to edit and make the necessary changes.
Save the updated configuration.
Deleting a Drug
Open the admin panel using the command.
Click on the "VIEW CREATED DRUGS" button.
Select the drug you want to delete and confirm the deletion.
Last updated