local Objects = {
{ ["x"] = 100.0, ["y"] = 100.0, ["z"] = 100.0, ["h"] = 69.0, ["model"] = "prop_chair_08" },
{ ["x"] = 100.0, ["y"] = 100.0, ["z"] = 100.0, ["h"] = 69.0, ["model"] = "prop_chair_08" },
{ ["x"] = 100.0, ["y"] = 100.0, ["z"] = 100.0, ["h"] = 69.0, ["model"] = "prop_chair_08" },
{ ["x"] = 100.0, ["y"] = 100.0, ["z"] = 100.0, ["h"] = 69.0, ["model"] = "prop_chair_08" },
{ ["x"] = 100.0, ["y"] = 100.0, ["z"] = 100.0, ["h"] = 69.0, ["model"] = "prop_chair_08" },
{ ["x"] = 100.0, ["y"] = 100.0, ["z"] = 100.0, ["h"] = 69.0, ["model"] = "prop_chair_08" },
{ ["x"] = 100.0, ["y"] = 100.0, ["z"] = 100.0, ["h"] = 69.0, ["model"] = "prop_chair_08" }
}
Citizen.CreateThread(function()
for i = 1, #Objects, 1 do
while not HasModelLoaded(GetHashKey(Objects[i]["model"])) do
RequestModel(GetHashKey(Objects[i]["model"]))
Citizen.Wait(5)
end
Objects[i]["objectId"] = CreateObject(GetHashKey(Objects[i]["model"]), Objects[i]["x"], Objects[i]["y"], Objects[i]["z"], false)
PlaceObjectOnGroundProperly(Objects[i]["objectId"])
SetEntityHeading(Objects[i]["objectId"], Objects[i]["h"])
FreezeEntityPosition(Objects[i]["objectId"], true)
SetEntityAsMissionEntity(Objects[i]["objectId"], true, true)
end
print("Spawned Chairs!")
end)
This could be what you’re looking for. This is untested as i just wrote this here. Tell me if its not working.