[Release] Server Password - Make Your Server Secure and Scum Free [1.1]

You can just press Esc to bypass it… wouldn’t it of been smarter to have it lockdown the Esc key until password is correctly entered? :thinking:

2 Likes

We’ve got this set up, and maybe we’ve done something wrong, but when the password bar is up, hitting ESC lets you bypass entering the password at all. Any ideas?

Thats how it is for everyone, however you need to fix/update it to disable those keybind inputs while typing a password. Sadly ive yet to get it working properly either. Damn shame, it has potential to help servers.

1 Like

Just press ESC and you are in. no need to type te password .

The whole point of this resource is to password protect a server, the fact that it allows easy bypass like that makes it useless. Reason the fix that was offered earlier which was also pulled would be very helpful to make this work properly.

Just press ESC.

you found how to fix the problem ?

@FAXES any luck?

For what?

Opsie. I never updated this. I thought I did :smile:

lmao, Faxes, I’ve been around this community a couple years, seen a lot of things, but YOU… forget something? say it isn’t possible?!! lol just messing with you, I assume we have an update now? :slight_smile:

Yeah I did with Vespura’s PR, however it was closed by the time I got too it. I’ll have to redo it.

ok, I do use a few of your scripts, this one I’d like to use on my testing server :slight_smile: ps keep up the good work!!!

1 Like

Yo huge love from ur amazing script
hope you can fix the ESC problem

oh maybe you did xD

1 Like

I see that your last commit was still last year on the GIT repo. Really enjoy the Script and it works great! Curious to when you are gonna be pushing the ESC / Right Click fix.

Thanks for your help & work on this!

I don’t know if it is just me but if you hit the esc key then you don’t have to enter the password is an issue were having with it

I reported this like the day it came out. Hasnt been an update since.

Yeah ESC and Right Mouse Button BOTH skip it.

Replace

RegisterServerEvent('Fax:ServerPassword:CheckPassword')
AddEventHandler('Fax:ServerPassword:CheckPassword', function(Newpassword, attempts)
    local clPassword = Newpassword
    local s = source

    if clPassword == password then
        TriggerClientEvent("Fax:ServerPassword:PassedPassword", s)
    elseif password ~= clPassword then
        if attempts <= 0 then
            Timeout(s)
            DropPlayer(s, kickMessage)
        else
            TriggerClientEvent("Fax:ServerPassword:ShowPasswordPrompt", s)
        end
    else
        Timeout(s)
        DropPlayer(s, kickMessage)
    end
end)

by this

RegisterServerEvent('Fax:ServerPassword:CheckPassword')
AddEventHandler('Fax:ServerPassword:CheckPassword', function(Newpassword, attempts)
    local clPassword = Newpassword
    local s = source

    if attempts == nil then
        Timeout(s)
        DropPlayer(s, kickMessage)
    end

    if clPassword == password then
        TriggerClientEvent("Fax:ServerPassword:PassedPassword", s)
    elseif password ~= clPassword then
        if attempts <= 0 then
            Timeout(s)
            DropPlayer(s, kickMessage)
        else
            TriggerClientEvent("Fax:ServerPassword:ShowPasswordPrompt", s)
        end
    else
        Timeout(s)
        DropPlayer(s, kickMessage)
    end
end)

Kick when ESC and Right Clic is press :wink:

4 Likes

Hello dont work for me :frowning: