Lua run cl

From GMod Wiki

Revision as of 19:27, 19 November 2009 by Disseminate (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Console.png Go to:
Console
Command
Syntax lua_run_cl String code
Available On: NewerClient.pngState Console.png
Part Of: Garry's Mod
Description:
A console command that allows you to run lua code on the client.

Examples

DescriptionYou can run any valid lua code with this, provided scriptenforcer is off.
Used onNewerClient.png
Code
lua_run_cl print(LocalPlayer():GetPos(),LocalPlayer():EyeAngles())

Yarin Kaul Icon ArrowSquare32 right.png Entity.GetPos

Yarin Kaul Icon ArrowSquare32 right.png Entity.EyeAngles
OutputPrints your world position and eye angles.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox