📜Starer Items

With this article you can set the default starting items that will be given after the creation of a new character.

For this you need to go to the Config_Sv.lua file. Then, if you are using ESX, you should use the place specified below.


ESX Starter items settings

ConfigSV.StarterItems = Config.Framework.Framework == "esx" and {
    -- This is the place where the startup items specified for the ESX Framework will be written.
    {item = "itemname",amount = 1},
    {item = "itemname",amount = 1},
    {item = "itemname",amount = 1},
} or wFramework.Shared.StarterItems ~= nil and wFramework.Shared.StarterItems or {}

QBCore Starter items settings

For the QBCore framework, if it is a new framework, usually the startup items are located in the qb-core/shared/main.lua file. This script automatically pulls them from there. But if you are using old QBCOre, you can make changes in the following place

ConfigSV.StarterItems = Config.Framework.Framework == "esx" and {
    -- This is the place where the startup items specified for the ESX Framework will be written.
} or wFramework.Shared.StarterItems ~= nil and wFramework.Shared.StarterItems or {
    -- This is the place where the startup items specified for the QBCore Framework will be written.
    
    {item = "water", amount = 1},
    {item = "bread", amount = 1},
}

Last updated