grouse-labs/gr_patrols ? reverse-engineered prompt
Reverse engineered prompt
Build me a configurable FiveM patrol system in Lua that spawns believable AI patrols server side and keeps performance really light when no players are nearby. I want to be able to set up guarded zones and roaming patrols for foot, vehicles, aircraft, and boats, with each location having its own spawn distance, cooldown, reset behavior, and patrol routes.
Please make it easy to define patrols in a config file, including ped models, weapons, health, armor, accuracy, combat style, vehicle settings, and loot drops. It should also understand player jobs or factions so patrols can treat people as friendly, neutral, or hostile, and react accordingly. If a guard gets pushed away, it should return to its post.
Include a few ready to use example locations so I can see how it works, and make sure it works cleanly with common FiveM inventory and target or callback systems. If you need to check current docs for framework compatibility, look up the latest info online.
Are you gonna build this?
make sure you review the code using coderabbit