Jump to content

Made a gui and can't show it?


FWCentral

Recommended Posts

  
bindKey("f2", "down", showpanel) 
VehiclePanel = guiCreateWindow(313,260,515,337,"Vehicle Panel",false) 
  

^ that is onClientResourceStart works fine

  
function showpanel() 
if (guiGetVisible(VehiclePanel) == true ) then 
guiSetVisible(VehicePanel, false) 
showCursor(false) 
else 
guiSetVisible(VehicePanel, true) -- Get error here saying expected gui-element and just shows the mouse. 
showCursor(true) 
end 
end 
  

Link to comment
  
bindKey("f2", "down", showpanel) 
VehiclePanel = guiCreateWindow(313,260,515,337,"Vehicle Panel",false) 
  

^ that is onClientResourceStart works fine

  
function showpanel() 
if (guiGetVisible(VehiclePanel) == true ) then 
guiSetVisible(VehicePanel, false) 
showCursor(false) 
else 
guiSetVisible(VehicePanel, true) -- Get error here saying expected gui-element and just shows the mouse. 
showCursor(true) 
end 
end 
  

Because you are scripting without your head.

You did this:

VehiclePanel = guiCreateWindow(313,260,515,337,"Vehicle Panel",false)

guiSetVisible(VehicePanel, true)

See the error ?

You mispelled a variable on 'guiSetVisible' function.

Link to comment
That's what she said!

Who's "she"?

... ever heard of a sexuality jokes before? -.-

- Make sure you don't slip over in the bathroom.

- That's what she said!

- Did you have hard time yesterday?

- That's what she said!

- I only do stupid things at home.

- That's what she said!

Link to comment
... ever heard of a sexuality jokes before? -.-

Actually, sexuality jokes I use with my friends at school and while on a party or something, are pretty different and cooler than that nonsense s***

So, excuse me for not being from your country or something, but our humor sense is more "criticizant" (not sure if it's the right translation of "crítico" in Spanish), than yours.

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...