Server Exports

Here you will find the list of usable exports for DOJ Job, you can use them if you have basic or advanced programming knowledge, we do not recommend using these if you do not have such knowledge.


createCourtHearing

Use following export to create court hearing in TV [Visible to restart script/server]

local data = {
    id = 1
    judge = 'char1:123456' -- replace with existing player identifier
    prosecutor = 'char2:123456' -- replace with existing player identifier
    applicant = 'char3:123456' -- replace with existing player identifier
    accused = 'John Doe'
    suing = 'Jane Smith'
    room = 1
    time = os.time()
}
exports['p_dojjob']:createCourtHearing(data)

Last updated