⚙️Configuration

Adding additional slot for player

Within your config , you'll use the Slots table to define licenses or permissions and their associated limits. Let's look at an example:

Slots = {
    ["license:12xyzxyz"] = 5,
},

In the above example, we've defined a license named "license:". This license allows up to 5 usages or instances of the associated feature.

  1. qbox framework: If you're integrating the qbox framework into your project, licenses are categorized as "license2". This is in contrast to the "license" key used in the qbcore framework.

  2. qbcore framework: For the qbcore framework, a license named "license:" can be used, which permits a specified number of usages for the associated functionality.

  3. esx framework: Same with qbcore framework, unless you changed your config in es_extended

Adding new spawn location

The SpawnLocations table is used to define different spawn points, each associated with a unique identifier. Here's an example of how spawn locations are defined:

SpawnLocations = {
    ['legion'] = {
        coords = vector4(160.28, -988.92, 30.09, 158.43),
        label = "Legion Square",
        image = "https://media.discordapp.net/attachments/1139799269453340702/1139799292131934270/image.png",
    },
    -- More spawn locations can be defined similarly
}

In this example:

  • 'legion' is the identifier for this spawn location IT MUST BE UNIQUE.

  • coords is a vector4 that specifies the x, y, z coordinates and rotation for the spawn point.

  • label is a descriptive label for the spawn location (e.g., "Legion Square").

  • image is a URL linking to an image that represents the spawn location.

Last updated