Jump to content

Which event?


Bilal135

Recommended Posts

Posted

Just a bit of problem here. I am confused which event should I use here to make the gui appear. No errors in debug.

function showGui() 
local team = getPlayerTeam(source) 
local usa = getTeamFromName("USA") 
local rus = getTeamFromName("Russia") 
if team == usa then 
guiSetVisible(GUIEditor.window[1], true) 
showCursor(true) 
elseif team == rus then 
guiSetVisible(window, true) 
showCursor(true) 
end 
end 

Thanks in advance.

"Get busy living or get busy dying"

Posted

That depends on when you want to show the gui.

Multi Theft Auto Player since middle of 2011.

Everybody want to act Crazy/Smart/Intelligent/Different/Unique/Innocent and Thats why I am Perfect.

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