From 296226b73471d796fe230c5c3bf48507dea20fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20N=27gadi?= Date: Wed, 3 Jun 2020 12:47:49 +0200 Subject: [PATCH] Make spawnmanager exports available synchrounously --- resources/[managers]/spawnmanager/fxmanifest.lua | 9 --------- resources/[managers]/spawnmanager/spawnmanager.lua | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/resources/[managers]/spawnmanager/fxmanifest.lua b/resources/[managers]/spawnmanager/fxmanifest.lua index f1c0be9..45acf56 100644 --- a/resources/[managers]/spawnmanager/fxmanifest.lua +++ b/resources/[managers]/spawnmanager/fxmanifest.lua @@ -1,14 +1,5 @@ client_script 'spawnmanager.lua' -export 'getRandomSpawnPoint' -export 'spawnPlayer' -export 'addSpawnPoint' -export 'removeSpawnPoint' -export 'loadSpawns' -export 'setAutoSpawn' -export 'setAutoSpawnCallback' -export 'forceRespawn' - fx_version 'adamant' games { 'rdr3', 'gta5' } diff --git a/resources/[managers]/spawnmanager/spawnmanager.lua b/resources/[managers]/spawnmanager/spawnmanager.lua index 357fbc1..1a3353f 100644 --- a/resources/[managers]/spawnmanager/spawnmanager.lua +++ b/resources/[managers]/spawnmanager/spawnmanager.lua @@ -369,3 +369,11 @@ function forceRespawn() spawnLock = false respawnForced = true end + +exports('spawnPlayer', spawnPlayer) +exports('addSpawnPoint', addSpawnPoint) +exports('removeSpawnPoint', removeSpawnPoint) +exports('loadSpawns', loadSpawns) +exports('setAutoSpawn', setAutoSpawn) +exports('setAutoSpawnCallback', setAutoSpawnCallback) +exports('forceRespawn', forceRespawn)