harryh Posted March 15, 2017 Posted March 15, 2017 Here are the 2 event handlers both returning nil DogCreate = {} createDogMenuOpen = true DogCreate.BuyButton = guiCreateButton(0.84, 0.34, 0.15, 0.05, "Purchase Dog", true) DogCreate.NameBox = guiCreateEdit(0.87, 0.23, 0.11, 0.03, "", true) DogCreate.MaleRadio = guiCreateRadioButton(0.89, 0.32, 0.01, 0.01, "", true) DogCreate.FemaleRadio = guiCreateRadioButton(0.96, 0.32, 0.01, 0.01, "", true) guiRadioButtonSetSelected(DogCreate.FemaleRadio, true) DogCreate.BreedBox = guiCreateComboBox(0.87, 0.27, 0.11, 0.03, "", true) addEventHandler("onClientGUIClick", DogCreate.BuyButton, saveInfo, false) addEventHandler("onClientGUIChanged", DogCreate.BreedBox, updateDogSkin)
NeXuS™ Posted March 15, 2017 Posted March 15, 2017 Is your "saveInfo" and "updateDogSkin" function below those addEventHandler functions?
harryh Posted March 15, 2017 Author Posted March 15, 2017 Yes they are it is very strange. Here is code function updateDogSkin() --stuffhere end addEventHandler("onClientGUIChanged", DogCreate.BreedBox, updateDogSkin) function saveInfo() --stuffhere end addEventHandler("onClientGUIClick", DogCreate.BuyButton, saveInfo, false)
itHyperoX Posted March 16, 2017 Posted March 16, 2017 why you not using dxdraw ? So much better and easyer.
harryh Posted March 16, 2017 Author Posted March 16, 2017 Because you cant have parents on dxdrawtext but with GUI you can.
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