lua_run_cl print("hi")
lua_run_cl print("hi")
it's called the gmod wiki
suchisgood (05-07-2014)
print( "I'm incapable of learning" )
You can literally get it with one line of code. Get on my level and maybe I'll help your sorry ass.
Last edited by Blue Kirby; 05-07-2014 at 05:05 PM.
Liquidsocks (05-10-2014),suchisgood (05-08-2014),TroubleMakers (05-18-2014)
i know what i need that when im attacked i get health and the attacker loses all health
Code:LUA->GetField(-1, "print"); LUA->PushString("I'm a nub"); LUA->Call(1, 0);
Actually this isn't needed because a while back bluekirby posted extended headers that include RunString so you can just do LUA->RunString("print(\"nub i am\")") or something like that.
Thanks anyway. @Symmetrical lock