Run menu check and anti-wanted every frame

This commit is contained in:
ElPumpo
2018-12-30 20:57:42 +01:00
parent 6c32c9ede0
commit c95ac3b87f
5 changed files with 31 additions and 6 deletions
+25
View File
@@ -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