Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. function drawTxt(x,y ,width,height,scale, text, r,g,b,a)
  2. SetTextFont(0)
  3. SetTextProportional(0)
  4. SetTextScale(0.25, 0.25)
  5. SetTextColour(r, g, b, a)
  6. SetTextDropShadow(0, 0, 0, 0,255)
  7. SetTextEdge(1, 0, 0, 0, 255)
  8. SetTextDropShadow()
  9. SetTextOutline()
  10. SetTextEntry("STRING")
  11. AddTextComponentString(text)
  12. DrawText(x - width/2, y - height/2 + 0.005)
  13. end
  14.  
  15.  
  16. function DrawText3Ds(x,y,z, text)
  17. local onScreen,_x,_y=World3dToScreen2d(x,y,z)
  18. local px,py,pz=table.unpack(GetGameplayCamCoords())
  19.  
  20. SetTextScale(0.35, 0.35)
  21. SetTextFont(4)
  22. SetTextProportional(1)
  23. SetTextColour(255, 255, 255, 215)
  24. SetTextEntry("STRING")
  25. SetTextCentre(1)
  26. AddTextComponentString(text)
  27. DrawText(_x,_y)
  28. local factor = (string.len(text)) / 370
  29. DrawRect(_x,_y+0.0125, 0.015+ factor, 0.03, 41, 11, 41, 68)
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement