How to permanently change your weapons in sandbox

I want this to be in my starting inventory when I start single player… Can someone tell me how to do this? Thanks :v:

-snip-

Have a look at the blue text. Guess what? It’s a link!

OP, use a PlayerSpawn hook and give the weapon in it.

I have no lua experience at all. :v:

Then get crackin on a Lua Tutorial :lol:

[lua]hook.Add(“PlayerLoadout”, “gimmesumswepsbitch”, function(pl)
if SinglePlayer() then
pl:Give(“weaponless”)
end
end)[/lua]

In lua/autorun, create a .lua file with any name you want, and paste this code in.
Untested, but I think it should work, unless I made a horribly stupid mistake in here. :v:

Thank ya’ Killburn