Jump to content

How ?


Arsilex

Recommended Posts

getResources 
getResourceInfo 
triggerClientEvent 
addEvent 
addEventHandler 
guiGridListAddRow 
guiGridListSetItemText 

Get all resources with getResources, cycle through all of them and use getResourceInfo to check if "type" attribute is "map" and "gamemodes" attribute is "race", and if they are, then also get "name" attribute and put it into a table. So you have a table with the names of all race maps. Make an event client-side and trigger it from server with map names list as an argument. On the client side, loop through that table and use guiGridListAddRow and guiGridListSetItemText to add the map names to the grid list.

Link to comment

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