Hi there,
I am using a mixture of code that is allowing me to get "donation items" from a database table, display it as a vendor, and allow users to buy.
My issue is I want to give users a confirmation box when they attempt to buy the item that says "Are you sure you want to purchase x" or something similar.
I cannot find a way to do this, I have tried gossip menu's, such as the below:
But it just adds the item without any alert.
Current code:
http://pastebin.com/a4EaTb3w
Thanks
I am using a mixture of code that is allowing me to get "donation items" from a database table, display it as a vendor, and allow users to buy.
My issue is I want to give users a confirmation box when they attempt to buy the item that says "Are you sure you want to purchase x" or something similar.
I cannot find a way to do this, I have tried gossip menu's, such as the below:
Code:
AddGossipItemFor(session->GetPlayer(), GOSSIP_ICON_INTERACT_1, "Test", 0, session->GetPlayer()->AddItem(item, count), "Are you sure you want to purchase\n\n", (0), false);
But it just adds the item without any alert.
Current code:
http://pastebin.com/a4EaTb3w
Thanks