onClientMapStart Join Notification issue

I’m basically just trying to set it so whenever a player joins the game it will display a notification.

I thought about using ‘playerSpawned’ however it would display the notification on every respawn.

I’m using this but it isn’t loading, any ideas?

AddEventHandler('onClientMapStart', function()
   drawNotification('~w~Press ~r~F3 ~w~to open the server interaction menu.')
end)


function drawNotification(text)
    SetNotificationTextEntry("STRING")
    AddTextComponentString(text)
    DrawNotification(false, false)
end
1 Like

Any ideas?

(20 Chars)

Just have a Boolean that you toggle when the player has already spawned to make sure you only run the code once…

local someBool = true
if someBool then -- Should run once
     print("Hello")
     someBool = false
end