About
Join logo is a script that display’s a logo or image for a minute or two when joining the server. It will appear in the bottom right and will fade out after time is up.
The script now has a delay and non delay version. Since update 1.1
hello I use your great script and thank you for the great work you brought.
I have a question.
I explain: then I would like the image to disappear when we go on the map
-- Made by FAXES, Based off HRC
AddEventHandler('onClientMapStart', function()
Citizen.CreateThread(function()
local display = true
TriggerEvent('logo:display', true)
end)
end)
RegisterNetEvent('logo:display')
AddEventHandler('logo:display', function(value)
SendNUIMessage({
type = "logo",
display = value
})
end)
function ShowInfo(text, state)
SetTextComponentFormat("STRING")
AddTextComponentString(text)
DisplayHelpTextFromStringLabel(0, state, 0, -1)
end
-- Pause menu disable hud display
local isPaused = false
Citizen.CreateThread(function()
while true do
Citizen.Wait(10)
if IsPauseMenuActive() and not isPaused then
isPaused = true
TriggerEvent('fax-logo:setDisplay', 0.0)
elseif not IsPauseMenuActive() and isPaused then
isPaused = false
TriggerEvent('fax-logo:setDisplay', 0.5)
end
end
end)
I try to put it in the client but give nothing. Few if you do not mind giving me advice on how to proceed thank you in advance
local IsPaused = false
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
if IsPauseMenuActive() and not IsPaused then
IsPaused = true
TriggerEvent('logo:display', false)
elseif not IsPauseMenuActive() and IsPaused then
IsPaused = false
TriggerEvent('logo:display', true)
end
end
end)