• I need some help with a binary module
    6 replies, posted
I just started learning binary modules but i am not getting the result i want. I want to runstring something but whenever i use stuff like http.Fetch it doesn't actually work. I can use print and add hooks etc. but i just can't get http.Fetch to work with runstring Please help #include "stdafx.h" #define GMMODULE #include "GarrysMod/Lua/Interface.h" GMOD_MODULE_OPEN() { LUA->PushSpecial(GarrysMod::Lua::SPECIAL_GLOB); LUA->GetField(-1, "RunString"); LUA->PushString(""); LUA->Call(1, 0); return 0; } GMOD_MODULE_CLOSE() { return 0; }
Do you want to post your code when you are trying to call fetch? Also, why use runstring to run code when you can do it directly in the module?
I want to push it inside of the runstring. (I am new so i don't know how to fetch without runstring using modules) Help would be appreciated
Sounds malicious...
Meh, could probably sound malicious. I am just learning
If this is supposed to be injected, your code isn't correct.
It's not supposed to be injected, it's just meant to use require. I am currently learning
Sorry, you need to Log In to post a reply to this thread.