[Release]Panel for set player group (vRP0.5 and vRPEX)

it’s work but you can’t select a group!

Hi CQ3_4K,
Please get new version o github.

The error described above occurred because aljaDi was sitting in a group that no longer existed in the settings of vrp / cfg / groups.lua

thank you so much brother <3

it’s working now

2 Likes

Is there a way i can remove hes role if it doesn’t exist anymore?

with the normal group remove or directly by the database

when adding secret roles as example “cop”, it removes the “user” group

1 Like

Hi Doc Weird.
I made a mistake in the script. I updated the script on github.

can you update the vrp0.5 version also? :angel:

1 Like

In vrp 0.5 I had removed the bug from the user group some time ago.
Is the error still for you?
See if line 38 of the server.lua if this code exists
if x ~ = "user" then

1 Like

i’m using the old one without it, gonna update thanks again!

1 Like

pra mim nao funfou, deu erro.

Provavelmente seu player está setado em um grupo que não existe mais.
Veja o grupo, coloque ele no groups.lua e veja se o erro persiste

Bro , can i make it open with prompt ?

for example : /add ( Without writing id here) i want to write the id in prompt


RegisterCommand(“add”, function(source, args)

local id = args[1]

if (id ~= nil) then

    TriggerServerEvent('vrp_escadmin:buscarGrupos', id)

end

end)

Yes u can.
U need change this function for server.lua, and on server u need write code that prompt id

I have set the server script with a admin permission and still can not open the menu, do i need to do something else? No errors appear in console and F8.
If someone nows what might me the problem?

Hello, sorry for the delay in replying.

Whenever this error happens, it means that the script does not find a group in its cfg / groups.lua
You can be marked as AdminTest for example and this group no longer exists in your vrp / cfg / groups.lua.

Try to see if this is it

Thank you so much, for me its works so perfect, as I am beginner in Fivem, so my question how I can change the only one who can use it the Founder and Co Founder the /setgroup … I know its easy but I didn’t find it as I am new person with scripts etc.

Thank you for the answer and sorry for my bad English .

Hi sagr.

If you want use this script for only Founder and Co Founder, you need search on your vrp/cfg/groups.lua this groups and add one permission. Exemple I create setgroup.permission for my admin group
image

Now I will go in vrp_escadmin/server/server.lua and change lines vRP.hasPermission, I add this new permission “setgroup.permission”

image

Sorry my english too

1 Like

Very cool release