Jump to content

dx Text Help


golanu21

Recommended Posts

Posted
addEventHandler("onClientMarkerHit", capitan, 
    function() 
        dxDrawText("Apasa \"F\" pentru misiune.", 756, 596, 1161, 630, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) 
        dxDrawText("Apasa \"F\" pentru misiune.", 756, 594, 1161, 628, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) 
        dxDrawText("Apasa \"F\" pentru misiune.", 754, 596, 1159, 630, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) 
        dxDrawText("Apasa \"F\" pentru misiune.", 754, 594, 1159, 628, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) 
        dxDrawText("Apasa \"F\" pentru misiune.", 755, 595, 1160, 629, tocolor(49, 250, 2, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) 
    end 
) 

how i make that to see while sitting in the marker ?

and when i leave him how i use

"onClientMarkerLeave" 

XajVsWV.png

168_zps269f1907.gif[Dev]BloWnRPG - We BloW the World [1%]168_zps269f1907.gif

Posted
function dxText ( ) 
    dxDrawText("Apasa \"F\" pentru misiune.", 756, 596, 1161, 630, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) 
    dxDrawText("Apasa \"F\" pentru misiune.", 756, 594, 1161, 628, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) 
    dxDrawText("Apasa \"F\" pentru misiune.", 754, 596, 1159, 630, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) 
    dxDrawText("Apasa \"F\" pentru misiune.", 754, 594, 1159, 628, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) 
    dxDrawText("Apasa \"F\" pentru misiune.", 755, 595, 1160, 629, tocolor(49, 250, 2, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) 
end 
  
addEventHandler ( "onClientMarkerHit", capitan, 
    function ( hitPlayer, matchingDimension ) 
        addEventHandler ( "onClientRender", root, dxText ) 
    end 
) 
  
addEventHandler ( "onClientMarkerLeave", capitan, 
    function ( leftPlayer, matchingDimension ) 
        removeEventHandler ( "onClientRender", root, dxText ) 
    end 
) 

Is that what you wanted?

  • Moderators
Posted (edited)

https://wiki.multitheftauto.com/wiki/BindKey

https://forum.multitheftauto.com/viewtopic.php?f=91&t=62901

You already have an answer on that question.

Edited by Guest

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...