# Logging, Permissions, Starter Items, Slots

## config/server.lua

```lua
Config = Config or {}
---Safe ped spawn coords if the last location is vector3(0.0, 0.0, 0.0)
Config.SafeSpawnCoords = vector3(-1037.82, -2737.87, 20.17)
---Starter items when creating new character
Config.StarterItems = {
    -- { item: string, amount: number, metadata: table (optional) },
    { item = 'phone', amount = 1, metadata = {} },
    { item = 'money', amount = 500 },
}
---Config for logging
Config.Logging = {
    method = 'discord', -- 'discord', 'lib'
    api = '' -- only for 'discord'
}
-- Discord role based slots
Config.Discord = {
    bot_token = 'BOT_TOKEN', -- bot token
    server_id = 'SERVER_ID', -- discord server id
    cache_expiry = 300, -- api request cache expiry (in seconds)
    roles = {
        -- role_id = slots
        ['ROLE_ID1'] = 2,
        ['ROLE_ID2'] = 3,
        ['ROLE_ID3'] = 4,
    }
}
---Ace permission required to use commands
Config.CommandsPermission = 'characters'
---Default characters a player can create
---Up to 8 slot coords are preset per scene; tweak them in config/scenes.lua to add more.
Config.DefaultSlots = 1
---Default days for the slots to expire
Config.DefaultSlotsExpiry = 30 -- days
---Default Identifier of the player which will be used for adding/removing slots
---Only change if you know what you are doing
Config.DefaultSlotIdentifier = GetResourceState('qbx_core') ~= 'missing' and 'license2' or 'license' -- Ex: 'steam', 'license', 'discord', 'fivem'
---Config for character slots for each identifier (the ones added here will be permanent)
Config.CharacterSlots = {
    -- ['steam:110000xxx'] = 2,
    -- ['discord:42348982394324'] = 2,
    -- ['fivem:233443'] = 2,
    -- ['license:3214987y9843jdfd98432424233443'] = 2,

```
