/Calm-AI

Calm AI for FiveM Servers

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

Calm-AI

Calm AI for FiveM Servers

Sets relationships between NPC AI and players.


Installation

  1. Download and install into the resources folder

  2. Add start CalmAI to your server.cfg

Enjoy


Setting Relationship Types

Relationship types:

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