WASSIm. Posted May 5, 2013 Posted May 5, 2013 how make if player give money show amount to dxdrawtext
WASSIm. Posted May 5, 2013 Author Posted May 5, 2013 (edited) onClientRender DxDrawText getPlayerMoney? why need getPlayerMoney ? Edited May 5, 2013 by Guest
xXMADEXx Posted May 5, 2013 Posted May 5, 2013 This is how i would script it: client: amount = 0 function text() dxDrawText(amount, 0, 0, 1000, 1000) end t = {} addEvent("onPlayerGetMoney", true) addEventHandler("onPlayerGetMoney", root, function (a) if (a) then addEventHandler("onClientRender", root, text) amount = a t[localPlayer] = setTimer( function () amount = 0 removeEventHandler("onClientRender", root, text) end, 5000, 1 ) end end ) server: addCommandHandler("money", function (p) givePlayerMoney(p,1000) triggerClientEvent(p,"onPlayerGetMoney",p,1000) end )
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