So i have cars purchasable in my Q menu shop currently, I'm looking for a way to make them so once purchased. They remain purchased. Don't stay static on the map, but once the player returns to the shop. They can simply be spawned, and not purchased again. All the shop options are kept in the config.lua
["Car Name"] = BaseWars.GSL{Model = "models/props/cs_assault/moneypallete.mdl", Price = 1000000000, ClassName = "prop_vehicle_jeep", VehicleName = "cardirectory"},
How could i adjust this to make this item purchasable one time only?
You need to save the information that player X bought the car Y using Player/SetPData for example. Each time a player joins, you have to send him/her a list of their bought cars so you can display it differently clientside. You can check serverside if player X has bought the car Y using Player/GetPData and spawn it when the player wants it to spawn.
Using SQL would be easier in my opinion as you have more control.
Awesome, thanks for your reply! Wasn't sure if there was something i could add to this line that would be saved server side by default. That's all i needed, thanks again!
Sorry, you need to Log In to post a reply to this thread.