ok, lets,make sure we are on the same page.
you,want a player to use the in-game coins to buy the ability to choose a VIP loadout. so is this a one time purchase, they get the vip loadout at that moment and never again OR is this a permanent selection ... they can get the loadout every time they spawn?
if its a permanent choice, you have to save that imformation somewhere that we can find it after restarts. There are only 3 places for that:
- edit the file manually adding the players uid. this is how its normally done.
- in the database. running epoch, pretty sure it still has child:999 calls so we can write an sql query to save and load that info from custom column in players data.
- easiest method is profilenamespace which saves variables on the players computer in a binary file so they cant read/write it with normal text editors.
so you could save the purchased vip loadout to profilenamespace with
profileNamespace setVariable ["viploadout",loadoutIndex];
and then retreive it during spawn with
_loadout =
profileNamespace getVariable "viploadout";
https://community.bistudio.com/wiki/profileNamespace
now if you provide details of what you want and the files you have now ... including your money scripts ..., someone could give you more relevent help.
this method would literally be only a half dozen lines but its dependent on knowing your current loadout setup, what is purchased, and your money.
and it just occurred to me you would need a purchase method. add to a trader ... instead of spawning an item it runs the script. or just have a scroll wheel addaction type menu on some trader or object