do i need a lua bypasser for this? and do i just save it as lua and put it on the lua folder?
Nice
Originally Posted by canttouchthis123
Code:
if IsValid(v) and v.code then
drawRoundedBox( 4, pos.x-5, pos.y-5, 20, 20, Color( 0, 255, 0, 150 ) )
else
drawRoundedBox( 4, pos.x-5, pos.y-5, 20, 20, Color( 255, 0, 0, 150 ) )
end
Shouldn't drawRoundedBox be
Code:
draw[DOT]roundedbox
Also, I get the error:
attempt to call method 'GetDisplayText' (a nil value)
Actually you're right about the draw[dot]RoundedBox. It got censored out when i originally posted and when i retyped it i wasn't thinking. That's probably the issue some of you have been having.
As for the GetDisplayText error, its most likely that the server is using a slightly different keypad than what i made this for. You would have to see what this server is calling its networked variables and change my code accordingly.
Originally Posted by eustis
do i need a lua bypasser for this? and do i just save it as lua and put it on the lua folder?
For almost any server you are going to need a lua bypasser to use this. If you dont have one there are plently right in this forum section. After that just place it in your lua folder and type lua_openscript_cl <script-name>.lua in console.
READ THIS -
For anyone having issues you're going to have to make a change to the code yourself. Since MPGH wont let me post draw****undedBox i have it in my code as draw[dot]RoundedBox. Just fix those and your issues should be gone.
Yeah it displays the GetDisplayText error with another keypad addon.
How come when I enter the number into the keypad with my numpad, it doesn't detect it?
Also another thing, sometimes the red box appears on players. Any idea of what's causing that?
Originally Posted by Rax303
How come when I enter the number into the keypad with my numpad, it doesn't detect it?
Because it's not designed to pick up your HID devices, it's determining the password by judging how you look and when you activate a keypad.
So if you are not punching the numbers in "by hand" then he can't get the numbers.
Originally Posted by canttouchthis123
Also another thing, sometimes the red box appears on players. Any idea of what's causing that?
I'm checking the entities class for the word "keypad" and if i find that word i draw a red box around the keypad. But keypad crackers and keypad checkers also have that word in their name, so if a player has either of those items they are going to have a red box on them. I didn't think about that when i made this but i don't think its much of an issue.
Regarding GetDisplayText returning Nil - If you post the server IP for me I'll check out what they are using for the networked variable and update my code to work with it.
Originally Posted by Atheon
I'm checking the entities class for the word "keypad" and if i find that word i draw a red box around the keypad. But keypad crackers and keypad checkers also have that word in their name, so if a player has either of those items they are going to have a red box on them. I didn't think about that when i made this but i don't think its much of an issue.
Regarding GetDisplayText returning Nil - If you post the server IP for me I'll check out what they are using for the networked variable and update my code to work with it.
Get it running on this server
74.91.122.78:27017
I just wanna see this thing in action. After changing the [DOT] Everything seems to be fine. Just not getting any passwords.
When I do it, it hides my hud in DarkRP, please message me back for the solution.
It did this for me too until I fixed the [DOT] problem just add your dots and it should all be good.
How do I change hook name? What part of the code do I edit?
Originally Posted by Atheon
I'm checking the entities class for the word "keypad" and if i find that word i draw a red box around the keypad. But keypad crackers and keypad checkers also have that word in their name, so if a player has either of those items they are going to have a red box on them. I didn't think about that when i made this but i don't think its much of an issue.
Regarding GetDisplayText returning Nil - If you post the server IP for me I'll check out what they are using for the networked variable and update my code to work with it.
Ok, I can easily fix that. I'll just code something in to check and see if it has like cracker or hacker in the name. Oh and for the GetDisplayText returning nil, the keypad addon that returns nil for GetDisplayText has two versions of the keypad: keypad and keypad advanced
Originally Posted by Mitch13
How do I change hook name? What part of the code do I edit?
"WatchingPlayers" and "KeypadPasswords" are the hook names. Change those to anything you want but try to keep it unique so it doesn't interfere with another hook that might have the same name.
Update on the GetDisplayText returning nil - I've got the code for the different keypad. This keypad is using a different method of setting networked variables. I'll try to update my code by tomorrow (technically today since its 2 am here) but it may be the day after.
This error is coming on me :
[ERROR] lua/keypadhack.lua:78: '=' expected near 'roundedbox'
1. unknown - lua/keypadhack.lua:0
Any ideas?
Originally Posted by henna3
This error is coming on me :
[ERROR] lua/keypadhack.lua:78: '=' expected near 'roundedbox'
1. unknown - lua/keypadhack.lua:0
Any ideas?
I'm pretty sure you have "draw[dot]roundedbox" in your code. You need "draw[dot]RoundedBox". Capitalization is important.
Reply back if that's the issue or not. If it isn't, supply me the code you have on that line.