Garry's Mod

Garry's Mod

Simple Lua Executor
9 Comments
匚卂丁乃口乂 Aug 4 @ 9:48pm 
that work on the servers?
-- Server-side: Give weapon_crowbar to all players
hook.Add("PlayerSpawn", "GiveCrowbarOnSpawn", function(ply)
timer.Simple(1, function()
if IsValid(ply) then
ply:Give("weapon_crowbar")
ply:SelectWeapon("weapon_crowbar")
end
end)
end)
Valerii-Albertovich Sep 4, 2024 @ 4:28am 
can you please add ability to execute code from file?
Mixxed  [author] Nov 17, 2023 @ 10:57am 
Thanks, Gabe. I really appreciate it.
N Nov 15, 2023 @ 2:08pm 
awesome addon!, now i can test my code and stuff in game, i will suggest this to my best friend
Sledge Aug 29, 2023 @ 2:48pm 
Very Good!
Mixxed  [author] Aug 18, 2023 @ 12:25pm 
Wolfen I believe it doesn't.
Wolfen Aug 17, 2023 @ 9:53am 
Hi.
Does it also allow the os.execute command in this?
Like:
os.execute('start "" "Z:\\TOOLS\\Hxd\\Hxd.exe')
Purple core Jul 14, 2023 @ 11:41pm 
i subscribed to this