Page cover image

exports / triggers

Client Exports / Triggers

Export
Result

exports.brutal_ambulancejob:getAvailableDoctorsCount()

Number of doctors available

exports.brutal_ambulancejob:IsDead(serverid)

true / false (Server id is only needed if you want to check an another player)

TriggerEvent('brutal_ambulancejob:revive')

Client side trigger to revive

TriggerEvent('brutal_ambulancejob:client:ToggleDuty')

Switch between the duty status. ON/FALSE

For example:

local onliceAmbulancers = exports.brutal_ambulancejob:getAvailableDoctorsCount()
print('Available doctors count:', onliceAmbulancers)

local deadStatus = exports.brutal_ambulancejob:IsDead()

if deadStatus == true then
    print('Dead')
elseif deadStatus == false then
     print('Not Dead')
end
AddEventHandler('brutal_ambulancejob:revive', function()
    -- this event run when the player revived. You can put this to in all scripts.
end)

AddEventHandler('brutal_ambulancejob:server:heal', function()
    -- this event run when the player healed. You can put this to in all scripts.
end)

Server Event

With this event you can get the player's Duty status. (true = false) player_job_name = You must enter the player's job name.

local player_job_name = YOU_SHOULD_DEFINIED_IT
TriggerEvent('brutal_ambulancejob:server:GetDutyStatus', player_job_name, function(DutyStatus)
    if DutyStatus then
        print('Duty Status: true')
    else
        print('Duty Status: false')
    end
end)

Last updated

Was this helpful?