-.Paradox.- Posted April 3, 2014 Share Posted April 3, 2014 (edited) Hello, i'm trying to make a team panel, and set the selected player from "GUIEditor.gridlist[1]" to a team from "team.Gridlist[1]", and i want to set the player team by getting the team name from team.Gridlist[1], hope you can help me on this. Here is my code, thank you. SOLVED Edited April 3, 2014 by Guest Link to comment
Moderators IIYAMA Posted April 3, 2014 Moderators Share Posted April 3, 2014 Client: line 15 : triggerServerEvent("setteam", localPlayer,playerName,teamName) line 10: remove: local team = getTeamName(teamName) Server: line 5: Typo(teamnale): local team = getTeamFromName(teamname or "") NOTE: You can also send elements(userdata's) from client to server and from server to client. Like: triggerServerEvent("example", localPlayer,getPedOccupiedVehicle(localPlayer),getPlayerFromName("IIYAMA")) 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