Installation

Open Ports

This guide explains how to allow port 3737 for both TCP and UDP traffic, for Inbound and Outbound directions, using Windows Defender Firewall.

Requirements

  • You must run the commands in Command Prompt (CMD) or PowerShell as Administrator.

1) Open TCP 3737 (Inbound)

netsh advfirewall firewall add rule name="FiveMStats - TCP 3737 - In" dir=in action=allow protocol=TCP localport=3737

2) Open TCP 3737 (Outbound)

netsh advfirewall firewall add rule name="FiveMStats - TCP 3737 - Out" dir=out action=allow protocol=TCP localport=3737

3) Open UDP 3737 (Inbound)

netsh advfirewall firewall add rule name="FiveMStats - UDP 3737 - In" dir=in action=allow protocol=UDP localport=3737

4) Open UDP 3737 (Outbound)

netsh advfirewall firewall add rule name="FiveMStats - UDP 3737 - Out" dir=out action=allow protocol=UDP localport=3737

Verify Rules

To confirm the rules exist:

Remove Rules (Rollback)

If you need to delete the rules later:

Notes

  • These commands configure Windows Defender Firewall only.

  • If you are using a hosting provider, VPS panel, or additional DDoS/firewall layer, you may also need to allow port 3737 there.

  • Ensure the application/service is actually listening on port 3737 on the server.


Aşağıda FiveMStats script kurulumu için İngilizce, adım adım ve dokümantasyona hazır bir kurulum rehberi bulacaksın. Attığın görsele göre Add New Server adımını detaylandırdım.


FiveMStats Script Installation Guide

This guide explains how to install and connect the tgiann-fivem-stats-script to fivemstats.net.


1. Download the Script

  • Download tgiann-fivem-stats-script from your CFX Portal account.

  • Make sure you have the latest version.


2. Install the Script

  1. Upload the script to your server’s resources folder: resources/tgiann-fivem-stats-script

  2. Add the script to your server.cfg: ensure tgiann-fivem-stats-script

  3. Restart your server (or ensure the resource).


3. Configure the Secret Key (IMPORTANT)

  1. Open the script’s config file: tgiann-fivem-stats-script/config.lua

  2. Change the following value:

Security Notice

  • This key is used to authenticate your server with FiveMStats

  • Never share this key with anyone

  • Do NOT commit this key to public repositories

  • If the key is leaked, regenerate it immediately and update both:

    • The script config

    • The FiveMStats dashboard


4. Add Your Server on FiveMStats

  1. If you are not logged in, sign in with Discord.

  2. Click the “Add Server” button.


5. Fill in Server Details

You will see the Add New Server form.

Fields Explanation

  • Server Name A display name for your FiveM server

  • Server IP Address Enter your server IP and FiveM port

  • Secret Key Paste the same Secret Key you configured in config.lua

  1. Click Add Server


Troubleshooting

  • Server not connecting?

    • Check firewall / DDoS protection

    • Verify the Secret Key matches exactly

    • Ensure the resource is started

    • Check server console for errors

Last updated