{"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-de-companheiro-de-estimacao-qb-esx-2","status":"publish","type":"product","link":"https:\/\/fivemx.com\/pt\/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>Documenta\u00e7\u00e3o<\/strong><\/p>\n<p>Explore nossa documenta\u00e7\u00e3o abrangente aqui: <a href=\"https:\/\/lesimov.gitbook.io\/dusa-docs\/general\/welcome\" target=\"_blank\" rel=\"noopener\">Dusa Docs \u2013 Boas-vindas gerais<\/a><\/p>\n<p><strong>Caracter\u00edsticas<\/strong><\/p>\n<p>Liberte as possibilidades com Dusa!<\/p>\n<ul>\n<li>Personalize todos os aspectos, desde configura\u00e7\u00f5es espec\u00edficas para animais de estima\u00e7\u00e3o at\u00e9 permiss\u00f5es de a\u00e7\u00e3o.<\/li>\n<li>Eleve o estilo do seu animal de estima\u00e7\u00e3o com infinitas combina\u00e7\u00f5es de moda.<\/li>\n<li>Incorpore perfeitamente novas op\u00e7\u00f5es de roupas.<\/li>\n<li>Interaja com seu animal de estima\u00e7\u00e3o por meio de um menu intuitivo de a\u00e7\u00f5es e emo\u00e7\u00f5es.<\/li>\n<li>Fique atento ao gerenciamento de doen\u00e7as de animais de estima\u00e7\u00e3o.<\/li>\n<li>Supervisione com efici\u00eancia v\u00e1rios animais de estima\u00e7\u00e3o por meio de um menu unificado.<\/li>\n<li>Utilize controles de ataque avan\u00e7ados para direcionar os alvos do seu animal de estima\u00e7\u00e3o.<\/li>\n<li>Mergulhe em acess\u00f3rios interativos com ajustes de localiza\u00e7\u00e3o sincronizados.<\/li>\n<li>Explore nossa se\u00e7\u00e3o de c\u00e3es K9 adaptada para <a href=\"https:\/\/fivemx.com\/pt\/roteiros-policiais-2\/\" data-wpil-monitor-id=\"520\">pap\u00e9is policiais<\/a> (Trabalhos e notas s\u00e3o totalmente personaliz\u00e1veis).<\/li>\n<li>Aproveite uma variedade de anima\u00e7\u00f5es cativantes.<\/li>\n<li>Expanda sua experi\u00eancia com o addon pet <a class=\"wpil_keyword_link\" href=\"https:\/\/fivemx.com\/pt\/apoiar\/\" title=\"apoiar\" data-wpil-keyword-link=\"linked\" data-wpil-monitor-id=\"1376\">apoiar<\/a>.<\/li>\n<li>Navegue sem esfor\u00e7o pelo nosso menu elegante e otimizado baseado em Vue.js.<\/li>\n<li>Experimente tempo ocioso zero e tempo de resposta de apenas 0,02 ms durante o uso.<\/li>\n<li>Acesse o roteiro em seis idiomas diferentes (ou adicione o seu pr\u00f3prio): EN\/DE\/TR\/ES\/FR\/IT.<\/li>\n<\/ul>\n<p><strong>Compatibilidades e configura\u00e7\u00e3o<\/strong><\/p>\n<p>O Dusa foi projetado pensando na sua conveni\u00eancia:<\/p>\n<ul>\n<li>Integra-se perfeitamente com QBCore\/ESX, eliminando a necessidade de configura\u00e7\u00e3o de framework.<\/li>\n<li>Opera\u00e7\u00e3o aut\u00f4noma; n\u00e3o s\u00e3o necess\u00e1rios scripts adicionais (embora o uso em destino seja recomendado).<\/li>\n<li>Configura\u00e7\u00f5es f\u00e1ceis de usar atendem a clientes sem experi\u00eancia em codifica\u00e7\u00e3o.<\/li>\n<li>O design otimizado do frontend garante uma experi\u00eancia suave e envolvente ao jogador.<\/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\/pt\/wp-json\/wp\/v2\/product\/128144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/comments?post=128144"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/media\/128145"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/media?parent=128144"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_brand?post=128144"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_cat?post=128144"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_tag?post=128144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}