Hallöle
Ich versuche mich immer weiter in das Thema ''Scripten'' rein zu schnuffeln..
Habe jedoch jetzt ein Problem und komme nicht mehr weiter. -_-
Die Peds werden nicht erstellt und ich bekomme keine Errors...
Lua
local x, y, z = getElementPosition(localPlayer)
if(getDistanceBetweenPoints3D(x, y, z, -1981.1999511719, 165.19999694824, 27.700000762939) < 17) and (isLineOfSightClear(x, y, z, -1981.1999511719, 165.19999694824, 27.700000762939, true, true, true, true, true)) then
local x2, y2 = getScreenFromWorldPosition( -1997.5, 212, 30.4)
if(x2) and (y2) then
local dis = getDistanceBetweenPoints3D(x, y, z, -1981.1999511719, 165.19999694824, 27.700000762939)
x2 = x2-20
dxDrawText("Projektleiter | false", x2, y2, x2, y2, tocolor(0, 0, 0, 200), 1.5)
dxDrawText("Projektleiter | false", x2+1, y2+1, x2, y2, tocolor(0, 255, 255, 200), 1.5)
end
end
x, y, z = getElementPosition(localPlayer)
if(getDistanceBetweenPoints3D(x, y, z, -1981.0999755859, 163.89999389648, 27.700000762939) < 17) and (isLineOfSightClear(x, y, z, -1981.0999755859, 163.89999389648, 27.700000762939, true, true, true, true, true)) then
local x3, y3 = getScreenFromWorldPosition( -1981.0999755859, 163.89999389648, 27.700000762939)
if(x3) and (y3) then
local dis = getDistanceBetweenPoints3D(x, y, z, -1981.0999755859, 163.89999389648, 27.700000762939)
x3 = x3-20
dxDrawText("Projektleiter | Boeser-bube", x3, y3, x3, y3, tocolor(0, 0, 0, 200), 1.5)
dxDrawText("Projektleiter | Boeser-bube", x3+1, y3+1, x3, y3, tocolor(0, 255, 255, 200), 1.5)
end
end
end)
Alles anzeigen