Framework

Framework Configuration

To ensure compatibility with your server's framework, you need to make adjustments in the script. Follow the steps below:

1. Configuring the Framework

Open the functions.lua file located in the script's folder. Find the following line:

local FrameWork = 'ESX'

If your server uses QBCore, change the line to:

local FrameWork = 'QBcore'

If your server does not use ESX or QBCore, set the framework to standalone by changing the line to:

local FrameWork = 'standalone'

2. Using the /addstockskin Command

The script includes a command to add stock for skins. The default command is:

/addstockskin [skin_name] [quantity]

Example Usage:

If you want to add 100 units of the skin COMPONENT_FIVESEVEN_AA to the stock, you would use:

/addstockskin COMPONENT_FIVESEVEN_AA 100

Important Notes:

  • The skin names must match the ones defined in the script's config.lua file.

  • You can change the name of the command by editing the config.lua file.

3. Restricting the Command to Admins

To ensure only admins can use the /addstockskin command, you need to specify the admin identifiers. Open the functions.lua file and add the admin identifiers in the appropriate section. For example:

4. Updating Notification Events

At the end of the config.lua file, you will find the TriggerEvent lines for notifications. These are crucial to ensure the script integrates properly with your server's notification system.

By customizing these events, you can ensure that the notifications work seamlessly within your server environment.

Atualizado