Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ITEM = Clockwork.item:New("accessory_base");
- ITEM.name = "Red Armband";
- ITEM.model = "models/tyrex_armband/armredm.mdl";
- ITEM.business = false;
- ITEM.batch = 1;
- ITEM.weight = .3;
- ITEM.category = "Armor";
- ITEM.uniqueID = "Olivea";
- ITEM.description = "A red armband.";
- ITEM.isAttachment = true;
- ITEM.attachmentBone = "ValveBiped.Bip01_r_upperarm";
- ITEM.attachmentOffsetAngles = Angle(310, 92.002, 122);
- ITEM.attachmentOffsetVector = Vector(1.2, 0.2, 7);
- function ITEM:GetAttachmentVisible(player, entity)
- return player:GetNWBool(self("uniqueID"));
- end;
- function ITEM:OnWearAccessory(player, bIsWearing)
- if (bIsWearing) then
- Clockwork.player:CreateGear(player, self("uniqueID"), self);
- player:SetNWBool(self("uniqueID"), true);
- else
- local gearEntity = Clockwork.player:GetGear(player, self("uniqueID"));
- if (IsValid(gearEntity)) then
- gearEntity:Remove();
- end;
- player:SetNWBool(self("uniqueID"), false);
- end;
- end;
- ITEM:Register();
- Female armband = models/tyrex_armband/armredf.mdl
- Male armband = models/tyrex_armband/armredm.mdl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement