Skip to content

zf-labo/zf-missionfollowups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZF Mission Follow Ups

A UI Script to show progression of the jobs/missions! Join up our Discord!

Exports:

ShowUI(title, content)

  • Shows the Mission Followup UI. Ex:
(Context: Player is doing a chopshop mission and is in queue.)
exports['zf-missionfollowups']:ShowUI('Waiting for job...', false)

image

EditUI(title, content)

  • Changes the desired values from the UI. Ex:
(Context: Player just received the Chopshop Mission)
exports['zf-missionfollowups']:EditUI('Chopping Missing', 'Go to the GPS Location marked on your Map.')

(Context: Player have arrived to the chopping location and we only want to change the content and not the title "Chopping Mission".)
exports['zf-missionfollowups']:EditUI(false, 'Now, Chop the parts!')

image image

HideUI()

  • Simply hides the UI and clear the UI informations. Ex:
exports['zf-missionfollowups']:HideUI()

image

GetCurrentUI()

  • Returns the current a table with the currents values for title and content. Ex:
local currentUI = exports['zf-missionfollowups']:GetCurrentUI()
print(currentUI.title)
print(currentUI.content)

image

IsUIVisible()

  • Returns true or false depending on if a Mission Followup is shown on screen
  • Ex:
local UIShown = exports['zf-missionfollowups']:IsUIVisible()
print(UIShown)

image image