Chaos Posted June 26, 2014 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?
Moderators IIYAMA Posted June 26, 2014 Moderators Posted June 26, 2014 https://wiki.multitheftauto.com/wiki/ToJSON By using tojson and fromjson to save more then one id.
Chaos Posted June 26, 2014 Author Posted June 26, 2014 Thanks but can you give a simple example just to know how it will works?
Fury Posted June 26, 2014 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.
Moderators IIYAMA Posted June 26, 2014 Moderators 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,
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