JRS COREदस्तावेज़
API संदर्भ

animations

Premade animations you can play from your scripts

Note

Client side

Initiate the animations export.

lua
local Animations = exports.jrs_animations.initiate()

Play an animation for a fixed time (ms):

lua
Animations.playAnimation('campfire', 2000)

Stop an animation:

lua
Animations.endAnimation('campfire')

Start an animation indefinitely:

lua
Animations.startAnimation('campfire')

Stop every running animation:

lua
Animations.endAnimations()

To test in game, set devmode to true in jrs_animations/config.lua and use /startanimation campfire. The UI lets you adjust the animation so you can copy it into your config files.

JRS Core · मुफ़्त और ओपन-सोर्स RedM फ्रेमवर्क · JRS TEAM द्वारा