TheIceman1 Posted February 19, 2013 Share Posted February 19, 2013 When i press button for spawn(button "LV,"Ls","SF") then it showing me fadeCamera. Server side: function spawnlv() fadeCamera ( source, false ) setElementPosition ( source, 1686.58, 1453.2, 10.8 ) givePlayerMoney (source, 2500) setPlayerTeam ( source, getTeamFromName("Unemployed") ) setPlayerNametagColor(source,205,255,255) setElementData ( source, "Role", "Unemployed" ) end addEvent("spawnlv",true) addEventHandler("spawnlv", root, spawnlv) Client side: function spawnlv () guiSetInputEnabled( false ) showCursor(false) guiSetVisible( GUIEditor_Window[4], false) triggerServerEvent ( "spawnlv", localPlayer, model ) end addEventHandler ( "onClientGUIClick", GUIEditor_Button[7], spawnlv ) Link to comment
iPrestege Posted February 19, 2013 Share Posted February 19, 2013 So what's the problem? Link to comment
TheIceman1 Posted February 19, 2013 Author Share Posted February 19, 2013 So what's the problem? When i press button GUIEditor_Button[7] then GUI is removed but fadeCamera is turned on.i see black window. Link to comment
iPrestege Posted February 19, 2013 Share Posted February 19, 2013 So what's the problem? When i press button GUIEditor_Button[7] then GUI is removed but fadeCamera is turned on.i see black window. This is because you are do it false here : fadeCamera ( source, false ) do it : fadeCamera ( source, true ) Link to comment
TheIceman1 Posted February 19, 2013 Author Share Posted February 19, 2013 So what's the problem? When i press button GUIEditor_Button[7] then GUI is removed but fadeCamera is turned on.i see black window. This is because you are do it false here : fadeCamera ( source, false ) do it : fadeCamera ( source, true ) Working,thanks. 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