Solaric Posted July 7, 2016 Posted July 7, 2016 function clickVehicleTab () vehicleTab = guiCreateStaticImage(0.825, 0.6122, 0.14, 0.07 "images/EmptyButton.png", gFactionWindow) addEventHandler ("onClientGUIClick", vehicleTab, tabVehicles, false) end function openVehicleTab(button, state) if (button=="left") and (state=="up") and (source==vehicleTab) then tabVehicles = guiCreateWindow(0, 0.04, 1, 1, "Vehicles", true) end end Its breaking the system.
Captain Cody Posted July 7, 2016 Posted July 7, 2016 addEventHandler ("onClientGUIClick", vehicleTab, tabVehicles, false) This is using theStaticImage to trigger a menu.. function clickVehicleTab () vehicleTab = guiCreateStaticImage(0.825, 0.6122, 0.14, 0.07 "images/EmptyButton.png", gFactionWindow) addEventHandler ("onClientGUIClick", vehicleTab, openVehicleTab, false) end function openVehicleTab(button, state) if (button=="left") and (state=="up") and (source==vehicleTab) then tabVehicles = guiCreateWindow(0, 0.04, 1, 1, "Vehicles", true) end end Going to assume that's what you were trying to do. Any other problems, I'd need the whole script. Gets annoying when people just post partial scripts not giving an other back round info.
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