πŸ™‹Environment animations

🟦 Client Side

πŸ”Œ Exports

  • Search for Area Animations:

    exports.bt_interaction:ResearchInteraction()

    This function scans for available NPC animations in your current area.

    • If you are transformed into an animal (bear, horse, deer, donkey, etc.), it will show potentially compatible animations for your current animal form.

    • As a human or animal, the displayed animations may not always be executable, depending on game constraints.

πŸ“ Functions & Variables

  • Get Current Animation:

    currentAnimation(animModel, animName)

    Returns the model and name of the animation currently played by the player.

  • Animation State Boolean:

    IsPlayingAnimation
    • true when the player is playing an animation.

    • false as soon as the player stops or changes animation.

Example Usage


βš™οΈ Configuration Example (config.lua)


πŸ“Œ Notes

  • Command Activation: The interaction menu is enabled by default and can be triggered with the configured command/key (default: G for humans, H for animals).

  • Menu & Controls: Prompts, menu titles, and animation labels are all customizable in config.lua.

  • Advanced: You can hook into currentAnimation and IsPlayingAnimation for gameplay, roleplay, or server event logic.

Last updated