diff --git a/client/functions.lua b/client/functions.lua index 7ac4387f..6cba9fe5 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -73,6 +73,14 @@ ESX.ShowHelpNotification = function(msg, thisFrame, beep, duration) end end +ESX.ShowFloatingHelpNotification = function(msg, coords) + AddTextEntry('esxFloatingHelpNotification', msg) + SetFloatingHelpTextWorldPosition(1, coords) + SetFloatingHelpTextStyle(1, 1, 2, -1, 3, 0) + BeginTextCommandDisplayHelp('esxFloatingHelpNotification') + EndTextCommandDisplayHelp(2, false, false, -1) +end + ESX.TriggerServerCallback = function(name, cb, ...) ESX.ServerCallbacks[ESX.CurrentRequestId] = cb