ax.util¶
Source: gamemode/framework/util/util_find.lua
Utility helpers used across the Parallax framework (printing, file handling, text utilities, etc.).
Section: find_utilities
Documented functions: 4
Functions¶
ax.util:FindCharacter(identifier)ax.util:FindPlayer(identifier)ax.util:FindString(str, find, caseSensitive, startPos, usePatterns)ax.util:FindText(txt, find)
ax.util:FindCharacter(identifier)¶
Find a character by ID or name (case-insensitive, partial match).
Parameters
| Name | Type | Description |
|---|---|---|
identifier |
number\|string |
Character ID or name to search for |
Returns
ax.character.meta|nil: The found character or nil
Usage
ax.util:FindPlayer(identifier)¶
Find a player by SteamID, SteamID64, name, entity or numeric index.
Parameters
| Name | Type | Description |
|---|---|---|
identifier |
number\|string\|Entity\|table |
Player identifier or list of identifiers |
Returns
Player|NULL: The found player entity or NULL
Usage
ax.util:FindString(str, find, caseSensitive, startPos, usePatterns)¶
Utility helpers used across the Parallax framework (printing, file handling, text utilities, etc.). User and character finder utilities. Find a specific piece of text within a larger body of text (case-insensitive).
Parameters
| Name | Type | Description |
|---|---|---|
str |
string |
The string to search in |
find |
string |
The substring to search for |
Returns
boolean: True if substring exists in string
Usage
ax.util:FindText(txt, find)¶
Search each word in a text for a substring (case-insensitive).
Parameters
| Name | Type | Description |
|---|---|---|
txt |
string |
The text to search |
find |
string |
The substring to search for across words |
Returns
boolean: True when any word in txt contains find
Usage