[Release] FiveM Server password

This script will protect your server from everyone who does not know the password.
I hope this script helps FiveM server stay protected from hackers, modders etc. While this isn’t the best way to secure your server. It is one of the easiest.

Screenshots

img1

If the password is incorrect users will be presented with this message:
img2

You can download this script from the github
https://github.com/arthur-rl/FiveM-Scripts/tree/master/ServerPassword

To install this script
Download or clone the repo from the link above.
Drag the ServerPassword folder into your resources folder.
To add passwords add them to the table at the top of sv_serverpassword.lua
Then just start the script

12 Likes

Doesnt Work

what do you mean?, any other info then “Doesnt Work”

when u release something its always cool to give installation guide and if we can configure the message that it sent when the password is incorrect

Ah yes, i will add that now, you can configure the message its on Line 40.

Have you tried restarting fivem. happened to me a couple times during testing.
Just a quick restart helped. Unless you have changed something in the script

Yes i restarted, and i just changed the password

doesnt work with system of connect queue , like the ppassword we must to find a solution to work with it

Same problem :c

1 Like

it would work. At the moment it’s just not allowed to have other scripts that are using the deferrals. Scripts like es_extended and various other use them and that makes this script to not work anymore.
Actually I think that’s a bug from FiveM :man_shrugging:

It because there would be multiple playerConnecting event handlers. and ex_extended has probably got one, if you want to use this with a framework put my code inside that playerConnecting event and move all the other es_extended stuff to where the password is accepted.

after doing this i always have the same thing

It’s not working for me too

It must be your server then, cause it works fine for me.

That’s really not a valid solution.

Works fine for me! Thank you good sir!

If you are using connect queue and have that installed, this password script will not work and will give you the deferring connection issue

1 Like

works great thanks