Jump to content

Crown

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Crown

  1. This issue usually happens because the interior and dimension are set before the client finishes loading the actual map for that interior. Even if the values from MySQL are correct, MTA needs a short delay after spawning so the client can stream the interior models. You can try: Option 1 – Set interior/dimension before spawning : setTimer(function() setElementInterior(player, tonumber(int)) setElementDimension(player, tonumber(dim)) spawnPlayer(player, pos[1], pos[2], pos[3] + 1, 90, skin) triggerClientEvent(player, "fixClientSpawn", root, tonumber(int), tonumber(dim)) end, 200, 1) Option 2 – Delay camera targeting on the client : addEventHandler("fixClientSpawn", root, function(int, dim) setElementInterior(localPlayer, int) setElementDimension(localPlayer, dim) setTimer(function() setCameraTarget(localPlayer) end, 200, 1) end) Also double-check that the saved position in MySQL is inside the correct interior map. If you spawn with interior = 0 while your position is in an interior location, you will only see the empty sky.
×
×
  • Create New...