RixxTV 0 Report post Posted November 21, 2017 What I'm trying to achieve is to have an XM8 app button that when clicked simply brings up the option to purchase a family, as it would at an office vendor. I have done minimal research on this so far, am just putting this out there incase anyone had any additional information they could share while I researched my options. Reason I want to do this is my server does not have any vendors. I am by no means as advanced as some of you on here as I have seen some of the things you guys can come up with. The extent of my knowledge is setting up and maintaining a server, installing addons/mods, and some cfg editing. Thanks for your time. Share this post Link to post Share on other sites
Beowulfv 305 Report post Posted November 21, 2017 What XM8 setup are you using? Share this post Link to post Share on other sites
RixxTV 0 Report post Posted November 21, 2017 I currently have infistar xm8 apps, but can switch to the advanced xm8 apps if need be. Share this post Link to post Share on other sites
Beowulfv 305 Report post Posted November 21, 2017 Not familiar with the config setup for infiSTARs XM8, but what you are trying to do is simply call the SQF file that executes the UI for purchasing a family which is ExileClient_gui_registerClanDialog_show. I've played around with a few but the one I am currently running is the ExAd system, so I'll setup and Example and you might be able to interpret what goes where for your config. So here I have a blank canvas, and I want to create a function to purchase a family remotely. class CfgXM8 { extraApps[] = {""}; }; I crate a class name for my new fuction, then tell it what I want it to do. I tell it what I want it to display in "tittle", I give it a "controlID", I created a directory for the logo I want attached to it, and I use a quickfunction to call on the SQF file that brings up the Family purchase UI. class CfgXM8 { extraApps[] = {"Family"}; class Family { title = "Purchase Family"; controlID = 50100; //IDC:50100 -> 50102 || These need to be unique and out of range from each other logo = "ExadClient\XM8\Apps\Info\Icon_SI.paa"; quickFunction = "call ExileClient_gui_registerClanDialog_show"; }; }; The big thing to take away from this is the call function and what file you are calling. The rest of it is mix and match really. 2 Share this post Link to post Share on other sites
RixxTV 0 Report post Posted November 21, 2017 This is extremely helpful. I am also running ExAd, completely slipped my mind. So in essence would it be this simple to assign any Exile function I wanted to an XM8 button? And just for reference is there somewhere I would find what functions are available to call? Share this post Link to post Share on other sites
Beowulfv 305 Report post Posted November 21, 2017 (edited) You just need to go digging thru Exiles files and educate yourself. But yes, once you found the function you were looking for, you would just copy and paste basically to create a new XM8 button. Most of what you are doing is Client side, so you will look in Exile code and not ExileServer code. Also you are looking for User Interface functions, so you would stick to the GUI sqf files. Lastly anything with "show" at the end does just that, it shows the UI to the player. So ExileClient_gui_registerClanDialog_show Exile Client side > Graphic User Interface > Register Clan > Show to the user. Edited November 21, 2017 by Beowulfv Share this post Link to post Share on other sites
RixxTV 0 Report post Posted November 21, 2017 Really appreciate the help here. I'll get to that education part =D Share this post Link to post Share on other sites
dekela 129 Report post Posted November 22, 2017 Can you use this method to show the trader menu? Share this post Link to post Share on other sites
Beowulfv 305 Report post Posted November 22, 2017 54 minutes ago, dekela said: Can you use this method to show the trader menu? I don't see why not, however for traders like Armory, Hardware, and other item traders, they are defined by arrays. Example: Exile_Trader_Armory or Exile_Trader_Equipment Then once the server knows which class to pull from it calls ExileClient_gui_traderDialog_show. Now vehicle traders and customs traders are the exact same way except they call separate dialogs. So I would specify I want to purchase a Vehicle by using Exile_Trader_Vehicle, then call the vehicle trader dialog and not the trader dialog, ExileClient_gui_vehicleTraderDialog_show For customs traders, the trader that changes skins, we would use ExileClient_gui_vehicleCustomsDialog_show. Now I haven't played around with adding them to the XM8, but it shouldn't be too much trouble to throw them into brackets in order to achieve what you're trying to do. Share this post Link to post Share on other sites
dekela 129 Report post Posted November 23, 2017 thanks Beowulfv, i have tried Quote quickFunction = "['Exile_Trader_Armory '] call ExileClient_gui_traderDialog_show"; dosent work unfortunately. I have most likely got it in the wrong format though Share this post Link to post Share on other sites