{"id":128144,"date":"2024-02-02T11:44:13","date_gmt":"2024-02-02T10:44:13","guid":{"rendered":"https:\/\/hifivem.com\/?post_type=product&#038;p=128144"},"modified":"2026-06-22T20:39:31","modified_gmt":"2026-06-22T18:39:31","slug":"script-compagnon-animal-qb-esx","status":"publish","type":"product","link":"https:\/\/fivemx.com\/fr\/pet-companion-script-qb-esx\/","title":{"rendered":"Pet &amp; Companion Script [QB + ESX]"},"content":{"rendered":"<h2>Pet &amp; Companion Script [QB + <a href=\"\/esx-scripts\/\" \/>ESX<\/a>] &#8211; Complete Pet System with AI Behavior<\/h2>\n<p><iframe title=\"Fivem Script | Pet &amp; Companion Script [QB + ESX] (Dusa)\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/5medm-C7KTI?feature=oembed\" loading=\"lazy\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>Bring your FiveM server to life with the Pet &amp; Companion Script, a fully-featured pet system that lets players purchase, customize, and interact with AI-controlled animal companions. This script goes beyond basic pet following by introducing feeding systems, hydration tracking, interactive commands (sit, attack, bark), vehicle transport, and realistic pet behaviors. Whether you&#8217;re running a casual roleplay server or a complex life simulation, this pet system adds personality and immersion that players love.<\/p>\n<h3>What&#8217;s Included<\/h3>\n<p>You&#8217;ll get a complete pet ownership system with purchase interfaces at configurable pet shop locations, extensive customization options for pet appearance and names, AI behavior systems for following and pathfinding, needs management (hunger\/thirst), interactive command menus, vehicle integration for bringing pets in cars, and multi-language support. The script seamlessly integrates with both <a href=\"\/qbcore-scripts\/\" \/>QBCore<\/a> and ESX frameworks without requiring additional dependencies beyond optional target scripts for enhanced interactions.<\/p>\n<h3>Key Features<\/h3>\n<ul>\n<li><strong>Multiple Pet Types<\/strong> &#8211; Choose from dogs, cats, and other animal models. Each pet type can have different breeds, sizes, and customization options configured to match your server&#8217;s theme.<\/li>\n<li><strong>Purchase &amp; Shop System<\/strong> &#8211; Players visit pet shops at configured map locations to browse available pets, preview models, customize appearance, and complete purchases using server currency. Supports one-time fees or recurring adoption costs.<\/li>\n<li><strong>AI Follow Behavior<\/strong> &#8211; Pets use advanced pathfinding to follow players realistically. They navigate around obstacles, wait when players enter buildings, and return when called. Adjustable follow distance and speed settings ensure pets don&#8217;t get lost or obstruct gameplay.<\/li>\n<li><strong>Feeding &amp; Hydration System<\/strong> &#8211; Pets require food and water to stay healthy. Players use consumable items (pet food, water bowls) to maintain their companion&#8217;s needs. Neglected pets may become sad, slow down, or eventually run away if not cared for.<\/li>\n<li><strong>Interactive Commands<\/strong> &#8211; Access a radial menu or command list to control pet behavior. Make them sit, lie down, stay in place, bark\/meow for attention, or attack on command for guard dog scenarios. Each command includes animations and sound effects.<\/li>\n<li><strong>Attack Command<\/strong> &#8211; Guard dogs or protective companions can be commanded to attack nearby threats. Useful for property defense roleplay, personal security, or criminal scenarios. Includes combat animations and configurable damage.<\/li>\n<li><strong>Vehicle Integration<\/strong> &#8211; Bring pets into vehicles as passengers. They sit in available seats or cargo areas, travel with the player, and exit when the vehicle stops. Perfect for road trips, moving to new properties, or visits to the vet.<\/li>\n<li><strong>Pet Customization<\/strong> &#8211; Name your pet, choose collar colors, select from available breeds, and adjust size\/appearance. Customization saves with the pet so it looks the same every time it&#8217;s spawned.<\/li>\n<li><strong>Framework Integration<\/strong> &#8211; Seamlessly works with QBCore and ESX without requiring framework-specific configuration. The script detects your framework automatically and adjusts database calls, money handling, and <a href=\"\/fivem-job-scripts\/\" \/>job<\/a> checks accordingly.<\/li>\n<li><strong><a href=\"\/standalone-scripts\/\" \/>Standalone<\/a> Operation<\/strong> &#8211; No mandatory external dependencies. Works out of the box, though target scripts (ox_target, qb-target) are recommended for better shop interactions.<\/li>\n<li><strong>Multi-Language Support<\/strong> &#8211; Includes English, German, Turkish, Spanish, French, and Italian translations. Easy to add custom languages through the config file for international communities.<\/li>\n<li><strong>Performance Optimized<\/strong> &#8211; Efficient entity streaming and behavior loops ensure pets don&#8217;t impact server performance even with many active companions across the server.<\/li>\n<\/ul>\n<h3>Perfect For<\/h3>\n<ul>\n<li>Roleplay servers wanting to add casual life simulation elements<\/li>\n<li>Pet shop businesses and animal adoption center roleplay<\/li>\n<li>Property owners who want guard dogs or house pets<\/li>\n<li>Gang servers using attack dogs for territory defense<\/li>\n<li>Homeless\/civilian characters needing companion animals<\/li>\n<li>Veterinary clinic roleplay with pet health systems<\/li>\n<li>Casual servers adding fun social features beyond crime\/jobs<\/li>\n<\/ul>\n<h3>How It Works<\/h3>\n<p>Players visit a pet shop location marked on the map (or discovered through target zones). They open the shop UI to browse available pet types and breeds. After selecting a pet, they customize its name, appearance, and any available cosmetic options. Upon purchase, the pet is added to their inventory or database record. Players can spawn their pet using an item, command, or menu, which creates an AI-controlled ped that follows them.<\/p>\n<p>The pet automatically follows using pathfinding AI, maintaining configurable distance and avoiding obstacles. Players access a command menu (radial or keybind-based) to issue commands like sit, stay, attack, or bark. When hunger or thirst levels drop, notification prompts remind players to feed their pet using consumable items from their inventory. To transport pets, players enter a vehicle and use a command to bring the pet inside, where it occupies a seat until manually dismissed or the vehicle is exited.<\/p>\n<p>Pet data (name, appearance, hunger, thirst, last spawn time) persists in the database so companions remain consistent across sessions. Owners can dismiss pets when not needed and resummon them later with all customization intact.<\/p>\n<h3>Technical Details<\/h3>\n<ul>\n<li><strong>Performance:<\/strong> Optimized entity streaming with configurable spawn limits and behavior tick rates<\/li>\n<li><strong>Compatibility:<\/strong> QBCore, ESX, <a href=\"\/qbox-scripts\/\" \/>QBOX<\/a> &#8211; Auto-detects framework and adjusts accordingly<\/li>\n<li><strong>Dependencies:<\/strong> None required (optional: ox_target or qb-target for enhanced interactions)<\/li>\n<li><strong>Database:<\/strong> Stores pet ownership, customization data, needs levels, and purchase history<\/li>\n<li><strong>AI System:<\/strong> Uses native GTA pathfinding with custom behavior states (follow, sit, stay, attack)<\/li>\n<li><strong>Customization:<\/strong> Config file for pet types, shop locations, prices, needs decay rates, command permissions<\/li>\n<\/ul>\n<h3>Installation<\/h3>\n<ol>\n<li>Extract the pet companion script to your resources folder<\/li>\n<li>Import the SQL file to create pet ownership and data tables<\/li>\n<li>Configure framework detection (auto-detects ESX\/QBCore\/QBOX)<\/li>\n<li>Set up pet shop locations in config.lua with coordinates and available pets<\/li>\n<li>Configure pet types, breeds, prices, and customization options<\/li>\n<li>Adjust hunger\/thirst decay rates and need requirements<\/li>\n<li>Add pet food and water items to your items configuration<\/li>\n<li>Optional: Configure ox_target or qb-target zones for shop interactions<\/li>\n<li>Add &#8216;ensure pet-companion-script&#8217; to server.cfg<\/li>\n<li>Restart server and visit pet shop locations to test purchasing and commands<\/li>\n<\/ol>\n<h3>Framework Compatibility<\/h3>\n<ul>\n<li>\u2705 <strong>ESX<\/strong> &#8211; Full integration with ESX player data, money system, and inventory<\/li>\n<li>\u2705 <strong>QBCore<\/strong> &#8211; Native QB player functions, cash handling, and item system<\/li>\n<li>\u2705 <strong>QBOX<\/strong> &#8211; Compatible with QBOX framework architecture<\/li>\n<li>\u2705 <strong>Standalone<\/strong> &#8211; Can operate without framework using configuration-based settings<\/li>\n<\/ul>\n<h3>Available Commands<\/h3>\n<ul>\n<li><strong>Spawn Pet<\/strong> &#8211; Summon your owned pet to your location from inventory or menu<\/li>\n<li><strong>Dismiss Pet<\/strong> &#8211; Send pet away and save its current state to database<\/li>\n<li><strong>Sit\/Lie Down<\/strong> &#8211; Make pet sit or lie down at current location with animation<\/li>\n<li><strong>Stay<\/strong> &#8211; Command pet to remain at specific location until recalled<\/li>\n<li><strong>Follow<\/strong> &#8211; Resume following behavior after stay or sit commands<\/li>\n<li><strong>Bark\/Meow<\/strong> &#8211; Trigger pet vocalization sounds for attention or roleplay<\/li>\n<li><strong>Attack<\/strong> &#8211; Command guard dogs to engage nearby threats (requires guard dog type)<\/li>\n<li><strong>Enter Vehicle<\/strong> &#8211; Bring pet into your vehicle as a passenger<\/li>\n<li><strong>Feed<\/strong> &#8211; Use pet food item to restore hunger level<\/li>\n<li><strong>Give Water<\/strong> &#8211; Use water bowl or bottle to restore hydration level<\/li>\n<li><strong>Pet Info<\/strong> &#8211; View current hunger, thirst, and pet statistics<\/li>\n<\/ul>\n<h3>What Makes It Stand Out<\/h3>\n<p>Most pet scripts are simple follow systems with minimal interaction. This script adds depth through the feeding\/hydration system that creates ongoing care responsibilities, making pet ownership feel meaningful rather than just cosmetic. The attack command opens up guard dog roleplay that most systems don&#8217;t support. Vehicle integration solves the common problem of leaving pets behind during travel. Multi-language support out of the box means international servers don&#8217;t need to translate everything themselves. The framework-agnostic design with auto-detection makes installation simple regardless of your server&#8217;s base. Combined with extensive customization options and performance optimization, this delivers the most complete pet companion experience available for FiveM.<\/p>\n<h3>Roleplay Scenarios &amp; Uses<\/h3>\n<ul>\n<li><strong>Pet Shop Business<\/strong> &#8211; Players operate pet stores, manage inventory, set prices, and process adoptions<\/li>\n<li><strong>Guard Dogs<\/strong> &#8211; Property owners deploy attack dogs to defend homes, businesses, or gang territory<\/li>\n<li><strong>Companionship<\/strong> &#8211; Homeless characters, civilians, or lonely players gain AI companions for immersion<\/li>\n<li><strong>Veterinary Clinic<\/strong> &#8211; Vets treat sick pets, provide checkups, and manage pet health systems<\/li>\n<li><strong>K9 Units<\/strong> &#8211; <a href=\"\/police-scripts\/\" \/>Police<\/a> use trained dogs for drug searches, suspect tracking, or patrol companionship<\/li>\n<li><strong>Farming\/Ranch<\/strong> &#8211; Rural players keep working dogs for livestock herding or property management<\/li>\n<li><strong>Criminal Use<\/strong> &#8211; Gang members use attack dogs for intimidation, guarding illegal operations, or combat<\/li>\n<li><strong>Social Events<\/strong> &#8211; Host dog shows, pet meetups, or adoption events for community engagement<\/li>\n<\/ul>\n<h3>Customization Options<\/h3>\n<ul>\n<li><strong>Pet Models<\/strong> &#8211; Add unlimited custom animal peds (dogs, cats, exotic animals)<\/li>\n<li><strong>Breed Variations<\/strong> &#8211; Configure multiple breeds per species with different sizes and appearances<\/li>\n<li><strong>Shop Locations<\/strong> &#8211; Set up pet stores anywhere on the map with custom ped models and zones<\/li>\n<li><strong>Pricing<\/strong> &#8211; Individual prices per pet type, adoption fees, or subscription costs<\/li>\n<li><strong>Needs Decay<\/strong> &#8211; Adjust how fast hunger\/thirst decrease (realistic vs. casual)<\/li>\n<li><strong>Follow Distance<\/strong> &#8211; Set how close pets stay to players (personal space vs. tight follow)<\/li>\n<li><strong>Command Restrictions<\/strong> &#8211; Limit attack commands to specific pet types or job permissions<\/li>\n<li><strong>Ownership Limits<\/strong> &#8211; Control how many pets players can own simultaneously<\/li>\n<li><strong>Language Files<\/strong> &#8211; Add translations for your server&#8217;s primary language<\/li>\n<\/ul>\n<h3>Related FiveM Police Scripts<\/h3>\n<ul>\n<li><a href=\"https:\/\/fivemx.com\/shop-robbery-brutal\/\" \/>Shop Robbery [ESX &amp; QB] Brutal Scripts<\/a><\/li>\n<li><a href=\"https:\/\/fivemx.com\/kachal-pd\/\" \/>Kachal PD<\/a><\/li>\n<li><a href=\"https:\/\/fivemx.com\/gabz-mrpd-vinewood\/\" \/>Gabz MRPD Vinewood<\/a><\/li>\n<li><a href=\"https:\/\/fivemx.com\/debadged-police-pursuit-car-pack\/\" \/>Debadged Police Pursuit Car Pack | 10 Vehicles<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p><strong>Documentation<\/strong><\/p>\n<p>D\u00e9couvrez notre documentation compl\u00e8te ici : <a href=\"https:\/\/lesimov.gitbook.io\/dusa-docs\/general\/welcome\" target=\"_blank\" rel=\"noopener\">Dusa Docs \u2013 Bienvenue g\u00e9n\u00e9rale<\/a><\/p>\n<p><strong>Caract\u00e9ristiques<\/strong><\/p>\n<p>Lib\u00e9rez les possibilit\u00e9s avec Dusa !<\/p>\n<ul>\n<li>Personnalisez chaque aspect, des param\u00e8tres sp\u00e9cifiques aux animaux aux autorisations d&#039;action.<\/li>\n<li>Rehaussez le style de votre animal de compagnie avec des combinaisons de mode infinies.<\/li>\n<li>Int\u00e9grez de mani\u00e8re transparente de nouvelles options vestimentaires.<\/li>\n<li>Interagissez avec votre animal de compagnie gr\u00e2ce \u00e0 un menu d&#039;actions et d&#039;\u00e9motic\u00f4nes intuitif.<\/li>\n<li>Restez vigilant dans la gestion des maladies des animaux de compagnie.<\/li>\n<li>Supervisez efficacement plusieurs animaux de compagnie via un menu unifi\u00e9.<\/li>\n<li>Exploitez des commandes d&#039;attaque avanc\u00e9es pour diriger les cibles de votre animal.<\/li>\n<li>Plongez dans des accessoires interactifs avec des ajustements de localisation synchronis\u00e9s.<\/li>\n<li>D\u00e9couvrez notre section de chiens K9 adapt\u00e9e pour <a href=\"https:\/\/fivemx.com\/fr\/scenarios-de-police\/\" data-wpil-monitor-id=\"520\">r\u00f4les de la police<\/a> (Les emplois et les notes sont enti\u00e8rement personnalisables).<\/li>\n<li>Profitez d&#039;une vari\u00e9t\u00e9 d&#039;animations captivantes.<\/li>\n<li>D\u00e9veloppez votre exp\u00e9rience avec l&#039;addon pet <a class=\"wpil_keyword_link\" href=\"https:\/\/fivemx.com\/fr\/soutien\/\" title=\"soutien\" data-wpil-keyword-link=\"linked\" data-wpil-monitor-id=\"1376\">soutien<\/a>.<\/li>\n<li>Naviguez sans effort dans notre menu \u00e9l\u00e9gant et optimis\u00e9 bas\u00e9 sur Vue.js.<\/li>\n<li>B\u00e9n\u00e9ficiez d&#039;un temps d&#039;inactivit\u00e9 nul et d&#039;un temps de r\u00e9ponse de seulement 0,02 ms pendant l&#039;utilisation.<\/li>\n<li>Acc\u00e9dez au script en six langues diff\u00e9rentes (ou ajoutez la v\u00f4tre) : EN\/DE\/TR\/ES\/FR\/IT.<\/li>\n<\/ul>\n<p><strong>Compatibilit\u00e9s et configurations<\/strong><\/p>\n<p>Dusa est con\u00e7u pour votre confort :<\/p>\n<ul>\n<li>S&#039;int\u00e8gre parfaitement \u00e0 QBCore\/ESX, \u00e9liminant ainsi le besoin de configuration du framework.<\/li>\n<li>Fonctionnement autonome\u00a0; aucun script suppl\u00e9mentaire requis (bien que l&#039;utilisation cible soit recommand\u00e9e).<\/li>\n<li>Les configurations conviviales s&#039;adressent aux clients sans expertise en codage.<\/li>\n<li>La conception optimale du front-end garantit une exp\u00e9rience de joueur fluide et immersive.<\/li>\n<\/ul>","protected":false},"featured_media":128145,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[1820,96,512,2907],"product_tag":[],"class_list":["post-128144","product","type-product","status-publish","has-post-thumbnail","product_cat-police-scripts","product_cat-esx-scripts","product_cat-qbcore-scripts","product_cat-qbox-scripts","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product\/128144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/comments?post=128144"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media\/128145"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media?parent=128144"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_brand?post=128144"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_cat?post=128144"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_tag?post=128144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}