An open API service indexing awesome lists of open source software.

https://github.com/unknown-gd/map-changer-api


https://github.com/unknown-gd/map-changer-api

Last synced: 5 months ago
JSON representation

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).