Implemented ShowFloatingHelpNotification() (#662)

* Implement Floating Text

use `ESX.ShowFloatingHelpNotification("lol")` in a loop

* Removed beep and broken duration, fixed indent

Co-authored-by: Lucas <63737942+SSNIKRS@users.noreply.github.com>
Co-authored-by: ElPumpo <samo_kol@hotmail.com>
This commit is contained in:
Lucas
2020-04-15 20:44:36 +02:00
committed by GitHub
parent 17ac9d5846
commit ab3cf826da
+8
View File
@@ -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