From 62db2291f82a588fcd98fa5020ccd336270c4870 Mon Sep 17 00:00:00 2001 From: ZF <48424078+zf-development@users.noreply.github.com> Date: Fri, 18 Mar 2022 19:52:53 -0400 Subject: [PATCH] Config for spawn point (firstspawn/bug) --- [esx]/es_extended/config.lua | 1 + [esx]/es_extended/server/main.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/[esx]/es_extended/config.lua b/[esx]/es_extended/config.lua index 6d9f4203..e83d33e2 100644 --- a/[esx]/es_extended/config.lua +++ b/[esx]/es_extended/config.lua @@ -20,3 +20,4 @@ Config.EnablePVP = true -- Allow Player to player combat Config.Multichar = false -- Enable support for esx_multicharacter Config.Identity = true -- Select a characters identity data before they have loaded in (this happens by default with multichar) +Config.SpawnLocation = {x = -269.4, y = -955.3, z = 31.2, heading = 205.8} -- The location to spawn at when the player first loads in \ No newline at end of file diff --git a/[esx]/es_extended/server/main.lua b/[esx]/es_extended/server/main.lua index f1fc1b82..876cd171 100644 --- a/[esx]/es_extended/server/main.lua +++ b/[esx]/es_extended/server/main.lua @@ -246,7 +246,7 @@ function loadESXPlayer(identifier, playerId, isNew) 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} + userData.coords = Config.SpawnLocation end -- Skin