SetRelationshipBetweenGroups(5, GetHashKey(relations.groove), GetHashKey(relations.ballas)) --hate each other
SetRelationshipBetweenGroups(5, GetHashKey(relations.ballas), GetHashKey(relations.groove)) --hate each other
SetRelationshipBetweenGroups(1, GetHashKey(relations.groove), GetHashKey(relations.groove))
SetRelationshipBetweenGroups(1, GetHashKey(relations.ballas), GetHashKey(relations.ballas))
SetPedRelationshipGroupDefaultHash(ped, GetHashKey(relations.groove)) --relations.groove located in variables_c.lua
SetPedRelationshipGroupHash(ped, GetHashKey(relations.groove))
They are not shooting at me, but is it normal if I aim at them that they shoot me?
If thats normal, is there a way to stop it that they shoot at me if I aim at them
Citizen.CreateThread(function()
local groove_randomspawn = {} local random_anim_hood = {}
while true do
Citizen.Wait(50)
if ped_groove_hood.chiller_load == true then
for i = 1, #ped_groove_hood.chiller, 1 do
TriggerEvent("PedRelation", ped_groove_hood.chiller[i], 'groove')
end
end
end
end)
AddEventHandler("PedRelation", function(ped, group)
if group == "groove" then
SetPedRelationshipGroupDefaultHash(ped, GetHashKey(relations.groove))
SetPedRelationshipGroupHash(ped, GetHashKey(relations.groove))
SetEntityCanBeDamagedByRelationshipGroup(ped, false, GetHashKey(relations.groove))
elseif group == "ballas" then
SetPedRelationshipGroupDefaultHash(ped, GetHashKey(relations.ballas))
SetPedRelationshipGroupHash(ped, GetHashKey(relations.ballas))
SetEntityCanBeDamagedByRelationshipGroup(ped, false, GetHashKey(relations.ballas))
else return nil end
SetRelationshipBetweenGroups(5, GetHashKey(relations.groove), GetHashKey(relations.ballas)) --hate each other
SetRelationshipBetweenGroups(5, GetHashKey(relations.ballas), GetHashKey(relations.groove)) --hate each other
SetRelationshipBetweenGroups(1, GetHashKey(relations.groove), GetHashKey(relations.groove))
SetRelationshipBetweenGroups(1, GetHashKey(relations.ballas), GetHashKey(relations.ballas))
end)