Skip to content
Ppgtjmad edited this page Mar 2, 2023 · 15 revisions

Actions to open shop dialogs (from editor placed objects):

Items Shop

this addAction["<img image='HG\UI\Icons\money.paa' size='2' shadow='0'/><t color='#FF0000' font='RobotoCondensedBold'>"+(localize "STR_HG_ITEMS_SHOP")+"</t>",{_this call HG_fnc_dialogOnLoadItems},"HG_DefaultShop",0,false,false,"",'(alive player) && !dialog && player distance _target < 3'];

"HG_DefaultShop" refers to the class in the vehicles shop config (HG_ItemsShopCfg.h), can be anything you want as long as it's defined in the proper config file


Gear Shop

this addAction["<img image='HG\UI\Icons\money.paa' size='2' shadow='0'/><t color='#FF0000' font='RobotoCondensedBold'>"+(localize "STR_HG_GEAR_SHOP")+"</t>",{_this call HG_fnc_dialogOnLoadGear},"HG_DefaultShop",0,false,false,"",'(alive player) && !dialog && player distance _target < 3'];

"HG_DefaultShop" refers to the class in the vehicles shop config (HG_GearShopCfg.h), can be anything you want as long as it's defined in the proper config file


Vehicles Shop

this addAction["<img image='HG\UI\Icons\money.paa' size='2' shadow='0'/><t color='#FF0000' font='RobotoCondensedBold'>"+(localize "STR_HG_VEHICLES_SHOP")+"</t>",{_this call HG_fnc_dialogOnLoadVehicles},"HG_DefaultShop",0,false,false,"",'(alive player) && !dialog && player distance _target < 3'];

"HG_DefaultShop" refers to the class in the vehicles shop config (HG_VehiclesShopCfg.h), can be anything you want as long as it's defined in the proper config file


Virtual Garage

this addAction["<img image='HG\UI\Icons\garage.paa' size='2' shadow='0'/><t color='#FF0000' font='RobotoCondensedBold'>"+(localize "STR_HG_GARAGE")+"</t>",{_this call HG_fnc_dialogOnLoadGarage},"HG_DefaultGarage",0,false,false,"",'(alive player) && !dialog && player distance _target < 3'];
this addAction["<img image='HG\UI\Icons\garage.paa' size='2' shadow='0'/><t color='#FF0000' font='RobotoCondensedBold'>"+(localize "STR_HG_GARAGE_PARK")+"</t>",{_this call HG_fnc_storeVehicleClient},"HG_DefaultGarage",0,false,false,"",'(alive player) && !dialog && player distance _target < 3'];

"HG_DefaultGarage" refers to the class in the garages config (HG_GaragesCfg.h), can be anything you want as long as it's defined in the proper config file


Trader

this addAction["<img image='HG\UI\Icons\money.paa' size='2' shadow='0'/><t color='#FF0000' font='RobotoCondensedBold'>"+(localize "STR_HG_TRADER")+"</t>",{_this call HG_fnc_dialogOnLoadTrader},"HG_DefaultTrader",0,false,false,"",'(alive player) && !dialog && player distance _target < 3'];

"HG_DefaultTrader" refers to the class in the traders config (HG_TradersCfg.h), can be anything you want as long as it's defined in the proper config file


Dealer

this addAction["<img image='HG\UI\Icons\car.paa' size='2' shadow='0'/><t color='#FF0000' font='RobotoCondensedBold'>"+(localize "STR_HG_DEALER")+"</t>",{_this call HG_fnc_dialogOnLoadDealer},"HG_DefaultDealer",0,false,false,"",'(alive player) && !dialog && player distance _target < 3'];

"HG_DefaultDealer" refers to the class in the dealers config (HG_DealersCfg.h), can be anything you want as long as it's defined in the proper config file


Units Shop

this addAction["<img image='HG\UI\Icons\units.paa' size='2' shadow='0'/><t color='#FF0000' font='RobotoCondensedBold'>"+(localize "STR_HG_UNITS_SHOP")+"</t>",{_this call HG_fnc_dialogOnLoadUnits},"HG_DefaultShop",0,false,false,"",'(alive player) && !dialog && player distance _target < 3'];

"HG_DefaultShop" refers to the class in the vehicles shop config (HG_UnitsShopCfg.h), can be anything you want as long as it's defined in the proper config file


ATM

There is nothing to do, just enable it in config and find an ATM in game (only A3 default ATMs are detected) OR name any object with prefix atm_ like so atm_whatever

Just in case you want to add it manually:

this addAction["<img image='HG\UI\Icons\atm.paa' size='2' shadow='0'/><t color='#FF0000' font='RobotoCondensedBold'>"+(localize "STR_HG_ATM")+"</t>",{_this call HG_fnc_dialogOnLoadATM},"",0,false,false,"",'(alive player) && !dialog && player distance _target < 3'];