Hi,
That is something that didn’t get added to the mod, but I give some guidance on how that might be implemented on the github readme.
RELATIONSHIP GROUPS AND MISSION PLAYERS: You may want to have it so that enemy npcs in missions only attack players that are in missions, rather than any player they see. You would need to add code that creates a new relationship group called “MISSION_PLAYER” or something, and add the players who are in the mission (See EnableOptIn and EnableSafeHouseOptIn settings, and the decor values: mrpoptin, mrpoptout) to that group. You would need to find and replace every instance of “HATES_PLAYER” with “MISSION_PLAYER”. When players opt out of doing missions, you would remove them from the “MISSION_PLAYER” relationship group. Thats basically how you would do it.
ONLY CERTAIN SKINS LIKE POLICE CAN TAKE MISSIONS: Similar to ‘Relationship groups and Mission Players’
check out EnableOptIn and EnableSafeHouseOptIn settings, and the decor values: mrpoptin, mrpoptout. You would need to add an extra check on the player’s skin to see if the can accept the mission.
1 Like
ah oke, well this all sounds like chinees for me tbh my code knowledge is far from editing this stuff i can make like very little adjustmens only.
i hoped that there was a config option what i dindnt saw yet, but anyway thank you for explaining tho.
the idea of the mod is nice was looking for this, since most mods with ai are so basic sadly.
guys my ai police stopped working after i installed this mod is there a fix
mrp-missions (OUT OF DATE but still playable)
UPDATE:The main resource ‘mrp-missions-v3’ requires an non-supported out date manifest for it to work. resource_manifest_version ‘77731fab-63ca-442c-a67b-abc70f28dfa5’
It worked ‘well enough’ for me testing just a litle bit with a newer (albiet custom) build of FiveM. (11/4/24) . It still needs one sync to be set to off or set to legacy. Also using a newer manifest will break it.
‘Well Enough’ meaning that it has some quirks now. Many missions use long distance blips for enemies and other mission NPCS. These blips can and probably will stop showing now for clients during missions until the player gets within streaming range (300+ meters?) of the targets.
So missions are still playable but could be more challenging, depending on the mission. Many missions though should not be affected, since they do not make use of long range NPC blips. You could still create your own missions in a way to avoid this.
map.lua is now added from mrp-missions_spawn (mrp-missions_spawn is no longer needed). basic_client.lua added from fivem server vanilla freeroam ‘basic-gamemode’ for spawning and respawning.
mrp-missions_spawn resource is no longer needed
Other notes: Make sure ‘start baseevents’ is in the server.cfg (as well as one sync set to off or set to legacy in server.cfg and txadmin). Also for this to work properly either comment out or remove ‘ensure basic-gamemode’ (default freeroam gametype) in server.cfg (if vanilla server). Else and also if you are using other gametypes, you will need to change the code and/or manifest in the mrp-missions-v3 resource to behave better with other gametypes. ALSO: With onesync set to legacy, use the server.lua provided in the root of the repo (and replacing the one in mrp-missions-v3), as well as setting Config.UsingOneSync = true in missions.lua
The missions resources may be setting relationships between different ped groups that might be affecting the AI. If you turned off one sync or set it to legacy for this resource to work and the police ai resource needs full one sync then that could be the issue,
Im not supporting this mod anymore since its basically out of date, (albeit still playable). I did post a small update along with updated readme files. It might be harder to integrate this resource with newer resources and newer clients and servers. This is probably best run by itself creating a server just to play the missions, but… if you created simple missions, this resource might work OK with full onesync on. I havent tested it though. Missions where everything spawns in within streaming range of the player(s).
I imagine there must be other mission systems out there now.