There are 2 ‘kinds’ of notification in the game, one above the map, which I can draw using DRAW_NOTIFICATION native, and one in the top left corner that usually triggers when user enters a marker. This notification has also this beep sound (always appeared in GTA games when using cheats)… how do I draw that notification, including sound?
EDIT: found the native, END_TEXT_COMMAND_DISPLAY_HELP, I haven’t tested it yet, but looks like it’s what I was looking for
1 Like
Oneda
2
I am not really sure, but wouldnt it be two separate natives? One for calling the notification and another one for calling the beep sound?
If not, I would also love to know how to.
One of the bool parameters toggles the “beep”, I think it should be on the FiveM natives reference page.
Like @Oneda said, the sound will be an another thing(PLAY_SOUND_FRONTEND), I think this is DISPLAY_HELP_TEXT_THIS_FRAME native, which you need to call in every frame you want it to appear.
Edit: @Vespura for the help text there is no beep Boolean.
1 Like
Yes there is. And no you don’t use that audio native. The native you want to use is not called displayhelptextthisframe btw, but a different one that does the same thing with more options, which you don’t need to call every frame, but you can do it if you want.
I’ll show an example whenever I get to a pc again.
Just to confirm, we’re talking about the text that appears in the top left corner with a black background right?
1 Like
Hmm interesting… I will check it out… Thanks for the info.
yes, it’s this ‘help’ notification or however I should call it -
1 Like
found the native, END_TEXT_COMMAND_DISPLAY_HELP, I haven’t tested it yet, but looks like it’s what I was looking for
1 Like
Alright, little bit later than planned, but here it is.
Code:
-- Start the help display command.
BeginTextCommandDisplayHelp("THREESTRINGS")
-- Add 3 strings, because we used "THREESTRINGS" above.
AddTextComponentSubstringPlayerName("This is the First line.")
AddTextComponentSubstringPlayerName("This is the Second line.")
AddTextComponentSubstringPlayerName("Hello ~INPUT_CONTEXT~ key preview.")
-- End the command and display the help message.
EndTextCommandDisplayHelp(0, false, true, 6000)
Parameters used:
-
0: shape, use 0 for the ‘normal’ display, use 1 for a ‘old’ style which is kind of broken.
-
false: loop, set this to true if you want to call this function every single frame (whenever you’re looping it), set it to false if you just want to call it once.
-
true: bleep, set this to true if you want to make the notification sound.
-
6000: duration, the notification will show for 6000 ms (6 seconds).
This looks something like this:

The “threestrings” thing allows you to add 3 strings, each being (max) 99 characters long.
6 Likes