diff --git a/resources/[managers]/spawnmanager/spawnmanager.lua b/resources/[managers]/spawnmanager/spawnmanager.lua index 1a3353f..9e940d8 100644 --- a/resources/[managers]/spawnmanager/spawnmanager.lua +++ b/resources/[managers]/spawnmanager/spawnmanager.lua @@ -222,6 +222,13 @@ function spawnPlayer(spawnIdx, cb) if type(spawnIdx) == 'table' then spawn = spawnIdx + + -- prevent errors when passing spawn table + spawn.x = spawn.x + 0.00 + spawn.y = spawn.y + 0.00 + spawn.z = spawn.z + 0.00 + + spawn.heading = spawn.heading and (spawn.heading + 0.00) or 0 else spawn = spawnPoints[spawnIdx] end