Progress Bar

Add

In order to add progress bar you can use the following code:

exports['ZSX_UIV2']:ProgressBar(icon, text, duration, onComplete, onCancel, canCancel, disableControls, anim, prop1, prop2)
Arg
Information

icon

text

String Text of the task

duration

Number Duration of the task

onComplete

Function Called at the end of task

onCancel

Function Called at the interruption of the task

onTick

Function Called at every tick of task

canCancel

Boolean Whether user can cancel task or not.

disableControls

Object Disable each control

anim

Object Creating animation

prop1

Object Creates prop #1

prop2

Object Creates prop #2

disableControls object

key
value
Optional

disable_mouse

Boolean Disable mouse movement

disable_walk

Boolean Disable player movement

disable_driving

Boolean Disable vehicle movement

disable_combat

Boolean Disable combat

anim object

key
value
Optional

dict

String Dictionary of animation

clip

String Clip set of animation

blendIn

Number Blend In

blendOut

Number Blend Out

duration

Number Duration of animation

flag

Number Flags

playbackRate

Number Playback Rate

lockX

Boolean Lock X axis

lockY

Boolean Lock Y axis

lockZ

Boolean Lock Z axis

prop object

key
value
Optional

model

String / Hash Model of the prop

bone

String Bone to attach

pos

Vector / Object Offset of the object

rot

Vector / Object Rotation of the object

Last updated