Loading Bar
Here is an example of Aty Scripts - UI Kit's loading bar system usage.
Loading Bar Usage Guide
Creating a Loading Bar
aty.loading("Purchasing", 7000, {
dict = "mini@sprunk",
anim = "plyr_buy_drink_pt1",
flags = 1,
duration = 7000,
prop = "p_amb_coffeecup_01",
bone = 28422,
offset = vector3(0.0, 0.0, 0.0),
rot = vector3(0.0, 0.0, 0.0),
disableControls = false,
cancel = true,
}, function(success)
if success == "ok" then -- Here will be the used when the loading is done.
aty.sendNotify("Purchased", "You have purchased a drink.", "success", 8000)
elseif success == "cancelled" then -- Here will be the used when the loading is canceled.
aty.sendNotify("Purchased", "You have canceled the puchasing.", "error", 8000)
else -- Here will be the used when the loading is failed or already active.
aty.sendNotify("Purchased", "You can't do this now!", "error", 8000)
end
end)Loading Bar Parameters
Title
Duration
Animation Dictionary (dict)
dict)Animation Name (anim)
anim)Flags
Prop
Bone
Offset
Rotation (rot)
rot)Disable Controls
Cancel
Callback Function
Last updated