Categories

In av_racing/config/_config.lua line 37 you will find a table named Config.TracksCategories.

  • This is a list of available categories that players will be able to use to filter tracks, create events and register new tracks.

  • Every category have a canUse function that needs to return true/false, if true means the player will be able to see all events, tracks and/or create new ones with this category type, if is false the player won't be able to see any event/track using it.

  • The existing example restricts the category 1, 2 and 3 from police players, if a player have the "police" job if will hide the categories, the 4th category is only displayed if the player is a cop.

  • This is how a player will see the Tracks tab if is not a cop:

  • And this is how a cop will see the App:

Last updated