Jump to content

[HELP] Not Working


Solaric

Recommended Posts

            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.

Link to comment
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.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...