Merge pull request #892 from ic3d00/main

feat(es_extended/config.lua): Config.EnablePaycheck option
This commit is contained in:
TheFantomas
2023-02-15 15:44:40 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -22,6 +22,7 @@ Config.DefaultSpawn = {x = -269.4, y = -955.3, z = 31.2, heading = 205.8}
Config.EnableSocietyPayouts = false -- pay from the society account that the player is employed at? Requirement: esx_society
Config.MaxWeight = 24 -- the max inventory weight without backpack
Config.EnablePaycheck = true -- enable paycheck
Config.PaycheckInterval = 7 * 60000 -- how often to recieve pay checks in milliseconds
Config.EnableDebug = false -- Use Debug options?
Config.EnableDefaultInventory = true -- Display the default Inventory ( F2 )
+3 -1
View File
@@ -66,7 +66,9 @@ MySQL.ready(function()
print(('[^2INFO^7] ESX ^5Legacy %s^0 initialized!'):format(GetResourceMetadata(GetCurrentResourceName(), "version", 0)))
StartDBSync()
StartPayCheck()
if Config.EnablePaycheck then
StartPayCheck()
end
end)
RegisterServerEvent('esx:clientLog')