Steam Verifier is an open-source FiveM server script that enforces Steam authentication by preventing players from connecting without an active Steam client. Leveraging the playerConnecting
event, it ensures a secure and reliable connection environment for your server, verifying that all users are properly authenticated through Steam Client.
Perfect for roleplay servers, whitelist groups, and online communities!
- Checks if the player has an active Steam connection
- Denies connection to players without Steam running
- Fully compatible with
playerConnecting
deferrals - Handles invalid connections (e.g.
src == nil
) - Clean and clear kick messages (
deferrals.done(...)
) - Easy integration with any FiveM server
- Minimal resource usage with zero performance impact
- More features to come in the future...
The script hooks into the playerConnecting
event and inspects the player’s identifiers for a valid steam:
ID. If none is found, the connection is rejected.
This solution requires no databases or complex authentication logic, providing a simple yet effective enforcement of Steam-only connections.
AddEventHandler('playerConnecting', function(name, setKickReason, deferrals)
-- Full code available in `steamCheck.lua`
end)
Tip
Ensure the Steam client is running before starting FiveM. Players attempting to connect without Steam client will be rejected.
- Download or copy the
steamCheck.lua
file. - Place it inside a resource folder, e.g.
/resources/[local]/steam-verifier/
. - Add the following to the resource’s
fxmanifest.lua
file:
fx_version 'cerulean'
game 'gta5'
version '1.0.0'
server_script 'steamCheck.lua'
Warning
This script requires a valid Steam Web API Key to properly verify player Steam IDs. Make sure to configure it in the script before use.
- Configure your Steam Web API Key in your
server.cfg
:
set steam_webApiKey "YOUR_STEAM_WEB_API_KEY"
- Enable the resource by adding the following line to your
server.cfg
:
ensure steam-verifier
Caution
Temporary Steam connectivity issues may occasionally require restarting both Steam and FiveM clients to restore proper functionality.
If you have any questions or discover a security vulnerability, please contact me directly via my Discord Profile. I am committed to responding promptly and assisting you as quickly as possible.
Please refrain from publicly disclosing any security vulnerabilities to ensure proper handling and resolution.
Contributions are welcome! Please submit a Pull Request (PR) for new features or issues you have resolved, keeping the following guidelines in mind:
- For minor issues such as typographical or grammatical errors, please open an issue rather than a PR.
- Avoid submitting irrelevant, spammy, or troll pull requests.
- Do not attempt to rewrite large portions of the project in a single PR; keep changes focused and manageable.
This project is licensed under the MIT License, granting you full permission to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, under the following conditions:
- You must include the original copyright notice and this permission notice in all copies or substantial portions of the software.
- The software is provided "as is", without warranty of any kind, express or implied.
For full details, see the MIT License.
🍹 Created by KaloudasDev.
If you find this project useful, please consider leaving a ⭐. Thank you for your support!