I’m trying to make a message with multiple different colors in it appear when the player first spawn but it cuts off the message instead of changing the colors. (Because it doesn’t work like that)
Anyways this is what I tried.
AddEventHandler("playerSpawned", function(spawn)
if firstspawn == true then else
TriggerEvent("chatMessage", "", { 255, 255, 255 }, "Welcome to the server! Write ",{ 100, 255, 100 },"/car", { 255, 255, 255 }," or ",{ 100, 255, 100 },"/bike", { 255, 255, 255 }," in the chat to spawn a vehicle.")
TriggerEvent("chatMessage", "", { 255, 255, 255 }, "You can respawn at any time using ",{ 255, 100, 100 },"/suicide", { 255, 255, 255 },"!")
firstspawn = true
end
end)
Sorry for posting three times in one day, I’m very new to FiveM.