Hey I'm just trying to make a weapon add and remove itself from my inventory, I can use addweapon(); and removeweapon() on levels but it doesn't work inside the weapons scripts. When I put them two commands in f2 it says its a unrecognized command. thank you and sorry for posting another noob topic
also im wondering how to drop a animation for a clip gani when the gun reloads so it stays on the ground
NPC Code:
//#CLIENTSIDE
function GraalControl.onKeyDown(code, key, scan) {
if (key == "t") {
freezeplayer(this.equip);
removeweapon("Weapon/BMP");
addweapon("Weapon/BMP2");
}