Setting Up Steam API
This guide will walk you through the process of setting up Steam API for your FiveM server. Having a Steam API key is essential for proper player authentication and Steam-related features.
๐ฎ Step 1: Getting Your Steam API Key
-
Visit Steam Dev Portal
- Go to Steam Web API Portal
- If youโre not logged in, click โSign Inโ at the top right
-
Register Your Domain
- In the โDomain Nameโ field, enter
localhost - This is sufficient for FiveM server usage
- Accept the Steam Web API Terms of Use
- Click โRegisterโ
- In the โDomain Nameโ field, enter
-
Save Your API Key
- After registering, youโll see your API key
- Copy it and store it securely
- โ ๏ธ Never share your API key publicly or commit it to public repositories
๐ง Step 2: Server Configuration
- Locate Your Server Files
- Edit server.cfg
- Open your
server.cfgfile - Add this line:
- Open your
๐ Step 3: Applying Changes
-
Save Configuration
- Save the changes to
server.cfg - Make sure there are no extra spaces in the API key
- Save the changes to
-
Restart Server
- Stop your FiveM server
- Start it again to apply the changes
โ Step 4: Verification Steps
To confirm your Steam API is working:
- Start your server and check the console.
- Ensure players can connect with their Steam accounts.
- Steam identifiers should be visible in player information.
โ Common Issues
- Invalid API Key Format: Ensure no spaces before or after the key.
- Connection Issues: Verify your server has internet access.
- Authentication Failures: Confirm the
steam_webApiKeyline is in the correct location.
Need help? Join our Discord community for support!