Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------|
- -- 3D Text Funktion bei MuLTi! --|
- ---------------------------------|
- function create3DText(text, x, y, z, r, g, b, thick, view, line, double, dr, dg, db)
- addEventHandler("onClientRender", getRootElement(),
- function()
- local xp, yp, zp = getElementPosition( gMe )
- local x1, y1, z1 = getScreenFromWorldPosition( x, y, z)
- if(getDistanceBetweenPoints3D( x, y, z, xp, yp, zp ) < view) and (x1) then
- if(line == true) then
- if(isLineOfSightClear(x, y, z, xp, yp, zp, true, true, false, false, false, false, false)) then
- if(double == true) then
- dxDrawText (text, x1-1, y1 -41, x1-1, y1-1, tocolor ( dr, dg, db, 255 ), thick, "default-bold")
- end
- dxDrawText (text, x1, y1 -40, x1, y1, tocolor ( r, g, b, 255 ), thick, "default-bold")
- end
- else
- if(double == true) then
- dxDrawText (text, x1-1, y1 -41, x1-1, y1-1, tocolor ( dr, dg, db, 255 ), thick, "default-bold")
- end
- dxDrawText (text, x1, y1 -40, x1, y1, tocolor ( r, g, b, 255 ), thick, "default-bold")
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment