mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user