qbcore-framework / qb-taxijob

Taxi Job For QB-Core
GNU General Public License v3.0
26 stars 160 forks source link

duty blip text #74

Closed DoctorFrosty closed 10 months ago

DoctorFrosty commented 1 year ago

Describe the bug code for the duty blip text doesn't change when going on and off duty. also looks like the text output is printing the word "info." into the text box

f8 is also printing "Missing phrase for key: "on_duty""

To Reproduce go to on/off duty blip, blip works but text doesn't change when on or off duty, duty status still changes correctly, and notification of duty change also works correctly

Expected behavior to shop duty status .

[CODE]

dutyZone:onPlayerInOut(function(isPointInside)
    if isPointInside then
        dutyKey = true
        if not PlayerJob.onduty then
            exports['qb-core']:DrawText(Lang:t('info.on_duty'),'left')
        else
            exports['qb-core']:DrawText(Lang:t('info.off_duty'),'left')
        end
        onDuty()
    else
        dutyKey = false
        exports['qb-core']:HideText()
    end
end)

end)

KeeganAI commented 1 year ago

im on it!

DoctorFrosty commented 1 year ago

im on it!

Legend. thanks for the fast replies, love the taxi script :)

KeeganAI commented 1 year ago

im on it!

Legend. thanks for the fast replies, love the taxi script :)

spent many hours in these days, appreciate it

DoctorFrosty commented 1 year ago

im on it!

Legend. thanks for the fast replies, love the taxi script :)

spent many hours in these days, appreciate it

Hey bud, not sure if anyone has tested this but still having issues getting the text to swap depending weather on duty or not. its all displaying as it looks like it should from the code. but the text box always says go off duty no matter what the duty state is? any ideas?

github-actions[bot] commented 10 months ago

This issue has had 60 days of inactivity & will close within 7 days