-
Notifications
You must be signed in to change notification settings - Fork 0
hasInterface
ffredyk edited this page Jul 23, 2026
·
1 revision
Multiplayer
Nular — hasInterface.
hasInterface
Returns true if the current host has a player UI (graphical interface). Returns false for dedicated/headless servers. The host sets this via HasInterface property.
Registered by DeclareMultiplayerCommands(). NOT called automatically — host must invoke explicitly.
Reads the host's HasInterface flag. Controls whether UI-related code should execute.
if (hasInterface) then {
// Initialize UI, HUD, menus
createHUD();
showIntro();
};
if (!hasInterface) then {
// Headless — do server work only
startHeadlessAI();
};ReadOnly — pure query.
- isDedicated — dedicated server check
- isServer — server check
- player — player object reference
- Getting Started
- Language Guide
- Type System
- Control Flow
- Functions & Code
- Strings & Text
- Arrays & Collections
- Concurrency
- Promise System
- Thread Safety
- Host API & Embedding
- CLI Tool
- Bytecode Reference
- Multiplayer
- Syntax Sugar
- Optimization Guide
- Benchmarks
- count
- select
- pushBack
- append
- deleteAt
- deleteRange
- resize
- reverse
- sort
- find
- in
- forEach
- freeze
- thaw
- isFrozen
- currentScheduler
- clientOwner
- allSchedulers
- schedulerName
- schedulerExists
- schedulerBudget
- setSchedulerBudget
- fiberCount
- readyFiberCount
- waitingFiberCount
- schedulerLoad
- sendTo