Anyone got any idea how I would go about disabling the rednecks/hilbillies in sandy shores from opening fire and randomly shooting, when someone opens fire.
maybe fastest way is to make everyone friendly to players something like below
local relationshipTypes = {
"GANG_1",
"GANG_2",
"GANG_9",
"GANG_10",
"AMBIENT_GANG_LOST",
"AMBIENT_GANG_MEXICAN",
"AMBIENT_GANG_FAMILY",
"AMBIENT_GANG_BALLAS",
"AMBIENT_GANG_MARABUNTE",
"AMBIENT_GANG_CULT",
"AMBIENT_GANG_SALVA",
"AMBIENT_GANG_WEICHENG",
"AMBIENT_GANG_HILLBILLY",
"DEALER",
"HATES_PLAYER",
"NO_RELATIONSHIP",
"SPECIAL",
"MISSION2",
"MISSION3",
"MISSION4",
"MISSION5",
"MISSION6",
"MISSION7",
"MISSION8",
}
Citizen.CreateThread(function()
while true do
Wait(50)
for _, group in ipairs(relationshipTypes) do
SetRelationshipBetweenGroups(1, GetHashKey('PLAYER'), GetHashKey(group))
SetRelationshipBetweenGroups(1, GetHashKey(group), GetHashKey('PLAYER'))
end
end
end)
1 Like
Iâll give it a shot.
Didnât work, shitâŚ
it should of worked did you put it in correctly ?, did you get any errors?