How do I install CVar3?

Posts 1–15 of 27 · Page 1 of 2
How do I install CVar3?
Hello, I'm having some problems with using CVar3. I've downloaded both files from hereⓘ and placed them in my C:\Program Files (x86)\Steam\SteamApps\common\GarrysMod\garrysmod\l ua\bin directory. When I try to load my script, I am faced with the error:

Code:
Couldn't include file 'includes\modules\cvar3.lua' (File not found) (@LuaCmd (line 1))

[ERROR] LuaCmd:1: Module not found!
  1. require - [C]:-1
   2. unknown - LuaCmd:1
Scripts are loading fine and I'm using a bypasser, I have already tested that. If you're interested, I'm attempting to use a speed hack made by canttouchthis123 in this thread.

Thanks!
sv_cheats 1
host_framerate 12
there's speedhack have fun
Quote Originally Posted by wuat View Post
sv_cheats 1
host_framerate 12
there's speedhack have fun
I'm aware of this speedhack--I'm already using it--but I want to try the timescale one.

Also, here's the code that I'm trying to get to work:
Code:
require("cvar3")
function Speed()
	local cheats = GetConVar("sv_cheats")
	local timescale = GetConVar("host_timescale")

	cheats:SetValue(1)
	timescale:SetValue(GetConVarNumber("speed_num"))
end

function OffSpeed()
    local cheats = GetConVar("sv_cheats")
	local timescale = GetConVar("host_timescale")

	cheats:SetValue(0)
	timescale:SetValue(1)
end

concommand.Add("+ab_speed", Speed)
concommand.Add("-ab_speed", OffSpeed)
CreateClientConVar("speed_num", "5")
Google C++ 2010 Redistributable Package
Click on microsoft website one, install it and now have fun speedhacking.
Quote Originally Posted by Azrius View Post
After installing those, I still receive the same error for some reason.
What OS ?
Quote Originally Posted by Gray View Post


What OS ?
I fixed it. I forgot to add the _win32 to the dll.
Quote Originally Posted by Azrius View Post
I fixed it. I forgot to add the _win32 to the dll.
There you have it.
Having the same issue, trying to use the same file! Both sv_allowcslua and sv_cheats bypasser are working for me, I got the 3 cvar3 files and I have all the latest microsoft redistruable package.

Getting:

Code:
[ERROR] lua/ss.lua:1: Couldn't load module library!
  1. require - [C]:-1
      2. unknown - lua/ss.lua:1
Quote Originally Posted by Loshijosdea View Post
Having the same issue, trying to use the same file! Both sv_allowcslua and sv_cheats bypasser are working for me, I got the 3 cvar3 files and I have all the latest microsoft redistruable package.

Getting:

Code:
[ERROR] lua/ss.lua:1: Couldn't load module library!
  1. require - [C]:-1
      2. unknown - lua/ss.lua:1
And it has the right name?..
ending with _win32.dll?
They're called

gmcl_cvar3_win32.dll
gmsv_cvar3.dll
gmsv_cvar3_win32.dll
Quote Originally Posted by Loshijosdea View Post
They're called

gmcl_cvar3_win32.dll
gmsv_cvar3.dll
gmsv_cvar3_win32.dll
And what directory do you have them in?
steamappas/username/garrysmod/garrysmod/lua/bin still doesn't work, i dont know why
Quote Originally Posted by Loshijosdea View Post
steamappas/username/garrysmod/garrysmod/lua/bin still doesn't work, i dont know why
Read the stickied thread and you'll find your answer.
Posts 1–15 of 27 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Talk with us