Trainings

Script allows you to create trainings and assign them to employees. This exports gives you option to obtain all existing trainings or trainings assigned to given CitizenID.

Types for functions below are listed in file server/exportTypes.lua as Training.

Get all trainings

To retrieve all existing trainings, use function as presented below:

exports["bl-mdt"]:GetTrainings()
Get employee trainings

To retrieve trainings assigned to given employee, use function as presented below with CitizenID as only param:

exports["bl-mdt"]:GetTrainings("ABC123")

Last updated