π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:
IsPlayingAnimationtruewhen the player is playing an animation.falseas soon as the player stops or changes animation.
Example Usage
βοΈ Configuration Example (config.lua)
config.lua)π Notes
Command Activation: The interaction menu is enabled by default and can be triggered with the configured command/key (default:
Gfor humans,Hfor animals).Menu & Controls: Prompts, menu titles, and animation labels are all customizable in
config.lua.Advanced: You can hook into
currentAnimationandIsPlayingAnimationfor gameplay, roleplay, or server event logic.
Last updated