Hello! Currently I have encountered a problem with givePlayerWeapon method which complains for some unknown reason with 'No overload for method 'givePlayerWeapon' takes 4 arguments'
- [Command("weapon", Alias = "wp")]
- public void giveWeapon(Client client, String model, int ammoAmmount = 500)
- WeaponHash weaponHash;
- weaponHash = (WeaponHash)System.Enum.Parse(typeof(WeaponHash), model);
- API.sendChatMessageToPlayer(client, "~r~[!] Weapon with name of "+ model + " was not found!");
- API.givePlayerWeapon(client, weaponHash, ammoAmmount, true);
- API.sendChatMessageToPlayer(client, "~g~[+]" + model + " was given to the player!");
Thank you for your time!