Could you please add an API call for your function
private void OnKitReceived(BasePlayer player, KitData.Kit kit)
I want to integrate kit redeeming into my own CUI, but without that API call, I can't update cooldowns etc.. after a player redeemed a kit.
Something like this would help:
I want to integrate kit redeeming into my own CUI, but without that API call, I can't update cooldowns etc.. after a player redeemed a kit.
Something like this would help:
[HookMethod("OnKitReceived")]
public void OnKitReceived(BasePlayer player, string name)
{
if (player == null || string.IsNullOrEmpty(name)) return;
KitData.Kit kit;
if (!kitData.Find(name, out kit)) return;
OnKitReceived(player, kit);
}Thx in advance.