Short script for displaying text like in the real game. (not in the chat)
Use in any other script: TriggerEvent(“mt:missiontext”, String text , int timeInMillis )
Download: fivem_missiontext-master.zip (1.2 KB)
example: TriggerEvent(“mt:missiontext”, “Here is some ~r~red~w~ text.”, 500)
red ~r~text~w~
orange ~o~text~w~
cyan ~c~text~w~
etc.
6 Likes
Hey, thanks for this information! This will help a lot of people out with making a more real experience on servers!
1 Like
Boss
January 24, 2017, 2:57pm
3
Do you have an example image?
del1an
March 18, 2017, 1:04pm
5
another simple example : MissionText (“Hi, ~o~orange~w~.”, 500)
function MissionText(text, time)
ClearPrints()
AddTextEntry("MissionText", text)
BeginTextCommandPrint("MissionText")
AddTextComponentSubstringPlayerName(text)
EndTextCommandPrint(time or 0, true)
end
2 Likes
Where do I put this to install it? Just in resource? And then what is the command for the cit-mp.yml?
1 Like
Whether it is possible as that to set occurrence of mission on the set key?
Can it be added a way to relocate the text? Bottom or top or right or left.
Script and maps in fivemstore