Skip to content

Latest commit

 

History

History
58 lines (52 loc) · 2.09 KB

README.md

File metadata and controls

58 lines (52 loc) · 2.09 KB

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