1
0
mirror of https://github.com/citizenfx/cfx-server-data.git synced 2025-01-06 21:02:57 +08:00

Make spawnmanager exports available synchrounously

This commit is contained in:
Jérémie N'gadi 2020-06-03 12:47:49 +02:00
parent 2bde7889b4
commit 296226b734
2 changed files with 8 additions and 9 deletions

View File

@ -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' }

View File

@ -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)