Jump to content

help


golanu21

Recommended Posts

server side

addEventHandler("onPlayerJoin", getRootElement(), 
function () 
triggerClientEvent("showgui", source) 
end) 
  

client side

--gui 
  
fereastra = guiCreateWindow(270, 120, 1389, 854, "Alegeti Echipa", false) 
guiWindowSetSizable(fereastra, false) 
  
swatButton = guiCreateButton(21, 86, 1338, 255, "Fortele-Speciale", false, fereastra) 
guiSetFont(swatButton, "sa-gothic") 
guiSetProperty(swatButton, "NormalTextColour", "FF1901FD") 
ballasButton = guiCreateButton(19, 344, 1341, 250, "Ballas", false, fereastra) 
guiSetFont(ballasButton, "sa-gothic") 
guiSetProperty(ballasButton, "NormalTextColour", "FFFE0000") 
armyButton = guiCreateButton(20, 597, 1346, 248, "Armata", false, fereastra) 
guiSetFont(armyButton, "sa-gothic") 
guiSetProperty(armyButton, "NormalTextColour", "FF17FE00") 
  
guiSetVisible(fereastra, false) 
  
--script 
  
addEvent("showgui", true) 
function showgui () 
guiSetVisible(fereastra, true) 
showCursor(fereastra, true) 
end 
addEventHandler("showgui", getRootElement(), showgui) 

ERORR: the tiggered clientside event showgui, but event is not added clientside 

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