Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

admin bypass for scene creation #8

@kaneit

Description

@kaneit

Hi There.

i've added
add_ace group.admin scene allow to server.cfg

i've then changed in fivem-scenes config
Config.AdminOnly = true
Config.AdminDeleteAll = true
Config.EnableKeybind = true

however with keybind enabled even when fivem-scenes is in admin only.
non-admins can still access the creation screen for scenes.

please could you suggest how to resolve this.

i have tried the following already
fivem-scenes/client/client.lua
Lines 82 - 92

    if Config.EnableKeybind and if Config.AdminOnly then
      lib.addKeybind({
        name = "Scenes",
        description = "Create/Delete scenes",
        defaultKey = Config.KeybindKey,
        onReleased = function(self)
          ToggleSceneLaser()
        end
      })
    end
end)

However this did not work. instead it disabled the menu from keybinds and the /scene command entirely. rather than IF both config.enablekeybind and config.adminonly are set to true. then proceed.

any help resolving this would be much appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions