Hello,
I’m looking for something like this : http://www.hostingpics.net/viewer.php?id=436253IMG0512.jpg
Thank’s.
Hello,
I’m looking for something like this : http://www.hostingpics.net/viewer.php?id=436253IMG0512.jpg
Thank’s.
Make a client script with this code :
RegisterNetEvent('showNotify')
AddEventHandler('showNotify', function(notify)
ShowAboveRadarMessage(notify)
end)
function ShowAboveRadarMessage(message)
SetNotificationTextEntry("STRING")
AddTextComponentString(message)
DrawNotification(0,1)
end
while true do
-- Citizen.Wait(2500)
TriggerClientEvent('showNotify', -1, GetPlayerName(source).." okkk )")
end
and a server script :
AddEventHandler('playerConnecting', function()
TriggerClientEvent('showNotify', -1,"~g~".. GetPlayerName(source).."~w~ join.")
end)
AddEventHandler('playerDropped', function(reason)
TriggerClientEvent('showNotify', -1,"~r~".. GetPlayerName(source).."~w~ left.")
end)
Thank you !
I go try it out !
Working! Thank you !
Hi, thanks for sharing, I got a problem, the message comes when a person try to connect, I try to display message when player finish connection. Any idea ?
insteed of playerConnecting try to put playerSpawned
Thanks for reply
I tried, i think i will continue, got a prob’, dont know what’s wrong:/
Edit:
AddEventHandler(‘playerSpawn’, function() work well, but each respawn display message
where to put these scripts?
Anyway to limit that to admins?