💻
alt:V Athena Docs v3.0.0
  • Info
    • Introduction
    • Patreon & Support
    • Athena Discord
    • FAQ
  • Installation
    • Common Issues
    • Windows
    • Linux (Ubuntu 20.04+)
    • Debugging
    • Updating
  • Info
    • Admin
    • Configuration
    • Console
    • Database
    • Hotkeys
    • Identifier
  • Plugins
    • Load Plugins
    • Create Plugins
    • Mods
    • Clothing
  • Controllers
    • What is a Controller?
    • Blip Controller
    • Interaction Controller
    • Marker Controller
    • Object Controller
    • Ped Controller
    • Text Label Controller
    • World Notification Controller
  • Systems
    • Interiors
    • Inventory & Items
    • Inventory Rules
    • Jobs
    • Time
    • Weather
  • Menus
    • Menu Types
    • Action Menus
    • Input Menu
    • Wheel Menu
  • Player
    • Admin-Commands
    • Animations
    • Attach Objects
    • Credits
    • Currency
    • Commands
    • Error Screen
    • Message
    • Meta
    • Notifications
    • Particle
    • Progress Bar
    • Save
    • Shard
    • Sound
    • Spinners
    • Task Timeline
  • Custom WebViews
    • Introduction
    • Your First Page
    • CSS Framework
  • Misc
    • Custom Sounds
    • Custom Streamers
    • Custom Icons
    • Adding Locale / Translations
    • Adding Vehicle Rules
    • Adding Whitelist
    • Adding Wheel Menus
    • Adding Parking Garages
Powered by GitBook
On this page
  • Athena.player.emit.objectAttach
  • Example
Edit on GitHub
  1. Player

Attach Objects

Temporarily or infinitely attach an object to a client.

Athena.player.emit.objectAttach

Allows users to have objects attached to their players. They can be temporarily added or added for the entire play session.

Accessible on Server Side

Example

const attachable: IAttachable = {
    model: 'prop_tool_fireaxe',
    bone: 57005,
    pos: {
        x: 0.1,
        y: -0.1,
        z: -0.02,
    },
    rot: {
        x: 80,
        y: 0,
        z: 170,
    },
};

Athena.player.emit.objectAttach(player, attachable, 5000);
PreviousAnimationsNextCredits

Last updated 3 years ago