Anubhav Posted June 29, 2014 Posted June 29, 2014 spawnPoints = {} function insertSpawnPoints() spawnPoints."The Tank"."TestMap" = "0,0,0" end function getTeamSpawnPoint(team,map) return spawnPoints[team][map] end Will it return 0,0,0? I am not sure because I am not very good in tables! See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
xXMADEXx Posted June 29, 2014 Posted June 29, 2014 Use this: spawnPoints = {} function insertSpawnPoints() spawnPoints["The Tank"]["TestMap"] = "0,0,0" end function getTeamSpawnPoint(team,map) return spawnPoints[team][map] end and to get it to return 0,0,0 you need to use this: getTeamSpawnPoint ( "The Tank", "Testmap" ) The Ultimate Lua Tutorial! | MTA PHP SDK
Anubhav Posted June 29, 2014 Author Posted June 29, 2014 Thanks alot xXMadeXx! See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
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