HelpPlease Help

Posts 13 of 3 · Page 1 of 1
Please Help
I'm making a PERP godmode script, i know it's bad i know nearly nothing about lua you could train a monkey to write this, but im getting an error.

Code:
CreateClientConvar( "perp_g_mode", 0, true, false )

function perpgodmode()
if GetConVarNumber("perp_g_mode") == 1 then
if LocalPlayer() :Health() <= 40 and LocalPlayer() :Alive() then
RunConsoleCommand("perp2_encrypt3d_resetHealth")
end
end
end

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

how do i fix this? i want to be able to make a convar for it so it can be turned on and off.
You forgot to add a cap, it's "CreateClientConVar"
Have you ever heard of that key just above caps called "Tab"?
Posts 13 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?