Utility Library
Common operations and helper functions for the Lilia framework.
Overview
The utility library provides comprehensive functionality for common operations and helper functions used throughout the Lilia framework. It contains a wide range of utilities for player management, string processing, entity handling, UI operations, and general purpose calculations. The library is divided into server-side functions for game logic and data management, and client-side functions for user interface, visual effects, and player interaction. These utilities simplify complex operations, provide consistent behavior across the framework, and offer reusable components for modules and plugins. The library handles everything from player identification and spatial queries to advanced UI animations and text processing, ensuring robust and efficient operations across both server and client environments.
lia.util.findPlayersInBox
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.getBySteamID
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.findPlayersInSphere
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.findPlayer
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.findPlayerItems
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.findPlayerItemsByClass
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.findPlayerEntities
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.stringMatches
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.getAdmins
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.findPlayerBySteamID64
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.findPlayerBySteamID
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.canFit
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.playerInRadius
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.formatStringNamed
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.getMaterial
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.findFaction
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.generateRandomName
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.sendTableUI
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.findEmptySpace
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.animateAppearance
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.clampMenuPosition
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.drawGradient
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.wrapText
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.drawBlur
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.drawBlackBlur
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.drawBlurAt
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.requestEntityInformation
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.createTableUI
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.openOptionsMenu
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.drawEntText
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end
lia.util.drawLookText
đ Purpose
Find all players within a specified 3D box area
â° When Called
When you need to find players in a specific rectangular area for operations like area-of-effect abilities or zone management
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
mins |
Vector | The minimum corner coordinates of the box |
maxs |
Vector | The maximum corner coordinates of the box |
âŠī¸ Returns
- Table of player entities found within the box area
đ Realm
Shared
đĄ Example Usage
đ° Low Complexity
-- Simple: Find players in a small area around a position
local players = lia.util.findPlayersInBox(Vector(-100, -100, -50), Vector(100, 100, 50))
đ Medium Complexity
-- Medium: Find players in a zone and notify them
local zonePlayers = lia.util.findPlayersInBox(zoneMin, zoneMax)
for _, player in ipairs(zonePlayers) do
player:notify("You are in the danger zone!")
end
âī¸ High Complexity
-- High: Create a dynamic zone system with multiple areas
local zones = {
{mins = Vector(0, 0, 0), maxs = Vector(100, 100, 100), name = "Safe Zone" },
{mins = Vector(200, 200, 0), maxs = Vector(300, 300, 100), name = "Combat Zone"}
}
for _, zone in ipairs(zones) do
local players = lia.util.findPlayersInBox(zone.mins, zone.maxs)
for _, player in ipairs(players) do
player:notify("Entered: " .. zone.name)
end
end