# Configuration

## 🔧 Config/shared.lua

```lua
return {
    defaultSpawn = vec4(-153.88, -943.02, 264.23, 347.67),
    defaultNumberOfCharacters = 5,

}
```

## 🧍 Config/server.lua

```lua
If Using QBOX Framework then
licenseType = 'license2'

If Using ESX Framework then
licenseType = 'steam'

If Using QBCORE Framework then
licenseType = 'license'
```

Make Sure To Configure Properly Else Character Will Not Load or Save.

```lua
return {
    playersNumberOfCharacters = { -- Define maximum amount of player characters by rockstar license (you can find this license in your server's database in the player table)
        ['license2:1bce3719def47c0b8bbb3e6759859d0c82ab2b89'] = 5,
    },
    customPrefix = 'char',         -- Custom prefix for character identifiers (ESX)
    licenseType = 'license2',         -- License type for player identifiers
    defaultNumberOfCharacters = 5 -- Define maximum amount of default characters (maximum 3 characters defined by default)
}
```

## 📤 Config/client.lua

```lua
  loadingModelsTimeout = 10000,
  defaultNumberOfCharacters = 5,
  canDelete = false,
  characters = {
    locations = {
      [1] = {
        anim = { dict = "missfam1_yachtbattleonyacht02_", name = "onboom_twohand_hang_idle" },
        pedCoords = vec4(-162.05, -943.50, 267.0, 64.96),
        camData = {
          CamCoords = vec4(-159.05, -946.98, 267.62, 39.44),
          CamRotaion = {180.0, 180.0, 205.0},
          FromFov = 75.0,
          ToFov = 75.0,
        },
      },
      [2] = {
        anim = { dict = "amb@world_human_stupor@male@idle_a", name = "idle_a" },
        pedCoords = vec4(-149.74, -945.14, 269.13, 54.17),
        camData = {
          CamCoords = vec4(-153.91, -939.17, 269.14, 213.78),
          CamRotaion = {180.0, 180.0, 30.0},
          FromFov = 75.0,
          ToFov = 20.0,
        },
      },
      [3] = {
        anim = { dict =  "anim@amb@nightclub@mini@dance@dance_solo@shuffle@", name = "high_right_up" },
        pedCoords = vec4(-156.70, -938.39, 269.12, 75.20),
        camData = {
          CamCoords = vec4(-159.55, -937.41, 268.94, 160.98),
          CamRotaion = {180.0, 180.0, 75.0},
          FromFov = 75.0,
          ToFov = 50.0,
        },
        weapon = 'weapon_pistol_mk2'
      },
      [4] = {
        anim = { dict = "timetable@ron@ig_3_couch", name = "base" },
        pedCoords = vec4(-158.45, -941.65, 274.10, 339.04),
        camData = {
          CamCoords = vec4(-157.64, -938.30, 273.55, 162.31),
          CamRotaion = {180.0, 180.0, -20.0},
          FromFov = 75.0,
          ToFov = 50.0,
        },
        -- Props = {
        --   Bone = 28422,
        --   Name = 'prop_cash_case_01',
        --   Placement = {
        --     vector3(-0.005000, -0.187000, -0.140000),
        --     vector3(0.000000, 0.000000, 0.000000),
        --   },
        -- },
      },
      [5] = {
        anim = { dict = "club_intro2-0", name = "csb_englishdave_dual-0" },
        pedCoords = vec4(-151.67, -948.29, 271.28, 8.97),
        camData = {
          CamCoords = vec4(-153.13, -944.43, 269.64, 201.91),
          CamRotaion = {210.0, 180.0, 20.0},
          FromFov = 75.0,
          ToFov = 35.0,
        },
      },
    },
    playerCoords = vec4(-139.66, -956.04, 269.14, 240.10),
    defaultCam = {
      CamCoords = vec4(-167.72, -923.30, 266.38, 206.08),
      CamRotaion = {180.0, 180.0, 20.0},
    },
    finalCam = {
      CamCoords = vec4(-167.72, -923.30, 266.38, 206.08),
      CamRotaion = {180.0, 180.0, 20.0},
      FromFov = 75.0,
      ToFov = 25.0,
    },
    npc = {
      -- [1] = {
      --   model = 's_m_y_cop_01',
      --   coords = vec4(-1316.23, -829.33, 16.78, 292.46),
      --   anim = { dict = "random@arrests", name = "generic_radio_chatter" },
      -- },
      -- [2] = {
      --   model = 's_f_y_cop_01',
      --   coords = vec4(-1314.66, -831.39, 16.78, 329.79),
      --   anim = { dict = "random@countryside_gang_fight", name = "biker_02_stickup_loop" },
      --   weapon = 'weapon_pistol_mk2'
      -- },
    },
  }
}

```
