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

Property
Type
Required
Description

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 },
}

๐Ÿ†” 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-idcard

  • bl_idcard

  • qbx_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

  1. Check item names - Must match exactly with inventory items

  2. Check inventory script - Make sure it's started before multicharacter

  3. Check console - Look for error messages

ID Cards Not Working

  1. Verify your ID card script is running

  2. Set customExport = true if using custom ID scripts

  3. Check 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