UnhappyI never got my lua hacks working

Posts 17 of 7 · Page 1 of 1
I never got my lua hacks working
Hi, I've installed a few hacks and tested them in singleplayer but none of them worked. I would like to use AHack by Atheon. I loaded the script in singleplayer with lua_openscript ahack.lua
Atheon says in his thread that there is only 1 command: AHack_Menu.
The hack loads fine but there is no AHack_Menu command, just a AHack_Active.
Also, with all the hacks I've tried the console always tells me there is no command to open the menu
Here is my log:

] lua_openscript ahack.lua
Running script ahack.lua...
TEST [lua/playxlib.lua][lua/ahack.lua]
TEST [lua/von.lua][lua/ahack.lua]

[ERROR] lua/ahack.lua:97: attempt to call global 'LocalPlayer' (a nil value)
1. unknown - lua/ahack.lua:97

] AHack_Menu
Unknown command: AHack_Menu
] AHack_Active 1
] AHack_Menu
Unknown command: AHack_Menu

Does anyone know what I should do?
Quote Originally Posted by snixzz View Post
you're loading it serverside, do "lua_openscript_cl" instead of "lua_openscript"
You're welcome.
That still doesnt work. I'm trying to use the hack in singleplayer. The problem is, I can load the script but the console says
] lua_openscript_cl ahack.lua
] AHack_Menu
Unknown command: AHack_Menu

And with lua_openscript:
] lua_openscript ahack.lua
Running script ahack.lua...
TEST [lua/playxlib.lua][lua/ahack.lua]
TEST [lua/von.lua][lua/ahack.lua]

[ERROR] lua/ahack.lua:97: attempt to call global 'LocalPlayer' (a nil value)
1. unknown - lua/ahack.lua:97

] AHack_Menu
Unknown command: AHack_Menu

I get an error and the AHack_Menu command doesn't exist?
You have followed all of the instructions in the stickied posts?
Usually, if you're savvy enough you can find whatever commands you need inside of the lua file.
Yup, I've read the sticky posts and redone all steps like 3 times

Does it have to do something because my GMod is located in C:\Program Files (x86)\Steam\SteamApps\common\GarrysMod\garrysmod\l ua
and not in \SteamApps\username\ etc?
Quote Originally Posted by snixzz View Post
you need to set sv_allowcslua to 1
HaHa. Thanks TyLer Can't WaIt For YouR UpComing Cheats.
I already have allowcslua on 1
I re-installed GMod and got it working
Posts 17 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?