Fist Posted September 7, 2015 Posted September 7, 2015 Hello everyone. I was wondering how can be possible to make so GUI Data refreshes every time i type command /warpmenu, example: i write command /warpmenu then opens menu but there is a player list which was updated once at resource start, but new players have joined and i want to get new players locations, but to get i need to restart resource. Hmm there is a fix for this? Thanks for your time!
Fist Posted September 7, 2015 Author Posted September 7, 2015 setTimer thanks. btw u could give some example?
Tekken Posted September 7, 2015 Posted September 7, 2015 Each 5 secounds the timer will change the value with a random number: local label = guiCreateLabel(0.1, 0.1, 0.1, 0.1, "Nu number.", true, nil); setTimer(function() guiSetText(label, tostring(math.random(1, 100))); end, 5000, 0);
MoDeR2014 Posted September 7, 2015 Posted September 7, 2015 no need for timers, you can use these events to updates the players list : onClientPlayerJoin onClientPlayerQuit onClientPlayerChangeNick
Fist Posted September 8, 2015 Author Posted September 8, 2015 no need for timers, you can use these events to updates the players list : onClientPlayerJoin onClientPlayerQuit onClientPlayerChangeNick ofc. Thanks man!
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