xXMADEXx Posted March 1, 2013 Posted March 1, 2013 Hey guys, im trying to make a turf system, and for some reason the color returns as "nil". I asked Castillo and he dosn't know (prob just didn't take time) but here is my code: (server) function colors(player) --local gangName = exports['gang']:getPlayerGang(player) return unpack(exports['gang']:getGangColor(exports['gang']:getPlayerGang(player))) end The Ultimate Lua Tutorial! | MTA PHP SDK
Castillo Posted March 1, 2013 Posted March 1, 2013 That function is right, the problem must be that you aren't passing any player argument. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
xXMADEXx Posted March 1, 2013 Author Posted March 1, 2013 Thank you castillo, sorry for the noob mistake. The Ultimate Lua Tutorial! | MTA PHP SDK
Castillo Posted March 1, 2013 Posted March 1, 2013 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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