hallo leute ich mache grade ein tentspawn script nun habe ich das probleme das das tent nicht grade vor mir spawnt und ich weis nicht wie ich das mache hab schon alles versucht
Lua
local px, py, pz = getElementPosition(player) local rx, ry, rz = getElementRotation(player) local distance = 3 -- Abstand zum Auto local x = px + math.cos(math.rad(rz + 90)) * distance local y = py + math.sin(math.rad(rz + 90)) * distance tent = createObject(3243, x, y, pz, 0, 0, rz) setObjectScale(tent, 1) tentCol = createColSphere(x + 3, y, z, 4)