Starter Items
Configure items that new characters receive automatically upon creation.
๐ฆ Configuration
Located in config/config.lua:
Config.StarterItems = {
{ name = 'phone', amount = 1 },
{ name = 'id_card', amount = 1, customExport = false },
{ name = 'driver_license', amount = 1, customExport = false },
}โ๏ธ Item Properties
name
string
โ
Item name (must exist in your inventory)
amount
number
โ
Quantity to give
customExport
boolean
โ
Use custom ID card system
๐ Basic Items
Add any item from your inventory:
Config.StarterItems = {
{ name = 'phone', amount = 1 },
{ name = 'bread', amount = 5 },
{ name = 'water', amount = 5 },
{ name = 'bandage', amount = 3 },
}Make sure item names match exactly with your inventory item names!
๐ ID Cards & Licenses
Standard Metadata
For id_card and driver_license, the script automatically adds player metadata:
QBCore Metadata includes:
citizenid
firstname
lastname
birthdate
gender
nationality
Custom ID Card Systems
If you use a custom ID card script, set customExport = true:
Supported ID Card Scripts:
um-idcardbl_idcardqbx_idcard
When customExport = true, the script calls the appropriate export instead of adding the item directly.
๐ฎ Framework Differences
QBCore / QBox
Items are added with full metadata support:
ESX
Basic item addition without advanced metadata:
๐ Complete Example
๐ง Custom Item Logic
For advanced item giving logic, modify server/functions.lua:
โ Troubleshooting
Items Not Being Added
Check item names - Must match exactly with inventory items
Check inventory script - Make sure it's started before multicharacter
Check console - Look for error messages
ID Cards Not Working
Verify your ID card script is running
Set
customExport = trueif using custom ID scriptsCheck if the export exists in your ID card script
Amount Issues
Some inventories have stack limits. If you're giving more than the stack limit, only the max stack will be added.
Last updated