A3-Conquest.Altis / scripts / AEGIS / Database / shop.sqf
shop.sqf
Raw
// shop/sqf: Dummy store
shopKeep addAction ["buy LYNX - $100",
{
	if (cash >= 100) then {
		_unit = (_this select 1);
		_UID = getPlayerUID _unit;
		_unit addWeapon "srifle_GM6_F";
		cash = cash - 100;
		
		null = [_UID] execVM "scripts\AEGIS\Database\saveData.sqf";
	}
	else
	{
		systemChat "Not enough cash!"
	};
}];