refactor: move server settings to config

Added support for sv_lan to allow use with FxDK.
Added support for ESX forks with Config.Identifier
This commit is contained in:
Linden
2021-10-29 12:17:04 +11:00
parent 3fe1f438df
commit a9960ef3f5
2 changed files with 16 additions and 7 deletions
+11
View File
@@ -6,6 +6,17 @@ if IsDuplicityVersion() then
-- If you want to manage extra slots for specific players you can do it by using '/setslots' and '/remslots' commands
Config.Slots = 4
--------------------
-- Text to prepend to each character (char#:identifier) - keep it short
-- if you modify this, you will need to modify es_extended due to an oversight!
-- https://github.com/esx-framework/esx-legacy/blob/main/%5Besx%5D/es_extended/server/classes/player.lua#L17
-- if Config.Multichar then self.license = 'license'..identifier:sub(identifier:find(':')) else self.license = 'license:'..identifier end
Config.Prefix = 'char'
--------------------
-- Default identifier to store for characters - this should always match es_extended (recommended: license)
Config.Identifier = 'license'
else
-- Sets the location for the character selection scene
-- To set the spawn location for new characters, modify the default value in the `users` SQL table