WeaponMeta:GetClass() is nil


local wM = FindMetaTable("Weapon")

if !wM then
    return
end

function wM:Class(fString)
	return wM:GetClass():find("^" .. fString .. "_")
end

I printed the metatable and GetClass() shouldn’t be nil.

It’s called from the “Entity” metatable

[editline]6th September 2013[/editline]

When you attempt to index a weapon it’ll first check the “Weapon” metatable, the “Entity” metatable and then the weapon itself.

Working now. Thanks!