Hi,
I can’t make my object spawn on the ground. What am I doing wrong ?
Citizen.CreateThread(function()
while true do
Wait(1)
x, y, z = table.unpack(GetEntityCoords(GetPlayerPed(-1), true))
RequestModel("prop_beach_fire")
while not HasModelLoaded("prop_beach_fire") do
Wait(1)
end
local object = CreateObject("prop_beach_fire", x, y, z, true, true, true)
PlaceObjectOnGroundProperly(object) -- This function doesn't seem to work.
end)
Maybe remove your PlaceObjectOnGroundProperly and spawn your object with x, y, z - something (to spawn your object closer on the ground, example : CreateObject(“prop_beach_fire”, x, y, z-1, true, true, true) )
It’s just a suggestion ^^’