mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
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:
+11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user