Jump to content

doesn't trigger


Avagard

Recommended Posts

hello, why this doesn't trigger?

the output shows but it doesn't trigger.. help please

--------- server:
function spawn1 (source)             -- skin
	spawnPlayer (source, 169.7470703125, -58.4306640625 +5, 1.578125 +5, 0, 13, 0, 0)
	fadeCamera (source, true)
	setCameraTarget (source, source)
	setElementData(source,"MTAGOW",false) 
end
addEvent("spawnLobby1",true)
addEventHandler("spawnLobby1",root,spawn1)
---------------- client:

function clicked ()
   local row, col = guiGridListGetSelectedItem (MTAGO.gridlist[1])
   if guiGridListGetSelectedItem (MTAGO.gridlist[1]) then
               if guiGridListGetItemText (MTAGO.gridlist[1], row, col) == "Lobby 1                                      0/10                                         Bakkara                                      Competetive                                  " then
                 outputChatBox ( "Joining...")
				 triggerEvent ( "spawnLobby1", source)
              end
       end
end
addEventHandler("onClientGUIClick", MTAGO.label[7], clicked)

 

Link to comment
1 hour ago, Avagard said:

hello, why this doesn't trigger?

the output shows but it doesn't trigger.. help please


--------- server:
function spawn1 (source)             -- skin
	spawnPlayer (source, 169.7470703125, -58.4306640625 +5, 1.578125 +5, 0, 13, 0, 0)
	fadeCamera (source, true)
	setCameraTarget (source, source)
	setElementData(source,"MTAGOW",false) 
end
addEvent("spawnLobby1",true)
addEventHandler("spawnLobby1",root,spawn1)
---------------- client:

function clicked ()
   local row, col = guiGridListGetSelectedItem (MTAGO.gridlist[1])
   if guiGridListGetSelectedItem (MTAGO.gridlist[1]) then
               if guiGridListGetItemText (MTAGO.gridlist[1], row, col) == "Lobby 1                                      0/10                                         Bakkara                                      Competetive                                  " then
                 outputChatBox ( "Joining...")
				 triggerEvent ( "spawnLobby1", source)
              end
       end
end
addEventHandler("onClientGUIClick", MTAGO.label[7], clicked)

 

nvm... stupid thing.. i fixed it

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