Chaos Posted June 26, 2014 Share Posted June 26, 2014 hey, im trying to make a vehicle shop but how can i let players able to buy one more than car with setAccountData i tired to use setAccountData (getPlayerAccount (source), "SaveCar", tonumber(carid)) but it seems can load only one vehicle any help? Link to comment
Moderators IIYAMA Posted June 26, 2014 Moderators Share Posted June 26, 2014 https://wiki.multitheftauto.com/wiki/ToJSON By using tojson and fromjson to save more then one id. Link to comment
Chaos Posted June 26, 2014 Author Share Posted June 26, 2014 Thanks but can you give a simple example just to know how it will works? Link to comment
Fury Posted June 26, 2014 Share Posted June 26, 2014 https://wiki.multitheftauto.com/wiki/ToJSONBy using tojson and fromjson to save more then one id. or he can use table. Link to comment
Moderators IIYAMA Posted June 26, 2014 Moderators Share Posted June 26, 2014 https://wiki.multitheftauto.com/wiki/ToJSONBy using tojson and fromjson to save more then one id. or he can use table. value: The value you wish to store. Set to false to remove the data. NOTE: you cannot store tables as values, but you can use toJSON strings. Read wiki please, 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