From DarkRP
Jump to navigation Jump to search
Function name DarkRP.getJobByCommand(string command)
Get the job table and number from the command of the job.
Returns: table tbl, number jobindex
Part of Library: DarkRP
Realm: NewerShared.png
BBCode Link: [b][url=]DarkRP.getJobByCommand[/url][/b]

Function parameters[edit]

  1. command (string)
  2. The command of the job, without preceding slash (e.g. 'medic' for medic)

Function return values[edit]

  1. tbl (table)
  2. A table containing all information about the job.

  3. jobindex (number)
  4. The index of the job (for 'medic' it's the value of TEAM_MEDIC).