CityRP Documentation Repository

cityrp.table

Generic Table functions.

Functions

Sharedcityrp.table.HasValue(tab, value) → booleanSource ☍

Check if a table has a value in itself, or any child tables. This function is O(N^x) where X is the depth of nested tables. Do not use if it can be avoided.

Parameters

  • tabtableThe table to search.
  • valueanyThe value to check for.

Returns

  1. booleanWhether the value is in the table.

Tables

Sharedcityrp.tableSource ☍