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. 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
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. Destruction Derby
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, 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
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