diff --git a/client/cl_main.lua b/client/cl_main.lua index eb7558f..deff840 100644 --- a/client/cl_main.lua +++ b/client/cl_main.lua @@ -227,12 +227,24 @@ CreateThread(function() if inZone and not alreadyEnteredZone then alreadyEnteredZone = true - TriggerEvent('cd_drawtextui:ShowUI', 'show', text) + if Config.Interaction == "qb" then + exports['qb-core']:DrawText(text, "left") + elseif Config.Interaction == "cd" then + TriggerEvent('cd_drawtextui:ShowUI', 'show', text) + else + exports['qb-drawtext']:DrawText(text, "left") + end end if not inZone and alreadyEnteredZone then alreadyEnteredZone = false - TriggerEvent('cd_drawtextui:HideUI') + if Config.Interaction == "qb" then + exports['qb-core']:HideText() + elseif Config.Interaction == "cd" then + TriggerEvent('cd_drawtextui:HideUI') + else + exports['qb-drawtext']:HideText() + end end end end) \ No newline at end of file diff --git a/config.lua b/config.lua index 6c709da..dfaad5a 100644 --- a/config.lua +++ b/config.lua @@ -1,4 +1,7 @@ Config = Config or {} + +Config.Interaction = "qb" -- qb = qb-core drawtext / cd = cd drawtext / draw = qb-drawtext + Config.Ped = { { type = "fivem-appearance",