[help] Could you help me with this? why doesnt this work


#1

So I’m trying to make it so gangs don’t attack certain people

—gang attack toggle—
if myJob == Family then
local player = GetPlayerPed(-1)
SetPedRelationshipGroupHash(player, GetHashKey(“AMBIENT_GANG_FAMILY”))
SetPedRelationshipGroupHash(player, GetHashKey(“AMBIENT_GANG_BALLAS”))
SetPedRelationshipGroupHash(player, GetHashKey(“AMBIENT_GANG_MEXICAN”))
–SetRelationshipBetweenGroups(0, GetHashKey(“AMBIENT_GANG_FAMILY”), GetHashKey(‘PLAYER’))
end


#2

Still need help…

20Characters


#3

help please :smiley:
20Characters