[STANDALONE/QB/QBX/ESX] AI Buddy (Police Buddy)

:star: Description

Advanced AI Partner for officers (or something else?)

:bulb: Features

  • MAIN ACTIONS
    • Attack (players or npcs)
      • Aim on player/npcs and press E
    • Send your buddy anywhere by aiming on the spot
      • Aim on spot and press G
    • Follow | Stop
    • Enter | Exit Vehicle
  • Heal | Armor | Revive
    • You can set max values of Health and Armor in cfg file
    • New registered buddies will always spawn with the max health
    • If your buddy gets shot you can apply bandages on him, so it will give him some HP
      • Same with the armor
    • Health and Armor is saving into database by default, but you can disable it in configuration
    • If your buddy gets killed, you need to revive him, unless you disable saving of hp and armor, then you can just respawn him
  • Weapon Selection
    • Fists, Taser, Pistol, Rifle (can be edited in configuration)

  • OTHER ACTIONS
    • Check buddy’s status
    • Carry your buddy anywhere
    • Walk Styles
      • You can choose from 68 walking styles
    • Animations
      • You can add unlimited animations and scenarios into cfg file
    • Appearance
      • Change look of your buddy
      • Look saves into database (unless you are not using any database)
      • You can use MP skins to make your buddy look like some player

  • SYSTEMS
    • Groups
      • Script is using group system, that allows all buddies to cooperate together in fights
    • Combat System
      • Sooo… If your buddy gets attacked without being in combat, he will automatically attack that person
      • If you get attacked and your buddy isn’t in combat with anyone, he will join the fight with you
      • Buddy listens for shots fired, you can edit the hearing range in cfg
        • Yes, if he’s not in combat then he will automatically attack that person
      • Your buddy won’t attack you, other buddies or other players that are cops
      • If there’s big fight with multiple targets, your buddy makes his own decisions to defend himself
      • All buddies are set to be defensive, not agressive.
      • If combat is over, buddy will holster his weapon automatically (with animation)
      • Drive By Shooting
        • Your buddy is able to shoot from vehicle
    • Weapon Equiping
      • If you equip different weapon to your buddy, then he will prioritise this weapon in fights
      • Fists or unarmed always sets with pistol, so if he gets into combat, he will use pistol

  • OTHER FEATURES / THINGS
    • Instaheadshot (enable/disable)
      • You can disable instaheadshot, so if someone shot his head it will deal same damage as any bodyshots
    • Supports two types of menus
    • ACE Perms
      • Alternative for people that are not using any frameworks, so it checks for ACE perm instead of job
      • It has description in cfg file how to use it
    • Job restrictions
      • Checks for job and grades
      • They are depending on your framework or you can customise the function so it checks for something else
    • Target System (supports qb-target, ox_target and qtarget)
    • You can add unlimited npc skins to cfg
    • Limit for buddies per player/character can be set in cfg
    • All commands are added in cfg file so you are able to change names of commands
    • Translation settings are in cfg file
    • Option for creating blip on the map of your buddy, so you’ll never lose him
    • Keybinding System (you can bind any action to any key)
    • Available for QB, QBX, ESX or STANDALONE
    • And some other things that can be found in configuration or during a play :heart:

:computer: Updates

Click

Update 0.3

  • Added ‘spawn walk’ feature. Basically it finds nearest spawn point and buddy starts following you from there, it’s configurable.
  • Improved ‘follow’ option.
  • Reworked loops
  • Added ‘idle’ animation into cfg
  • Added option to turn off listening for shots
  • Added weapon accuracy into cfg
  • Optimalisation and clean up

Update 0.4

  • Fixed bug with vehicle entering

:cactus: Showcase

:open_book: NOTES

  • Script has completely opened client and server file for developers so you can implement your own code to make it work on any server
  • QBCore, QBX, ESX Legacy, older ESX is supported or even standalone usage
    • You can use the script without any framework/database/inventory it will simply disable certain features
  • Script is based on my K9 script
  • Let me know if you missing any features or ideas

:moneybag: Where to purchase: Tebex

Code is accessible No (only client_editable, server_editable and configuration file is accessible)
Subscription-based No
Lines (approximately) 5500 ±
Requirements qb-core/esx/none, ox_lib (required), oxmysql/mysql-async/none, menuv (optional)
Support Yes

:heart: OTHER RELEASES :heart:
Advanced Yoga (+ Meditation)
Heists Creator (+12 Missions)
Storages
K9 (Police Dog)
Player Carjacking / Pull Driver Out
Cemetery
Chopshop V2
Chopshop V1
Fights
Job Center
Elevator
Guidebook
Job Creator
Christmas Gifts

4 Likes

This looks really interesting. Would you add compatibility for this to choose if your “buddy” can be a canine/k9?

I created K9 script already. @gr.zzy

Hey, first of all great script! Could you possibly add a option to buy the AI’s in a shop? Then you could use the script also as a kind of a bodyguard system. Would be very cool!

Hey,

Thanks for suggestion. I’m definitely planning more stuff with this script, it’s just for start to see if people are interested in this.

1 Like

Update 0.3

  • Added ‘spawn walk’ feature. Basically it finds nearest spawn point and buddy starts following you from there, it’s configurable.
  • Improved ‘follow’ option.
  • Reworked loops
  • Added ‘idle’ animation into cfg
  • Added option to turn off listening for shots
  • Added weapon accuracy into cfg
  • Optimalisation and clean up

Hey :raised_hand_with_fingers_splayed:

30% off discount coupon for 3 lucky ones :slight_smile:
BD30

Enjoy!

Update 0.4

  • Fixed bug with vehicle entering

Hey :raised_hand_with_fingers_splayed:

25% off discount coupon for 3 lucky ones :slight_smile:
BD25

Enjoy!

Hey :raised_hand_with_fingers_splayed:

Another 25% off discount coupon for 3 lucky ones :slight_smile:
BD25

Enjoy!

Can the ai drive his own vehicle and follow u ?

For example u can give any vehilce u order to let the ai drive and follow u or wait.

I am actually searching for a bodyguard/ai script what also can drive their own vehicle and follow u or even can use military vehicles, planes, heli’s etc.

There was a bodyguard script called: Bodyguard Squads on gta 5 mods what had those features u might can look it up.

Sadly there isnt any developer who made it for fivem.

Sadly no, but i have it in my todo list. So it will be added in the future.

1 Like

is there any way to make the ai buddy hand cuff players?

Hey,

This feature is in development already, i just didn’t release it yet…

1 Like

for some reason the ped spawns and then disappears and i have the ped model in ,my anti cheat

Maybe you have some separate blacklist script, what framework are you using?

qbcore i keep getting this in my f8 when i press spawn/remove

Can you open ticket in our community server? So we don’t spam the forum.
You can find the invite link on my tebex store.