Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Guardian9978 opened this issue Aug 7, 2024 · 0 comments
Open
Labels
needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@Guardian9978
Copy link

Guardian9978 commented Aug 7, 2024

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" }
		}
	}
}
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Aug 7, 2024
@Guardian9978 Guardian9978 changed the title Trying to give a custom ped model to a specifc player Trying to give acess to a custom ped model to a specifc player Aug 7, 2024
@Guardian9978 Guardian9978 changed the title Trying to give acess to a custom ped model to a specifc player Trying to give access to a custom ped model to a specifc player Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

1 participant