Skip to content

ESX.TableContainsValue

1
ESX.TableContainsValue(table, value)

This function searches a table and returns if the parsed value is found within.

ESX.TableContainsValue Example

1
2
3
4
5
local tableContent = { 'dude', 'esx' }

local foundValue = ESX.TableContainsValue(tableContent, 'esx') -- returns boolean

print(foundValue) -- returns true