Calm AI for FiveM Servers
Sets relationships between NPC AI and players.
-
Download and install into the resources folder
-
Add
start CalmAI
to your server.cfg
Enjoy
0 = Companion 1 = Respect 2 = Like 3 = Neutral 4 = Dislike 5 = Hate 255 = Pedestrians
You can set the relationship between the NPC and player in the client.lua file;
example:
SetRelationshipBetweenGroups(1, `HEN`, `PLAYER`)
SetRelationshipBetweenGroups(1, `DEER`, `PLAYER`)
SetRelationshipBetweenGroups(1, `WILD_ANIMAL`, `PLAYER`)
SetRelationshipBetweenGroups(1,`DOMESTIC_ANIMAL`, `PLAYER`)
This would make it so that all animals like players and don't freak out or run away.
You can also configure the relationship between the NPCs in the relationships.dat file.
For example, by default, SHARK Hate PLAYER
; this could be set to SHARK hate PLAYER, CIVMALE, CIVFEMALE, COP
etc etc