ManeXi Posted August 19, 2016 Posted August 19, 2016 (edited) function addNumber() local n = 0 n = n + 1 outputChatBox(n) end addEventHandler("onClientRender", root, addNumber) This should add +1 each time that player renders the game but for any reason it doesn't. Edited August 19, 2016 by Guest
Guest Guest4401 Posted August 19, 2016 Posted August 19, 2016 Try this: local n = 0 function addNumber() n = n + 1 outputChatBox(n) end addEventHandler("onClientRender", root, addNumber)
ManeXi Posted August 19, 2016 Author Posted August 19, 2016 Try this: local n = 0 function addNumber() n = n + 1 outputChatBox(n) end addEventHandler("onClientRender", root, addNumber) It works, lol, now I see my mistake, every time I was executing the event "local n = 0" was set, thanks.
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