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

preview_player
Показать описание
QUESTIONS? or SUGGESTIONS? POST THEM BELOW
CODE USED IN VIDEO:

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++

INSTRUCTIONS:
1. Create a new lua file at "garrysmod/garrysmod/lua" folder.
2. Paste code into the file.
4. Run console commands and mess around with the main code.
Рекомендации по теме
Комментарии
Автор

I wonder how you can make a LUA, likely if you say "create_explosion" wich will make the console say "ent_create env_explosion" or something like that.

bananhosdig
Автор

The next LUA tutorial video will on May 13th. Next video will go over DERMA.

TheProspectStudios
Автор

NVM. No More LUA tutorials until, new GMOD version is released.

TheProspectStudios