Update(DefaultSpawn): Easier now

This commit is contained in:
Naifen || Developer
2023-02-03 14:40:15 +01:00
parent dadcb6ebfb
commit 06c45f928e
3 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -389,7 +389,7 @@ CREATE TABLE `users` (
`job` varchar(20) DEFAULT 'unemployed',
`job_grade` int(11) DEFAULT 0,
`loadout` longtext DEFAULT NULL,
`position` varchar(255) DEFAULT '{"x":-269.4,"y":-955.3,"z":31.2,"heading":205.8}',
`position` longtext NOT NULL,
`firstname` varchar(16) DEFAULT NULL,
`lastname` varchar(16) DEFAULT NULL,
`dateofbirth` varchar(10) DEFAULT NULL,
+2
View File
@@ -18,6 +18,8 @@ Config.Accounts = {
Config.StartingAccountMoney = {bank = 50000}
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.PaycheckInterval = 7 * 60000 -- how often to recieve pay checks in milliseconds
+1 -6
View File
@@ -243,12 +243,7 @@ function loadESXPlayer(identifier, playerId, isNew)
end
-- Position
if result.position and result.position ~= '' then
userData.coords = json.decode(result.position)
else
print('[^3WARNING^7] Column ^5"position"^0 in ^5"users"^0 table is missing required default value. Using backup coords, fix your database.')
userData.coords = {x = -269.4, y = -955.3, z = 31.2, heading = 205.8}
end
userData.coords = json.decode(result.position) or Config.DefaultSpawn
-- Skin
if result.skin and result.skin ~= '' then