Jacobob14 Posted March 6, 2014 Share Posted March 6, 2014 I want draw the exp you gain when you kill a zombie but the text appears and disappears fast and doesn't see well server addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( theKiller ) exports.exp_system:addPlayerEXP ( theKiller, math.random(1, 15)) triggerClientEvent ( "text", getRootElement() ) end ) client function text() dxDrawText("+ exp", 375, 371, 463, 440, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("+ exp", 375, 369, 463, 438, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("+ exp", 373, 371, 461, 440, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("+ exp", 373, 369, 461, 438, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) dxDrawText("+ exp", 374, 370, 462, 439, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, true, false, false) end addEvent ( "text", true ) addEventHandler ( "text", root, text ) Link to comment
iPrestege Posted March 6, 2014 Share Posted March 6, 2014 Draws a string of text on the screen for one frame. In order for the text to stay visible continuously, you need to call this function with the same parameters on each frame update (see onClientRender). Link to comment
Jacobob14 Posted March 6, 2014 Author Share Posted March 6, 2014 and if I want the text to move to another position what function would use Link to comment
iPrestege Posted March 6, 2014 Share Posted March 6, 2014 The same with some variables you can make it. Link to comment
DNL291 Posted March 6, 2014 Share Posted March 6, 2014 If you want to move it to a specific position, then use interpolateBetween. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now