Hellow ..
I made gui and i can make it visible using the F7. I want it to be visible using triggerClientEvent ..
so I make onPlayerSpawn and the event gets triggered
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(166, 96, 545, 402, "credits", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)
GUIEditor.staticimage[1] = guiCreateStaticImage(16, 31, 152, 127, "banshee.png", false, GUIEditor.window[1])
end
)
bindKey('F7','down',
function ()
guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) );
showCursor ( guiGetVisible ( GUIEditor.window[1] ) )
end
)
this is the client sided.
function player_Spawn ( posX, posY, posZ, spawnRotation, theTeam, theSkin, theInterior, theDimension )
triggerClientEvent ( "onGreeting", getRootElement(), "Hello World!" ) --wiki
end
addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn )
and this is the server sided
I used wiki but couldn't get it.