Agency-Sit Configuration
Advanced sit script with automatic chair detection that finds sittable props in the game world and positions players.

01Configuration
Quick Installation · config.lua · Agency-Sit
Config = {}
-- =============================================
-- AGENCY-NOTIFY INTEGRATION
-- =============================================
-- Official Agency-Notify resource for beautiful notifications
-- Get it here: https://agency-script.tebex.io/package/6937769
-- Discord Support: https://discord.gg/zbG53tTUXR
Config.UseAgencyNotify = true
Config.UseOxTargetIfAvailable = true
Config.InteractKey = 38 -- E
Config.InteractDistance = 1.8
Config.DrawDistance = 8.0
Config.ScanRadius = 25.0
Config.ScanIntervalMs = 1500
Config.Debug = false
Config.BackrestProbeDistance = 0.75
Config.BackrestProbeHeight = 0.55
Config.BackrestGap = 0.42
Config.SeatAdjustOffset = vector3(0.0, 0.0, 0.0)
Config.SeatAdjustHeading = 0.0
Config.StandAnimDict = 'anim@amb@prop_human_seat_chair@male@generic@exit'
Config.StandAnimName = 'exit'
Config.StandAnimDurationMs = 1100
Config.DefaultHeadingOffset = 180.0
Config.SitScenario = 'PROP_HUMAN_SEAT_BENCH'
Config.SittableModels = {
-- Add chair/bench prop model names here.
'prop_bench_01a',
'prop_bench_01b',
'prop_bench_01c',
'prop_bench_02',
'prop_bench_03',
'prop_bench_04',
'prop_chair_01a',
'prop_chair_01b',
'prop_chair_02',
'prop_chair_03',
'prop_chair_04a',
'prop_chair_04b',
}
Config.ModelOffsets = {
}
+Good to know
The configuration file for Agency-Sit allows you to adjust how the script detects sittable objects, integrates with other resources, and customizes player interaction. Before making changes, ensure the resource is restarted for new settings to take effect. This page explains the configurable options and integration points available in the config file for Agency-Sit.
- Chair detection settings
- You can define which props are recognized as sittable by adjusting the relevant entries in the config file. This enables you to add or remove models based on your server’s needs, ensuring only appropriate objects are available for sitting.
- Integration options
- Agency-Sit offers optional support for ox_target and Agency-Notify. Enable or disable these integrations in the config file to control whether players interact with sittable objects using ox_target or receive notifications through Agency-Notify.
- Restart after changes
- Any changes you make to the configuration require a resource restart to take effect. Add or modify settings as needed, then restart Agency-Sit using the ensure Agency-Sit command in your server.cfg or through your console.
?Frequently asked questions
Do I need to install ox_target or Agency-Notify for Agency-Sit to work?
No, both ox_target and Agency-Notify are optional dependencies. Agency-Sit will function without them, but enabling these integrations in the config file allows for enhanced interaction and notification features if you have those resources installed.
What should I do if new props are not recognized for sitting?
Check the config file and ensure the models you want to use are correctly listed under the sittable props section. After updating the config, restart Agency-Sit so the changes take effect and the new props are detected.
How do I enable or disable ox_target or Agency-Notify integration?
Adjust the relevant settings for ox_target and Agency-Notify in the config file. Set them according to your preferences, and then restart Agency-Sit to apply the new integration settings.
Is it necessary to modify the config file for basic functionality?
No, Agency-Sit works out of the box with its default configuration. However, you can customize sittable props and integration options in the config file to better fit your server’s requirements.