elabana Posted June 18, 2014 Posted June 18, 2014 Hello , i've made 2 teams, and now i want player who join to choose one of the teams . How do i make it ? in Wiki i've found how to create gui for login but thats not enough for me to understand that ';\. function createTeamsOnStart () teama = createTeam ( "Team A", 0, 255, 0 ) teamb = createTeam ( "Team B", 200, 0, 100 ) end end How to make GUI to choose one of these teams?
Max+ Posted June 18, 2014 Posted June 18, 2014 you Can start learn form here , viewtopic.php?f=91&t=74403
ADCX Posted June 18, 2014 Posted June 18, 2014 The GUI can be easily made with guieditor, and then use guiSetVisible to hide the GUI after selecting a team and setPlayerTeam to set player's team of choice. The event for any GUI element click is "onClientGUIClick".
Max+ Posted June 18, 2014 Posted June 18, 2014 where do i get guieditor ? https://community.multitheftauto.com/ind ... ils&id=141
elabana Posted June 18, 2014 Author Posted June 18, 2014 I've made buttons with guieditors. Got code , then i created client lua and wrote it into meta.xml
ADCX Posted June 18, 2014 Posted June 18, 2014 <script src="script_client.lua" type="client"/> You forgot to close the tags.
elabana Posted June 19, 2014 Author Posted June 19, 2014 Okay , visually i got buttons , but how to make them working now ? What do i need to do that something would happen when they are pressed?
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