Introduction to Functions and Variables [LUA Tutorial] [HD 1080p]

Опубликовано: 02 Август 2026
на канале: Prospect Studios
3,030
11

QUESTIONS? or SUGGESTIONS? POST THEM BELOW
CODE USED IN VIDEO:
LINK TO PASTE BIN (where the code is): http://pastebin.com/pPet6Qwp

test="kool people"

function fail()
Msg("this was made by "..test.." awesome. MertB")
end

concommand.Add( "birdsareawesome", fail )

function PrintIP( ply )
ply:PrintMessage(HUD_PRINTCONSOLE, "BITCH MA IP IS:"..ply:IPAddress())
end

concommand.Add( "pingmebitch", PrintIP )

PROGRAMS:
Notepad++
http://notepad-plus-plus.org/

INSTRUCTIONS:
1. Create a new lua file at "garrysmod/garrysmod/lua" folder.
2. Paste code into the file.
3. Load Garrysmod up and type lua_openscript nameofscript.lua
4. Run console commands and mess around with the main code.