Functions/DarkRP/Shared/addToCategory

From Official DarkRP Wiki
Jump to navigation Jump to search
Function
Function name DarkRP.addToCategory(table item, string kind, string cat)
Description:
Create a category for the F4 menu.
Returns: nil
Part of Library: DarkRP
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Shared/addToCategory]DarkRP.addToCategory[/url][/b]

Function parameters

  1. item (table)
  2. Table of the custom entity/job/etc.

  3. kind (string)
  4. The kind of the category (e.g. 'jobs' for job stuff).

  5. cat (string) (optional)
  6. The name of the category. Note that the category must exist. Defaults to 'Other'.


Function return values

This function does not return any value.