CS_IMMIGRATION

An immigration system managing new players entering the server, handling bans, visas, teleport points, safezones, and officer interactions.

Get the script

Watch the preview


Installation

ensure cs_einreise

Configuration

Config.lua

This configuration file sets up various parameters for the immigration (Einreise) system.

General Settings
  • banTime: Minutes a player is banned when failing immigration. Example: 4.

  • spawnPoint: Default spawn location.

vector3(-1123.0586, -2819.7053, 28.087)
  • einreisetp: Teleport position when using /rein.

  • einreisetpOUT: Teleport position when leaving immigration via /raus2.

  • showEinreiseLog: true / false – Logs actions of immigration officers.

  • showIdsWennEinreisebeamter: true / false – Show IDs above heads when immigration officer uses commands.

  • idDistanz: Distance for visible IDs. Example: 50.

  • enableSafezone: true / false – Enables a safezone around the airport.

  • multichar: true / false – Enable multicharacter support.

  • callCooldown: Cooldown in seconds for calling an officer. Example: 180.

  • callCoords: Location where players can request an officer.

Permissions
  • allowedGroups: Groups that can manage immigration. Example:

{"superadmin", "admin", "mod", "dev", "support", "supporter", "guide"}
Officer Outfit
  • Custom outfit for immigration officers (male/female).

  • Supports torso, pants, shoes, helmet, accessories, etc.

Notifications
  • Notification(msg, type, length) – Uses okokNotify by default (can be swapped to cs_hud or your Custom Notification Script

Webhooks

webhook.lua / config.lua

Webhook logging for immigration events:

  • neuerSpieler – Logs when a new player enters immigration.

  • einreise – Logs when a player passes immigration.

  • ausreise – Logs when a player fails immigration.

  • rein – Logs teleport into immigration.

  • raus – Logs teleport out of immigration.

Configure your webhook link:

Config.webhookLink = "https://discord.com/api/webhooks/..."

Tip: Leave the URL as an empty string "" if you do not want the webhook to trigger for that event.

Locales

Supports German with preconfigured messages and Discord log texts.

Examples:

  • New Player:

Ein neuer Spieler namens %s mit der ID %s hat die Einreise betreten.
  • Passed Immigration:

Du wurdest vom Einreisebeamten %s (%s) eingereist.
  • Failed Immigration:

=======================
Du hast die Einreise nicht bestanden.
Ausführender Einreisebeamter: %s
Zeit bis zum erneuten Versuch: %s Minuten
=======================
Commands
  • /rein → Teleports officer into immigration.

  • /raus → Teleports officer out of immigration (back to last position).

  • /raus2 → Teleports officer out of immigration (to front of airport).

  • /einreise [playerID] → Marks a player as immigrated (entered).

  • /ausreise [playerID] → Bans a player for configured minutes.

  • /remeinreise [playerID] → Removes immigration status, forcing the player to immigrate again.

  • /giveskin [playerID] → Opens esx_skin menu for a player.

Features
  • Immigration checkpoint system for new players.

  • Ban system for failed immigration.

  • Safezone at the airport.

  • Officer call system with cooldown.

  • Officer outfit customization.

  • Discord webhook logging for all important actions.

  • ID system with distance control for officers.


Support

If you have any further questions, open a ticket on our discord server: discord.gg/core-services

Last updated

Was this helpful?