Qb-gangs not working

Hi, i am trying to setup qb-gangs but i get this error in the console when i type /setgang 1 (gang) 3

[ script:qb-core] SCRIPT ERROR: @qb-core/server/player.lua:214: attempt to index a nil value (field ‘grades’)
[ script:qb-core] > SetGang (@qb-core/server/player.lua:214)
[ script:qb-core] > callback (@qb-core/server/commands.lua:170)
[ script:qb-core] > handler (@qb-core/server/events.lua:31)
[ script:qb-core] > routeMessage (@chat/sv_chat.lua:187)
[ script:qb-core] > handler (@chat/sv_chat.lua:218)

Can anybody help me please ?

Hey :slightly_smiling_face:
I checked the QB code, it seems that you are using the right synthax for the command :

/setgang [id] [gangname] [grade]

But what seems weird to me, is that the name of your gang is ‘(gang)’. When I check the original Shared file for the gangs I can see names like : ‘ballas’, ‘triads’, ‘lostmc’
but nothing like what you typed.

Try the following command for example :

/setgang 1 lostmc 2

by (gang) i mean the name of the gang, lostmc etc. Finally i made it work, i could add different gangs but i can’t figure out how to add gang vehicles tho. There is a default script for that but it doesn’t work. And the /creategang command doesn’t work either.

import query , the sql file in the qb-core or the qb-gangs