background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
Categorias

Onset Admin and Package Setup

onset admin packages lua 0 consideraram isto útil
Disponível em: ESPAÑOL

This guide covers admin setup, console commands, the Lua package system, player and vehicle management, and database configuration for your Onset dedicated server on Legion Hosting. For initial server setup, see our Onset Server Setup Guide.

Admin Setup

Onset handles admin privileges through Lua scripting within your game mode packages. Unlike many games with built-in admin systems, Onset relies on your packages to define who has elevated permissions and what those permissions allow.

Most community game mode packages include an admin system. Typically, admin setup involves:

  1. Open the File Manager in GPanel
  2. Navigate to your package directory (e.g., packages/mygamemode/)
  3. Locate the admin configuration file (often config.lua, admins.lua, or a JSON config file)
  4. Add your Steam64 ID or in-game player ID to the admin list
  5. Save the file and restart the server
-- Example: config.lua admin setup
Config = {}
Config.Admins = {
    "76561198000000001",  -- Your Steam64 ID
    "76561198000000002"   -- Another admin
}
Finding a Steam64 ID: Visit steamid.io and enter a Steam profile URL to find the Steam64 ID.

Server Console Commands

Onset provides built-in server console commands that work regardless of installed packages. These can be entered directly in the GPanel console.

Command Description
help Lists all available console commands
stop Gracefully stops the server
restart Restarts the server
players Lists all connected players with their IDs
kick <playerid> [reason] Kicks a player from the server
ban <playerid> [reason] Bans a player from the server
unban <steamid> Removes a ban for the specified Steam ID
package reload <name> Reloads a package without restarting the server
package start <name> Starts a package that is not currently running
package stop <name> Stops a running package
package list Lists all loaded packages and their status

Package System (Lua Scripting)

Onset's gameplay is defined entirely by packages written in Lua. Each package is a folder inside the packages/ directory containing Lua scripts that run on the server and/or client side.

Package Structure

packages/
    mygamemode/
        package.json          <-- Package metadata and file declarations
        server/
            main.lua          <-- Server-side entry point
            commands.lua      <-- Custom command handlers
        client/
            main.lua          <-- Client-side entry point
            ui.lua            <-- User interface scripts

Installing Packages

  1. Download the package from the Onset community forums or GitHub repositories
  2. Connect to your server via SFTP
  3. Upload the package folder to the packages/ directory
  4. Open server_config.json in the File Manager
  5. Add the package folder name to the "packages" array
  6. Restart the server through GPanel
// server_config.json - Adding packages
{
    "packages": [
        "roleplay",
        "admintools",
        "vehicleshop"
    ]
}
Load Order: Packages in the "packages" array are loaded in the order they are listed. If one package depends on another, make sure the dependency is listed first.

Player Management

Beyond the built-in kick and ban commands, most game mode packages provide additional player management features. Common package-provided commands include:

Command (Package-Dependent) Description
/tp <player> Teleport to another player
/bring <player> Teleport another player to your location
/goto <x> <y> <z> Teleport to specific world coordinates
/setadmin <player> <level> Set a player's admin level (if the package supports tiers)
/announce <message> Send a server-wide announcement

Vehicle Management

Onset features a built-in vehicle system that packages can extend. Admins commonly need to manage spawned vehicles to prevent server clutter.

  • Vehicle spawning — Most RP packages let admins spawn vehicles via commands like /car <model>
  • Vehicle cleanup — Some packages include auto-despawn for abandoned vehicles or admin commands like /destroyvehicles
  • Vehicle limits — Configure maximum vehicles per player to prevent lag from too many spawned entities

Database (MariaDB)

Onset supports MariaDB/MySQL database connections for persistent data storage. This is used by roleplay and other game mode packages to store player data, inventories, properties, and more.

Database configuration is handled within your package's configuration files. A typical setup:

-- Database configuration in package config
Database = {
    host = "127.0.0.1",
    port = 3306,
    username = "onset_user",
    password = "your_password",
    database = "onset_gamemode"
}
Database Access: Your database credentials can be found in GPanel under the Databases tab. If you need a new database created, submit a support ticket and our team will set it up for you.

Troubleshooting

Issue Solution
Server starts but no gameplay available You need at least one game mode package installed and listed in server_config.json. A bare Onset server has no built-in gameplay.
Package fails to load Check the GPanel console for Lua error messages. Common causes: missing package.json, syntax errors in Lua files, or missing dependencies.
Database connection errors Verify your database credentials, ensure the database exists, and check that the MariaDB service is running. Test connectivity from the console logs.
Server not visible in browser Ensure "visible": true is set in server_config.json. Also verify port 7776 (TCP) is accessible for the query port.
High latency or lag Lower the streamdistance value, reduce tickrate if CPU usage is high, and check for inefficient Lua scripts in your packages.

Related Articles

Need Help?

If you are experiencing issues with your Onset server or need further assistance, our support team is here to help. Submit a support ticket and we will get back to you as soon as possible.


Este artigo foi útil?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.