Coords and Headings for the christmas trees in the casino as a ready to use command.
RegisterCommand('xmastree', function(source, args)
local xmas_coords = {
{
["position"] = vector3(1101.432, 206.6203, -50.4451),
['heading'] = 0.0
},
{
["position"] = vector3(1117.23, 223.95, -50.4451),
['heading'] = 26.5
},
{
["position"] = vector3(1125.97, 241.38, -51.4351),
['heading'] = 73.4
},
{
["position"] = vector3(1152.03, 269.8, -52.8451),
['heading'] = 180.0
}
}
Citizen.CreateThread(function()
local model = GetHashKey("ch_prop_ch_diamond_xmastree")
RequestModel(model)
while not HasModelLoaded(model) do
Citizen.Wait(0)
end
for i = 1, #xmas_coords do
tree = CreateObject(model, xmas_coords[i]['position'], false, false, true)
SetEntityHeading(tree, xmas_coords[i]['heading'])
end
end)
end)