https://github.com/unknown-gd/map-changer-api
https://github.com/unknown-gd/map-changer-api
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/unknown-gd/map-changer-api
- Owner: unknown-gd
- License: mit
- Created: 2024-02-09T10:45:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-09T10:52:50.000Z (over 2 years ago)
- Last Synced: 2025-03-05T02:35:34.582Z (over 1 year ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Map Changer API
A small pack of functions for server-side lua that helps to change server map.
### Config
The addon has a configuration file where you can specify a blacklist of maps and a map to start the server with, which will be immediately replaced with a random map when the server starts.
### Functions
- game.ChangeMap( `string` mapName )
- `table` `number` game.GetMaps()
- `boolean` game.SelectRandomMap()
## Where is Lua code?
Written in [Yuescript](https://github.com/pigpigyyy/Yuescript), compiled Lua code can be found in [releases](https://github.com/PrikolMen/map-changer-api/releases) and [lua branch](https://github.com/PrikolMen/map-changer-api/tree/lua), or you can compile it yourself using compiled [Yuescript Compiler](https://github.com/pigpigyyy/Yuescript/releases/latest).