mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Update(DefaultSpawn): Easier now
This commit is contained in:
+1
-1
@@ -389,7 +389,7 @@ CREATE TABLE `users` (
|
|||||||
`job` varchar(20) DEFAULT 'unemployed',
|
`job` varchar(20) DEFAULT 'unemployed',
|
||||||
`job_grade` int(11) DEFAULT 0,
|
`job_grade` int(11) DEFAULT 0,
|
||||||
`loadout` longtext DEFAULT NULL,
|
`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,
|
`firstname` varchar(16) DEFAULT NULL,
|
||||||
`lastname` varchar(16) DEFAULT NULL,
|
`lastname` varchar(16) DEFAULT NULL,
|
||||||
`dateofbirth` varchar(10) DEFAULT NULL,
|
`dateofbirth` varchar(10) DEFAULT NULL,
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ Config.Accounts = {
|
|||||||
|
|
||||||
Config.StartingAccountMoney = {bank = 50000}
|
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.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.MaxWeight = 24 -- the max inventory weight without backpack
|
||||||
Config.PaycheckInterval = 7 * 60000 -- how often to recieve pay checks in milliseconds
|
Config.PaycheckInterval = 7 * 60000 -- how often to recieve pay checks in milliseconds
|
||||||
|
|||||||
@@ -243,12 +243,7 @@ function loadESXPlayer(identifier, playerId, isNew)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Position
|
-- Position
|
||||||
if result.position and result.position ~= '' then
|
userData.coords = json.decode(result.position) or Config.DefaultSpawn
|
||||||
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
|
|
||||||
|
|
||||||
-- Skin
|
-- Skin
|
||||||
if result.skin and result.skin ~= '' then
|
if result.skin and result.skin ~= '' then
|
||||||
|
|||||||
Reference in New Issue
Block a user