Samking Posted September 29, 2018 Share Posted September 29, 2018 GUIEditor.label[1] = guiCreateLabel(33, 40, 145, 15, "Name : "..getPlayerName(localPlayer), false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 12, 240, 60) GUIEditor.label[2] = guiCreateLabel(33, 69, 145, 15, "Money : "..getPlayerMoney (localplayer) , false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 12, 240, 60) GUIEditor.label[3] = guiCreateLabel(33, 98, 145, 15, "Health : "..getElementHealth (localPlayer), false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 12, 240, 60) GUIEditor.label[4] = guiCreateLabel(33, 123, 145, 15, "Ping :"..getPlayerPing (localPlayer), false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 12, 240, 60) When I increase my money from 0 to 100 the money was still 0 in stats and also Health, ping. When I upgrade the Script then Stats change by itself How I can do like Change stats Automatically without upgrading Link to comment
NeXuS™ Posted September 29, 2018 Share Posted September 29, 2018 You can't. guiLabels are created when you call the function, and don't update automatically. You'll have to create a function that'd update the text accordingly to the player's health. Link to comment
xRGamingx Posted September 29, 2018 Share Posted September 29, 2018 5 hours ago, NeXuS™ said: You can't. guiLabels are created when you call the function, and don't update automatically. You'll have to create a function that'd update the text accordingly to the player's health. How can that be done? Link to comment
N3xT Posted September 29, 2018 Share Posted September 29, 2018 (edited) onClientRender -- or setTimer guiSetText Edited September 29, 2018 by N3xT Link to comment
LyricalMM Posted September 29, 2018 Share Posted September 29, 2018 GUIEditor.label[1] = guiCreateLabel(33, 40, 145, 15, "Name : N/A", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 12, 240, 60) GUIEditor.label[2] = guiCreateLabel(33, 69, 145, 15, "Money : N/A", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 12, 240, 60) GUIEditor.label[3] = guiCreateLabel(33, 98, 145, 15, "Health : N/A", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 12, 240, 60) GUIEditor.label[4] = guiCreateLabel(33, 123, 145, 15, "Ping : N/A", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 12, 240, 60) setTimer( function () guiSetText(GUIEditor.label[1], "Name : "..getPlayerName(localPlayer)) guiSetText(GUIEditor.label[2], "Money : "..getPlayerMoney (localPlayer) ) guiSetText(GUIEditor.label[3], "Health : "..getElementHealth(localPlayer)) guiSetText(GUIEditor.label[4], "Ping : "..getPlayerPing (localPlayer)) end, 1000, 0) 1 Link to comment
aka Blue Posted September 29, 2018 Share Posted September 29, 2018 ¿Why you don't use dx? It's more simple and you only need to render it. 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