[{"data":1,"prerenderedAt":107},["ShallowReactive",2],{"/docs/scripts/pets/features/animal-form":3,"/docs/scripts/pets/features/animal-form-surround":95,"/docs/scripts/pets/features/animal-form-implemented-suggestions":106},{"id":4,"title":5,"body":6,"description":85,"extension":86,"head":87,"implementedSuggestions":87,"meta":88,"navigation":89,"path":90,"schemaOrg":87,"seo":91,"sitemap":92,"stem":93,"__hash__":94},"docs/1.docs/scripts/5.pets/3.features/7.animal-form.md","Animal form",{"type":7,"value":8,"toc":78},"minimark",[9,23,28,53,64,68,75],[10,11,12,13,17,18,22],"p",{},"Animal form lets an authorized ",[14,15,16],"strong",{},"player character"," become an eligible animal. It is separate from buying and controlling an owned pet. The feature is enabled by default through ",[19,20,21],"code",{},"Config.AnimalMenu",", but access still requires an explicit grant or the configured command permission.",[24,25,27],"h2",{"id":26},"grant-and-open-access","Grant and open access",[10,29,30,31,34,35,38,39,42,43,46,47,52],{},"An administrator or another server resource can grant a player access with ",[19,32,33],{},"GiveAnimalAccess(target)",", revoke it with ",[19,36,37],{},"RemoveAnimalAccess(target)",", query it with ",[19,40,41],{},"HasAnimalAccess(target)",", or ask the server to open the editor with ",[19,44,45],{},"OpenAnimalMenu(source)",". The target accepts an online player source or a validated persistent identifier. See ",[48,49,51],"a",{"href":50},"../reference/exports","Exports"," for return values and working examples.",[10,54,55,56,59,60,63],{},"Eligible dog forms follow the active breed configuration. The normal command is ",[19,57,58],{},"/animalmenu",", and a client resource may call its ",[19,61,62],{},"OpenAnimalMenu()"," export. The server checks the current grant, player state and nearby players. By default, another player within 50 m in the same routing bucket blocks transformation. The client cannot bypass this by selecting a model or claiming access.",[24,65,67],{"id":66},"recovery-and-appearance","Recovery and appearance",[10,69,70,71,74],{},"The resource saves a snapshot of the human appearance before changing form and restores it when the player returns to human form, loses access, or an active breed becomes unavailable. Saved form selection and grant state persist. The appearance provider's completion event can be configured in ",[19,72,73],{},"Config.AnimalMenu.appearanceReadyEvents"," so restoration runs after the normal character skin is ready.",[10,76,77],{},"Use this feature first with a test character and verify form, camera, return to human appearance, reconnect and a nearby-player rejection in FiveM. Browser previews cannot prove the appearance provider or model state in game.",{"title":79,"searchDepth":80,"depth":81,"links":82},"",1,2,[83,84],{"id":26,"depth":81,"text":27},{"id":66,"depth":81,"text":67},"Optional player transformation, access grants, safety rules, recovery, and its server exports.","md",null,{},true,"/docs/scripts/pets/features/animal-form",{"title":5,"description":85},{"loc":90},"1.docs/scripts/5.pets/3.features/7.animal-form","4ln81uz0q737b1SO2bAVuLprYa1Djfn24Igy6CI9Tt0",[96,101],{"title":97,"path":98,"stem":99,"description":100,"children":-1},"Duels and combat","/docs/scripts/pets/features/duels","1.docs/scripts/5.pets/3.features/6.duels","Player dog duels, move learning, levels, XP, and staff test tools.",{"title":102,"path":103,"stem":104,"description":105,"children":-1},"Inventory items","/docs/scripts/pets/reference/inventory-items","1.docs/scripts/5.pets/4.reference/1.inventory-items","Every core Sky Pets item ID, default use, consumption rule, and ox_inventory integration note.",[],1790206636403]