From ae13da8170eea830d0d53f9e332f1cbeb07862cf Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Thu, 23 Aug 2018 20:00:33 +0200 Subject: [PATCH] Added mission row garage at the back, improved PlayerData fetching --- client/main.lua | 5 ++++- config.lua | 12 ++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/client/main.lua b/client/main.lua index c82cec2d..d92b097c 100644 --- a/client/main.lua +++ b/client/main.lua @@ -37,7 +37,10 @@ Citizen.CreateThread(function() Citizen.Wait(0) end - Citizen.Wait(5000) + while ESX.GetPlayerData().job == nil do + Citizen.Wait(10) + end + PlayerData = ESX.GetPlayerData() end) diff --git a/config.lua b/config.lua index d15a3d32..65bd9f69 100644 --- a/config.lua +++ b/config.lua @@ -31,6 +31,7 @@ Config.PoliceStations = { Scale = 1.2, Colour = 29, }, + -- https://wiki.rage.mp/index.php?title=Weapons AuthorizedWeapons = { { name = 'WEAPON_NIGHTSTICK', price = 200 }, @@ -58,7 +59,13 @@ Config.PoliceStations = { { Spawner = { x = 454.69, y = -1017.4, z = 27.430 }, SpawnPoint = { x = 438.42, y = -1018.3, z = 27.757 }, - Heading = 90.0, + Heading = 90.0 + }, + + { + Spawner = { x = 473.38, y = -1018.43, z = 27.00 }, + SpawnPoint = { x = 475.98, y = -1021.65, z = 28.06 }, + Heading = 276.11 } }, @@ -66,13 +73,14 @@ Config.PoliceStations = { { Spawner = { x = 466.477, y = -982.819, z = 42.691 }, SpawnPoint = { x = 450.04, y = -981.14, z = 42.691 }, - Heading = 0.0, + Heading = 0.0 } }, VehicleDeleters = { { x = 462.74, y = -1014.4, z = 27.065 }, { x = 462.40, y = -1019.7, z = 27.104 }, + { x = 469.12, y = -1024.52, z = 27.20 } }, BossActions = {