golanu21 Posted March 28, 2013 Share Posted March 28, 2013 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
PaiN^ Posted March 28, 2013 Share Posted March 28, 2013 (edited) Show cursor ( client side ) have only one argument ( bool ), And you can use onClientPlayerJoin instead of using a trigger .. Edited March 28, 2013 by Guest Link to comment
iPrestege Posted March 28, 2013 Share Posted March 28, 2013 use : onClientResourceStart and there's no need to use server side and will do that you want . Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now