Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. local text = {
  2.  
  3. ["Kontanter"] = {
  4. kontanter = { ['x'] = -1388.68, ['y'] = -586.571, ['z'] = 30.2193, nom = "gĂĽ in i ~p~Bahamas NightClub"},
  5. },
  6.  
  7. }
  8.  
  9. Drawing = setmetatable({}, Drawing)
  10. Drawing.__index = Drawing
  11.  
  12.  
  13. function Drawing.draw3DText(x,y,z,textInput,fontId,scaleX,scaleY,r, g, b, a)
  14. local px,py,pz=table.unpack(GetGameplayCamCoords())
  15. local dist = GetDistanceBetweenCoords(px,py,pz, x,y,z, 1)
  16.  
  17. local scale = (1/dist)*10
  18. local fov = (1/GetGameplayCamFov())*100
  19. local scale = scale*fov
  20.  
  21. SetTextScale(scaleX*scale, scaleY*scale)
  22. SetTextFont(fontId)
  23. SetTextProportional(1)
  24. SetTextColour(r, g, b, a)
  25. SetTextDropshadow(0, 0, 0, 0, 255)
  26. SetTextEdge(2, 0, 0, 0, 150)
  27. SetTextDropShadow()
  28. SetTextOutline()
  29. SetTextEntry("STRING")
  30. SetTextCentre(1)
  31. AddTextComponentString(textInput)
  32. SetDrawOrigin(x,y,z+2, 0)
  33. DrawText(0.0, 0.0)
  34. ClearDrawOrigin()
  35. end
  36.  
  37. function Drawing.drawMissionText(m_text, showtime)
  38. ClearPrints()
  39. SetTextEntry_2("STRING")
  40. AddTextComponentString(m_text)
  41. DrawSubtitleTimed(showtime, 1)
  42. end
  43.  
  44. function msginf(msg, duree)
  45. duree = duree or 500
  46. ClearPrints()
  47. SetTextEntry_2("STRING")
  48. AddTextComponentString(msg)
  49. DrawSubtitleTimed(duree, 1)
  50. end
  51.  
  52. Drawing.draw3DText(kontanter, kontanter, kontanter - 1.100, positionFrom.nom, 1, 0.2, 0.1, 255, 255, 255, 215)
  53.  
  54. (text) do
  55.  
  56. if(Vdist(pos.x, pos.y, pos.z, kontanter, kontanter, kontanter) < 2.0)then
  57. ClearPrints()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement