Hello there. This is my first GUI script and I basically predicted that it won't work at all.
What I want to do:
Create two buttons after you log in saying 'Crips' and 'Bloods' - Done
Create two different teams - Crips and Bloods - Failed
After you click one of the buttons, it will spawn you at the position with certain skin and team, according to the button you have clicked on - Failed
I start the server and load up my script, the window with buttons is there, however nothing happens after I click the buttons.
I know the problem is in my serverside lua script, however I've got no clue how to fix it.
My clientside script with the GUI - http://pastebin.com/Etwg8cUJ
My serverside script - http://pastebin.com/BZPfqgpr
There should be something with spawmTeam = createTeam, according to MTA Wiki, but I'm really lost at this moment. And yes, I'm working on this script for five hours non-stop, and tried to look on several internet pages, haven't found anything though.
Thank you in advance.