client/addons/store/functions/fnc_changePayment.sqf
Jacob Schmidt c6daf95415
All checks were successful
Build / Build (push) Successful in 53s
Initial Repo Setup
2025-01-01 14:35:12 -06:00

11 lines
406 B
Plaintext

#include "..\script_component.hpp"
params ["_control", "_selectedIndex"];
private _display = ctrlParent _control;
private _selectedPayment = _control lbData _selectedIndex;
private _selectedPaymentTitle = _control lbText _selectedIndex;
[format ["You have selected %1 as your payment method.", _selectedPaymentTitle], "info", 3, "right"] call EFUNC(misc,notify);
GVAR(activePayment) = _selectedPayment;