βš™οΈConfiguration

βš™οΈ Configuration Guide

SceneKits is easy to configure through two main files located in the config/ folder.


πŸ“ Configuration Files

File
Purpose

config/kits.lua

Commands, permissions, limits, and scene kits

config/translations.lua

UI text and notifications (for localization)


🎯 Basic Configuration (config/kits.lua)

Commands

Change command names to fit your server:

commands = {
  spawn = 'sk_spawn',        -- Open scene menu
  clear = 'sk_clear',        -- Delete all your scenes
  purge = 'sk_purge',        -- Purge nearby props
  stats = 'sk_stats',        -- Server statistics (admin)
  debug = 'sk_debug',        -- Debug tools (admin)
},

Permissions

Define which jobs can access scene categories:

Match your framework's job names:

  • ESX: Check your database jobs table

  • QBCore: Check qb-core/shared/jobs.lua

  • QBox: Check qbx_core/shared/jobs.lua


Server Limits

Control performance and player usage:

Recommended by server size:

Server Size
maxActivePerPlayer
maxGlobalScenes

Small (32)

3-5

100-150

Medium (64-128)

4-6

200-300

Large (128-256)

3-5

300


πŸ’» Custom Framework -Standalone

SceneKits supports custom frameworks and standalone setups through the GetPlayerJob function.

For custom frameworks, ACE permissions, or standalone setups, edit the GetPlayerJob function in your config:


🎨 Creating Custom Scene Kits

Basic Kit Structure

Example: Simple Checkpoint

Tips:

  • Keep prop count under 15 for best performance

  • Use realistic spacing between objects

  • Test in-game before deploying

  • Find prop names using CodeWalker or online prop lists


🌍 Localization (config/translations.lua)

Change any text displayed in the UI:

Example (Spanish):


πŸ” Admin Permissions

Admins need proper ACE permissions to access admin tools. This is configured in your server.cfg:


βœ… Testing Your Configuration

After making changes:

  1. Restart the resource:

  1. Check console for any errors

  2. Test in-game:

    • Open menu with /sk_spawn (or your command)

    • Spawn a scene to verify permissions

    • Check if limits work correctly

  3. Monitor performance:

    • Use /sk_stats to view active scenes

    • Adjust limits if needed


πŸ†˜ Common Issues

Problem
Solution

"No permission for this kit"

Job names don't match your framework

Props not spawning

Invalid prop models for your server

Kit doesn't appear

Wrong allow category or syntax error

Command not working

Check spelling or try different command name


πŸ’Ύ Backup Reminder

Always backup your config files before making major changes:


Last updated