Skip to content

Конфігурація

Configuration

Configuration lives in two places:

  1. The in-game Settings screen — most day-to-day options, saved to data/settings.json.
  2. config.lua — the defaults, the sit-engine tuning, and the notify system.

The in-game Settings screen overrides the matching config.lua defaults. The notify system is the exception — it lives in config.lua only and is never changed from the UI.

In-game Settings fields

Everything below is entered and saved from the UI. Defaults shown are the shipped data/settings.json values.

Field Key Default Notes
Access adminOnly false (Everyone) true = only ACE-allowed admins may open/edit
Open command command chaircreator Opens the creator (/chaircreator)
Keybind keybind F7 Binds after a resource restart; empty for none
Notify system notify qb ox_lib | qb | customconfig.lua only, shown for reference
Default interaction defaults.interaction ox_target New sits start with this interaction
Default prompt defaults.prompt Otur TextUI / marker label
Default prompt key defaults.promptKey E TextUI / marker key
Default anim mode defaults.animMode library library | player | custom
Default scope defaults.scope coord coord (this spot) | model (every prop)
Discord webhook webhook (empty) Optional; logs create/update/delete/settings events

Behaviour toggles (defaults for new sits)

Toggle Key Default Effect
Block when occupied behaviour.occupiedBlocking true A taken seat can't be used by someone else
Teleport out on exit behaviour.exitTeleport false Move the ped clear when they get up
Freeze while seated behaviour.freezeWhileSat false Lock the ped in place while sat

The editor also has a Discord webhook field under Systems. When set, the server posts an embed to it on every sit created / updated / deleted and on settings changes. The URL is stored server-side only and never sent back to clients.

Key config.lua options

Option Default Purpose
Config.Locale 'en' Interface / notification language
Config.Target 'ox_target' Third-eye: 'ox_target' | 'qb-target' | 'qtarget' | false
Config.MaxInteractionDist 2.0 Max third-eye / interaction distance
Config.MaxPromptDist 1.8 How close before a prompt shows
Config.MaxTilt 20.0 Max prop tilt before it's unsittable
Config.UsePrompts false Key-prompt system (uses extra resources)
Config.ShowHelpText true Show "get up" help text while seated
Config.AddChatSuggestions true Register chat suggestions
Config.DefaultKeybinds see file Get-up / sit-down default keys
Config.Creator.Notify 'ox_lib' Notify system: ox_lib | qb | custom
Config.Creator.SeatCamera enabled Scripted orbit camera while seated

Config.SitTypes and Config.LayTypes are the sit-engine pose definitions — don't touch these unless you know what you're doing.