Hello, I’m creating my first add-on for TTT and it’s basically !redie, I thought it’d be fun and help me learn.
So far I’ve been messing with this and I’ve come into a problem
[lua]if SERVER then
function redie( ply, text, public )
if (string.sub(text) == “!redie”) then
if ply:IsValid() and !ply:Alive() then
hook.Add( “PlayerSay”, “redie”, redie );
I know GM:PlayerCanPickupWeapon() exists, but I am slightly confused as to how to use it so said player cannot pickup any weapons at all.