[Help] Gang Relationship Script

Look at this and try it.

Citizen.CreateThread(function()
  while ESX == nil do
    TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
    Citizen.Wait(0)
  end

  while ESX.GetPlayerData().job == nil do
		Citizen.Wait(10)
  end

while true do
  Wait(500)
  PlayerData = ESX.GetPlayerData()
  if PlayerData.job.name == "ballas" then
	SetRelationshipBetweenGroups(1, GetHashKey("AMBIENT_GANG_BALLAS"), GetHashKey("PLAYER"))
	SetRelationshipBetweenGroups(1, GetHashKey("PLAYER"), GetHashKey("AMBIENT_GANG_BALLAS"))
  end
end
end)
2 Likes

I mean use whatever works for you. The one I posted happened to work for me.

yeah it work, just need to do the vagos and lostmc now :smiley:

1 Like

VAGOS = MEXICAN and LOSTMC = LOST

yeah I know, you’re like 3 month later on that topic… XD

I figured, I just found it out myself. Thought I’d share just incase lol

If WCKD posted then I will as well ^^
MARABUNTE = ARMENIAN
SALVA = MARABUNTA
WEICHENG = TRIADS + KKANGPAE
MEXICAN = VAGOS + MADRAZO

hi bro. can you send me gang relationship for esx ? please

I’m getting this Error and it somehow resets itself after sometime or a restart so I would have to first refresh and restart the resource again so that it works, any ideas?

Bumping this thread, what about using this with HEX ID?

where can i find the files for this scrip

Ballas will only de friend me if i spawn as families. not as anything else. is this right?
example.
change to balla > Ballas friendly .

change to MP ped > ballas still friendly.
change to familes > ballas no friend