Jump to content

[Help]Job


ghassen14

Recommended Posts

Posted

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 .

Posted
-- #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  

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