mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:48:52 +00:00
Run menu check and anti-wanted every frame
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
ESX.Blip.CreateBlip = function(coords, text, sprite, color, scale, display)
|
||||
local blip = AddBlipForCoord( table.unpack(coords) )
|
||||
|
||||
SetBlipSprite(blip, sprite)
|
||||
|
||||
if display then
|
||||
SetBlipDisplay(blip, display)
|
||||
end
|
||||
|
||||
if scale then
|
||||
SetBlipScale(blip, scale)
|
||||
end
|
||||
|
||||
if color then
|
||||
SetBlipColour(blip, color)
|
||||
end
|
||||
|
||||
SetBlipAsShortRange(blip, true)
|
||||
|
||||
BeginTextCommandSetBlipName('STRING')
|
||||
AddTextComponentSubstringPlayerName(text)
|
||||
EndTextCommandSetBlipName(blip)
|
||||
|
||||
return blip
|
||||
end
|
||||
@@ -47,7 +47,7 @@ ESX.Scaleform.ShowBreakingNews = function(title, msg, bottom, sec)
|
||||
SetScaleformMovieAsNoLongerNeeded(scaleform)
|
||||
end
|
||||
|
||||
ESX.Scaleform.ShowPopupWarning = function(title, msg, bottom, sec)
|
||||
ESX.Scaleform.ShowPopupWarning = function(title, msg, footer, sec)
|
||||
local scaleform = ESX.Scaleform.Utils.RequestScaleformMovie('POPUP_WARNING')
|
||||
|
||||
BeginScaleformMovieMethod(scaleform, 'SHOW_POPUP_WARNING')
|
||||
@@ -55,7 +55,7 @@ ESX.Scaleform.ShowPopupWarning = function(title, msg, bottom, sec)
|
||||
PushScaleformMovieMethodParameterFloat(500.0) -- black background
|
||||
PushScaleformMovieMethodParameterString(title)
|
||||
PushScaleformMovieMethodParameterString(msg)
|
||||
PushScaleformMovieMethodParameterString(bottom)
|
||||
PushScaleformMovieMethodParameterString(footer)
|
||||
PushScaleformMovieMethodParameterBool(true)
|
||||
|
||||
EndScaleformMovieMethod()
|
||||
|
||||
Reference in New Issue
Block a user