61nian/fs25-lua-api

API for FS25 Lua scripts

โ˜… 0Forks 0GitHub โ†—Compare

README

FS25 Lua API

This repository contains Lua scripts for Farming Simulator 25 (FS25), organized into folders. It serves as an API to access Lua scripts via raw GitHub URLs.


๐Ÿ“‚ Repository Structure

The repository is structured as follows:

fs25-lua-api/
โ”‚โ”€โ”€ gui/
โ”‚    โ”œโ”€โ”€ base/
โ”‚    โ”‚    โ”œโ”€โ”€ Gui.lua
โ”‚    โ”‚    โ”œโ”€โ”€ GuiOverlay.lua
โ”‚    โ”œโ”€โ”€ AnimalScreen.lua
โ”‚    โ”œโ”€โ”€ ConstructionScreen.lua
โ”‚โ”€โ”€ vehicles/
โ”‚    โ”œโ”€โ”€ engine.lua
โ”‚    โ”œโ”€โ”€ physics.lua
โ”‚โ”€โ”€ index.json

๐Ÿ”— How to Access Lua Scripts

All scripts are available as direct links via GitHub RAW URLs.


โš™๏ธ How to Use This API

1๏ธโƒฃ Fetch All Scripts

You can fetch all scripts using the index.json file:

https://raw.githubusercontent.com/MyGameSteamOfficial/fs25-lua-api/main/index.json

It provides a structured JSON output containing script names and their direct URLs.

2๏ธโƒฃ Fetch a Specific Script

To access a single Lua script, use:

https://raw.githubusercontent.com/MyGameSteamOfficial/fs25-lua-api/main/<folder>/<script>.lua

Example:

https://raw.githubusercontent.com/MyGameSteamOfficial/fs25-lua-api/main/gui/AnimalScreen.lua

๐Ÿš€ How to Update the API

If you add more scripts, update the index.json file by running:

python generate_index.py

Then push the changes to GitHub.


๐Ÿค Contributions

Want to improve this API? Feel free to contribute! Fork this repo and submit a pull request.


๐Ÿ“ข License

This repository is open-source. However, respect the Farming Simulator Modding Guidelines when using these scripts.


๐ŸŽฎ Created by MyGameSteamOfficial

Contributors

MyGameSteamOfficial

Issues