Skip to content

Trying to give access to a custom ped model to a specifc player #450

Description

@Guardian9978

Is there any easier way to give access to a custom ped model to a specific player outside of using aces?

I only want to give access to the specific model but not admin commands and I am failing to wrap my head around making an ace for just that. from my testing using the below as a template I am unable to see the custom_model_1 since I am in group_a

NOTE: I am only going to show lines I think are relevant to what I am trying to do.

[qb]/qb-core/config.lua:

QBConfig.Server.Permissions = { 'god', 'admin', 'mod', 'group_a', 'group_b' } -- Add as many groups as you want here after creating them in your server.cfg

server.cfg: (fivem:#### is just an example. I use the correct fivem ids)

# allow all commands
add_ace group.admin command allow
add_ace group.group_a command allow
add_ace group.group_b command allow

# Allow group_a access to admin permissions
add_principal group.group_a group.admin

# Allow group_b access to basic default permissions
add_principal group.group_b builtin.everyone

# is an admin in group_a
add_principal identifier.fivem:#### group.group_a

# is a normal player in group_b
add_principal identifier.fivem:#### group.group_b

illenium-appearance/shared/peds.lua:

Config.Peds = {
	pedConfig = {
		{
			peds = { "mp_m_freemode_01", "mp_f_freemode_01" }
		},
		{
			peds = { "custom_model_1" },
			aces = { "group_a" }
		},
		{
			peds = { "custom_model_2" },
			aces = { "group_b" }
		}
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions