Jump to content

Map list


John_Scott

Recommended Posts

Posted

Hi,

I would like to create a map list to my Race server, so when the player press a button, a GUI GridList opened, and in the list the player can see the all maps in the server.

How i can do this? How i can write the map names to the GridList?

Thanks for help!

Posted

You can use: maps = exports:mapmanager.getMapsCompatibleWithGamemode() to get the list of maps.

Then you do a loop through the maps table and add them to a gridlist within a GUI :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...