🏘️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": 8.272827, "y": -1.958618, "z": 1.150002, "h": 87.134941}')
	DoScreenFadeOut(500)
	while not IsScreenFadedOut() do Wait(10) end
	RequestModel(`ate_housing_2`)
	while not HasModelLoaded(`ate_housing_2`) do Wait(1000) end
	local house = CreateObject(`ate_housing_2`, 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?