ghassen14 Posted November 16, 2015 Share Posted November 16, 2015 Hello guys i made a panel to take criminal job So guys i have problem when i start the mode the panel open and i want , when you go to the marker the paenl will open and when the player click on the botton "have job" you set to criminal team . Link to comment
EmBaby85 Posted November 16, 2015 Share Posted November 16, 2015 OnPlayerMarkerHit OnClientGUIClick setPlayerTeam Link to comment
ghassen14 Posted November 17, 2015 Author Share Posted November 17, 2015 OnPlayerMarkerHitOnClientGUIClick setPlayerTeam server and client pls Link to comment
iPrestege Posted November 17, 2015 Share Posted November 17, 2015 -- #ClientSide guiSetVisible -- # To Hide the window and open the window when the player hit the marker. guiGetVisible -- # Check for the window open or not or or etc. 'onClientMarkerHit' -- # Event : To Show up the window when the player hits the marker. 'onClientGUIClick' -- # Event : When The player click the button to make a trigger. triggerServerEvent -- # Trigger to server to set the player to the team. -- #ServerSide getPlayerTeam -- # Check player team. setPlayerTeam -- # To set the player to the team -- # P.S : If you want to create a team use : createTeam 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