πŸ“šInstallation

A simple installation guide for cs-speak

QBCore Installation

If you are using qbcore make sure that in the "config.lua" file the Config.Framework section is set to "QBCore", otherwise change it to QBCoreIf you are using QBCore make sure that in the config.lua file the Config.Framework section is set to "qbcore", otherwise change it to qbcore.

If you have modified the "PlayerData" structure and the script has errors, you must make the table that receives the script equal to the default one. You can edit the tables that are received in "custom.lua" on serverside and clientside. If you have not modified the "default" table structure ignore this warning.

Item Creation

To add the radio item you must go to "qb-core", shared, items.lua.

items.lua
["csradio"] = {
    ["name"] = "csradio",
    ["label"] = "Advanced Radio",
    ["weight"] = 0,
    ["type"] = "item",
    ["image"] = "radio.png",
    ["unique"] = true,
    ["useable"] = false,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Emergency radio system"
}

Inventory images

11KB
Open

ESX Installation

The installation on ESX is straightforward. To start, it will be necessary to set the section 'Config.Framework' in the 'config.lua' file to 'ESX' for the script to function correctly.

Database configuration

In ESX, you'll need to execute the SQL file included in the script. Run the file esx_items (only ESX).sql in your database.

Last updated