So im trying to figure out how to get it so when i set someones gang roles it shows in chat does anyone know how to do that if u could help that would be amazing
Hey
What script are you using for your gang system ? It all depends on that.
You find in that script the spot where the “set gang” append and you just use the event chat:addMessage
.
esx gangs
I can’t help based only on what you sent me.
I already guessed that the resource name was most likely esx_gangs.
When you say ‘esx gangs’, I see that it isn’t part of the ESX Legacy official realase and I’m guessing there’s multiple versions of this resource, so that doesn’t tell me anything.
I’m assuming that you don’t play around with code, so the easiest way to do that would be for you to send me the all ‘esx_gangs’ ressource and tell me exactly what you want. I’ll do it on my side before sending it back to you.
relentless-gangs.rar (416.8 KB)
Hey.
Just before the end of the command register handler, as @thibaultD said, you can just fire up the chat:addMessage
event.
See: Creating your first script in Lua - Cfx.re Docs