Skip to content

Scullyy/scully_perms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scully Perms

image

A lightweight permissions system for FiveM servers to manage role-based permissions efficiently.

Support

Join our Discord server for help, updates, and community discussions.

Features

  • Easy permission checking
  • Supports single and multiple permission checks
  • Integrates seamlessly with FiveM's ACE system
  • Optional discord membership requirement with adaptive card
  • Optional age verification

Installation

  1. Download and add the scully_perms resource to your server's resources folder.
  2. Add the following lines to your server.cfg:
ensure scully_perms

add_ace resource.scully_perms command.add_principal allow
add_ace resource.scully_perms command.remove_principal allow
  1. Restart your server.

Preview

image

Usage

You can verify if a player has specific permissions using the provided exports. These can be called from other resources.

Single Permission Check

Check if a player has a single permission.

if exports.scully_perms:hasPermission(source, 'permission') then
    print('Has permissions!')
else
    print('Does not have permissions!')
end

Multiple Permission Check

Check if a player has all or some of the specified permissions:

if exports.scully_perms:hasPermission(source, {'permission1', 'permission2', 'permission3'}) then
    print('Has permissions!')
else
    print('Does not have permissions!')
end

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

⭐ If you found this useful, consider starring the repo! Contributions welcome via pull requests. ⭐

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages