-.Paradox.- Posted April 3, 2014 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 If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
Moderators IIYAMA Posted April 3, 2014 Moderators 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")) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
-.Paradox.- Posted April 3, 2014 Author Posted April 3, 2014 Thanks a lot If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
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