This is a simple Flask web application that provides a web overlay to display server and player information for an ERLC (Emergency Response: Liberty County) private server. It uses the policeroleplay.community API.
- Displays general server information.
- Shows player counts for each team (Civilian, Police, Sheriff, Fire, DOT).
- Provides a simple and clean HTML template to visualize the data.
-
Clone the repository:
git clone https://github.com/your-username/ERLC-Overlay.git cd ERLC-Overlay
-
Install dependencies:
pip install -r requirements.txt
-
Set up your API Key:
- Rename the
.env.example
file to.env
. - Open the
.env
file and add your API key from the policeroleplay.community website:API_KEY="your_api_key_here"
- Rename the
-
Configure OBS:
- In OBS Studio, add a new "Browser" source.
- Set the URL to
http://localhost:8000
. - Adjust the width and height as needed.
To start the overlay, simply run the following command in the project directory:
python main.py
The application will then be accessible at http://localhost:8000
, and the OBS Browser source will become active.