xXMADEXx Posted February 11, 2013 Share Posted February 11, 2013 For some reason, when the player presses the button, it will not set the label color addEventHandler("onClientGUIClick",root, function () local neon_get_r = tonumber(guiGetText(rog_modshop_neon_edit_r)) local neon_get_g = tonumber(guiGetText(rog_modshop_neon_edit_g)) local neon_get_b = tonumber(guiGetText(rog_modshop_neon_edit_b)) if source == rog_modshop_neon_btn_back then guiSetVisible(rog_modshop_neon_window,false) guiSetVisible(rog_modshop_upgrades_window,true) elseif source == rog_modshop_neon_btn_add then triggerServerEvent("rog:modshop:neon",localPlayer, localPlayer, neon_get_r, neon_get_g, neon_get_b) elseif source == rog_modshop_neon_btn_colorTest then local neon_lbl_colorTest = guiCreateLabel(17, 190, 288, 20, "Color",false,rog_modshop_neon_window) guiLabelSetColor ( myLabel, neon_get_r, neon_get_g, neon_get_b) end end ) Link to comment
TAPL Posted February 11, 2013 Share Posted February 11, 2013 addEventHandler("onClientGUIClick",root, function () local neon_get_r = tonumber(guiGetText(rog_modshop_neon_edit_r)) local neon_get_g = tonumber(guiGetText(rog_modshop_neon_edit_g)) local neon_get_b = tonumber(guiGetText(rog_modshop_neon_edit_b)) if source == rog_modshop_neon_btn_back then guiSetVisible(rog_modshop_neon_window,false) guiSetVisible(rog_modshop_upgrades_window,true) elseif source == rog_modshop_neon_btn_add then triggerServerEvent("rog:modshop:neon",localPlayer, localPlayer, neon_get_r, neon_get_g, neon_get_b) elseif source == rog_modshop_neon_btn_colorTest then local neon_lbl_colorTest = guiCreateLabel(17, 190, 288, 20, "Color",false,rog_modshop_neon_window) guiLabelSetColor ( neon_lbl_colorTest, neon_get_r, neon_get_g, neon_get_b) end end ) 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