Team Images
This documentation provides information on configuring team images for our FiveM script, which displays real-time sports odds along with team images. The script pulls images from a GitHub repository.
GitHub Repositoryβ
The script pulls team images from the following GitHub repository: sky-systems/sport_team_images.
Adding Missing Team Imagesβ
If the icons for your teams are missing, you can contribute by adding them to the repository. Follow these steps to add new team images:
-
Create a Pull Request: Fork the sport_team_images repository, add your images to the
teams/
folder in your fork, and create a pull request. -
Image Requirements:
- Format: PNG
- Size: Not too large, maximum 500x500 pixels
- Naming Convention: The image must be named exactly as the team name appears in the UI, but without spaces. For example:
- St. Louis Cardinals should be named
St.LouisCardinals.png
- St. Louis Cardinals should be named
-
Submission: After ensuring your image meets the requirements, submit a pull request with the new image.
Example Image Namingβ
Here are some examples of how team names should be formatted for the images:
- Team Name: St. Louis Cardinals
- Image File Name:
St.LouisCardinals.png
- Image File Name:
- Team Name: Bayern Munich
- Image File Name:
BayernMunich.png
- Image File Name:
- Team Name: New York Yankees
- Image File Name:
NewYorkYankees.png
- Image File Name:
Need Help?β
If you need assistance with adding team images, you can open a ticket on our Discord server. Our support team will guide you through the process.
Example Pull Requestβ
To add an image for the "St. Louis Cardinals":
- Fork the Repository: Click on the "Fork" button on the repository page.
- Clone the Repository: Clone your forked repository to your local machine.
git clone https://github.com/your-username/sport_team_images.git
- Add the Image: Save the image as
St.LouisCardinals.png
and place it in theteams/
folder. - Commit and Push: Commit your changes and push them to your forked repository.
git add teams/St.LouisCardinals.png
git commit -m "Add image for St. Louis Cardinals"
git push origin main - Create Pull Request: Go to the original repository and create a pull request from your fork.
Conclusionβ
By following these guidelines, you can ensure that your team images are correctly added and displayed in the FiveM script. If you encounter any issues or need further assistance, don't hesitate to reach out to our support team on Discord.
For any questions or support, please contact our support team via our Discord server.