Garry's Mod - Lua
A simple hello program.
print( "Hello BIATCH" )
FUCK THATBtw, I am going to assume you know some basic Lua.
-=Basic GMod Lua Functions=--=Gamemode=-GM:PlayerInitialSpawn( ply ) -- Allows you to edit the players spawn.
GM:PlayerLoadout( ply ) -- The players initial loadout (Ex. Weapons).
-=Player=-ply:SetHealth( <number> ) -- Easy enough to understand am I right?
ply:SetMaxSpeed( <lowernumber>, <highernumber> ) -- First number is the players normal walk speed, second is the players sprint (shift) speed.
ply:PrintMessage( HUD_PRINTTALK, "Message Here" ) -- Displays a message written in the string.
ply:IsAdmin() -- Is the player admin?
ply:IsPlayer() -- Is the motherfucker a player?
ply:FindHood -- WHERE THE HOOD, WHERE THE HOOD, WHERE THE HOOD AT?
(NOT A REAL FUNCTION.)Section 1: SWEPS!
Description: Weapon Scripts.