1
0
Fork 0
forked from Simnation/Main
Main/resources/[carscripts]/slashtires/bridge/notification/esx.lua
2025-06-07 08:51:21 +02:00

23 lines
518 B
Lua

if not ESX then
local exportExists, obj = pcall(function()
return exports.es_extended:getSharedObject()
end)
if exportExists then
ESX = obj
else
TriggerEvent('esx:getSharedObject', function(esx)
ESX = esx
end)
while not ESX do
Wait(100)
end
end
end
---Displays a notification to the player
---@param message string
function DisplayNotification(message)
ESX.ShowNotification(message, 'error')
end