Skip to content

Commit

Permalink
fix: Admin Permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
SamShanks1 committed Sep 1, 2023
1 parent 0a68c88 commit a9db1bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Config.MaxScenes = 999 --max scenes that can be placed
Config.Radial = false --add scene management to ox_lib radial menu | AdminOnly must be false
Config.AdminOnly = false --only admins can create scenes
Config.AdminDeleteAll = true --admins can delete other peoples scenes
Config.AceGroup = 'group.admin' --if AdminOnly or AdminDeleteAll is set to true the ace group the command will be locked too
Config.AceGroup = 'admin' --if AdminOnly or AdminDeleteAll is set to true the ace group the command will be locked too
Config.EnableKeybind = false --allow scenes menu to be opened via keybind
Config.KeybindKey = "K" --if EnableKeybind is set to true the key to use, if you change this it will only change for new players
Config.MaxDuration = 50 --max duration the scene can be set in hours
Expand Down
3 changes: 2 additions & 1 deletion server/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ lib.versionCheck('SamShanks1/fivem-scenes')

local scenes = {}

local restrictedGroup = Config.AdminOnly and Config.AceGroup
local group = ('group.%s'):format(Config.AceGroup)
local restrictedGroup = Config.AdminOnly and group

lib.addCommand('scene', {
help = 'Create/Delete a scene',
Expand Down

0 comments on commit a9db1bd

Please sign in to comment.