🏘️Qb-Housing
Crea el espacio perfecto para tu personaje o tus jugadores.

> qb-interior/client/optional.lua
exports('CreateHousing', function(spawn)
local objects = {}
local POIOffsets = {}
POIOffsets.exit = json.decode('{"x": 0.008179, "y": 0.427246, "z": 0.999981, "h": 0.886339}')
DoScreenFadeOut(500)
while not IsScreenFadedOut() do Wait(10) end
RequestModel(`ate_shell_gaming_empty`)
while not HasModelLoaded(`ate_shell_gaming_empty`) do Wait(1000) end
local house = CreateObject(`ate_shell_gaming_empty`, spawn.x, spawn.y, spawn.z, false, false, false)
FreezeEntityPosition(house, true)
objects[#objects + 1] = house
TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h)
return { objects, POIOffsets }
end)
exports('CreateHousing', function(spawn)
local objects = {}
local POIOffsets = {}
POIOffsets.exit = json.decode('{"x": -0.044434, "y": 0.341553, "z": 1.000004, "h": 1.076548}')
DoScreenFadeOut(500)
while not IsScreenFadedOut() do Wait(10) end
RequestModel(`ate_shell_gaming_furniture`)
while not HasModelLoaded(`ate_shell_gaming_furniture`) do Wait(1000) end
local house = CreateObject(`ate_shell_gaming_furniture`, spawn.x, spawn.y, spawn.z, false, false, false)
FreezeEntityPosition(house, true)
objects[#objects + 1] = house
TeleportToInterior(spawn.x + POIOffsets.exit.x, spawn.y + POIOffsets.exit.y, spawn.z + POIOffsets.exit.z, POIOffsets.exit.h)
return { objects, POIOffsets }
end)
Última actualización
¿Te fue útil?