I just can't work out why this equipment won't show up in the detective store. There is no error it just doesn't show up, i'm sure there is something obvious i'm missing but I can't find it.
Here is my code ( minus the function which are irrelevant to my question I think)
[CODE]if SERVER then
AddCSLuaFile( "shared.lua" )
end
if CLIENT then
SWEP.PrintName = "Grapple"
SWEP.Slot = 7
SWEP.ViewModelFOV = 72
SWEP.ViewModelFlip = true
SWEP.Icon = "pack/crowbar.png"
end
SWEP.Base = "weapon_tttbase"
SWEP.Spawnable = false
SWEP.AdminSpawnable = false
SWEP.PrintName = "Grapple"
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = true
SWEP.ViewModel = "models/weapons/v_crowbar.mdl"
SWEP.WorldModel = "models/weapons/w_crowbar.mdl"
SWEP.EquipMenuData = {
type = "Grapple Hook",
desc = "Use this grapple hook to get height advantages over your fellow players."
};
SWEP.Kind = WEAPON_EQUIP2
SWEP.AutoSpawnable = false
SWEP.AllowDrop = true
SWEP.InLoadoutFor = nil
SWEP.CanBuy = {ROLE_DETECTIVE}
SWEP.LimitedStock = true
SWEP.IsSilent = false
SWEP.NoSights = true
local attachsound = Sound("weapons/crossbow/hit1.wav")[/CODE]
One thing, most likely irrelevant:
SWEP.Slot set to 6 ( so 7 ), but type is EQUIP2.
It'll show up on 7th slot but take up 8th
SWEP.Slot is quite annyoing in TTT. If you choose a number it will always it with 1. So 7 is 7 -1 = 6
Thanks for the replies, but it didn't make a difference.
[QUOTE=Snorlaxs;42243610]SWEP.Slot is quite annyoing in TTT. If you choose a number it will always it with 1. So 7 is 7 -1 = 6[/QUOTE]
I know. But his type is EQUIP2, so Slot 8.
Still looking for help.
Still looking for help!
Sorry, you need to Log In to post a reply to this thread.