REGİSTER
Setup:
System Compatibility and Requirements
Actually, there's not much to write because the system automatically adapts. 😊 Here’s what you need to know:
If you are using QBCore, make sure to have qb-apartments and qb-clothing installed because they are required.
If you are using the ESX framework, make sure to have esx_skin.
If you have any other questions, don't hesitate to open a ticket! 🎫 This system supports meta data, so everything is automatically detected. 🔄
1. Configuration File
A configuration file in Lua allows you to centrally manage various settings of your game or application. The example below demonstrates a configuration file that supports different frameworks like QBCore and ESX.
Explanation:
Config.Framework
: Specifies the framework being used (QBCore, ESX, OLDQBCore, or NewESX).Config.MySQL
: Indicates the MySQL library to be used (mysql-async, oxmysql, or ghmattimysql).Config.steamAPIKey
: Steam API key required for certain functionalities, obtained from the Steam Developer site.Config.Spawn
: Defines the spawn location coordinates in the game.Config.UseQbApartments
: Boolean value to enable or disable the use of QbApartments.
2. Framework Selection Function
The following Lua function returns the appropriate object based on the user's specified framework. This function allows you to use the framework object for various operations within your game or application.
Explanation:
Function Purpose: This function determines which framework is being used and returns the corresponding object to interact with the framework's functionality.
Last updated