attempt to call field 'Get' (a nil value) when i call weapons.Get()

Hey,

I have this code. But ingame its says that “attempt to call field ‘Get’ (a nil value)”
But why? I testet it on Client and Server


if (weapons.Get(val)) then
	ply.pwep= val
end


Greetz

Weapons is probably locally defined or redefined globally in that file. Check the lines above it to see if it does weapons = …stuff

Yes… oh shit damn, i call a variable weapons :confused: i should go sleep…
Thanks dude.