Region Database
Usage: Use the search box to filter regions by ID or description. Click on a region ID to copy it to clipboard.
Incomplete Database: This region database is currently under development and does not contain all regions available in the game. More entries will be added in future updates.
Region ID | Description | Restricted Areas | Curfew Enabled |
---|---|---|---|
DOWNTOWN | Central downtown area | No | Yes |
WESTVILLE | Westville | No | Yes |
Example Usage
lua
-- Get the player's current region
local currentRegion = GetPlayerRegion()
Log("Player is in region: " .. currentRegion)
-- Check if the region has curfew
local isCurfewActive = IsRegionCurfewActive(currentRegion)
if isCurfewActive then
Log("Curfew is active in this region!")
-- Get curfew time range
local startTime, endTime = GetRegionCurfewTime(currentRegion)
Log("Curfew runs from " .. startTime .. " to " .. endTime)
-- Show notification to player
ShowNotification("Warning: Curfew is active from " .. startTime .. " to " .. endTime)
end
-- Check if player is in a specific region
if currentRegion == "DOWNTOWN" then
Log("Player is downtown")
-- Do region-specific things
local npcsInRegion = GetNPCsInRegion("DOWNTOWN")
Log("There are " .. #npcsInRegion .. " NPCs in downtown")
end