Functions/DarkRP/Shared/addToCategory
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: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Shared/addToCategory]DarkRP.addToCategory[/url][/b] |
Function parameters[edit]
- item (table)
- kind (string)
- cat (string) (optional)
Table of the custom entity/job/etc.
The kind of the category (e.g. 'jobs' for job stuff).
The name of the category. Note that the category must exist. Defaults to 'Other'.
Function return values[edit]
This function does not return any value.