How do you add a tooltip/notification in the top left of the screen?

I am trying to figure out how to add a tooltip in the top-left corner of my screen whenever someone wants to enter an interior (Example: Press E to enter). Like the FRfuel script when you pull up to the pumps.

Any help would be greatly appreciated :wink:

I mean. Depends on what script your using to enter those interiors. Add something, like this to it? And you could add an if statement to that, when the person is close to or near the entrance it prints out that notification for a short while or keeps it on the screen.

Find other notifications using this website https://runtime.fivem.net/doc/reference.html#_n_CFX

Otherwise this might be what you’re looking for

notification('To Enter Press ~b~[E]~w~') -- ~b~ Is for blue and ~w~ ends the coloring.  Call this in something. 

function notification(msg) --Msg is part of the Text String at B
	SetNotificationTextEntry('STRING')
	AddTextComponentString(msg) -- B
	DrawNotification(true, false) -- Look on that website for what these mean, I forget. I think one is about flashing or not
end
	
1 Like

This might work. I’ll give it a try.

that should work just fine

Hi! Maybe something like this could be useful:

https://freemode.readme.io/v1.3/reference#fs_freemodenotifyicon-type-color-sender-title-text

https://wiki.■■■■■■■■■■■/index.php?title=Notification_Pictures

1 Like

Thanks this is what I was looking for ‘displayHelp’.

This is pretty much what I’m trying to accomplish.
fwfrfsfeee

1 Like

UPDATE: Just figured it out.

For anyone that needs help finding this:

do you know how change position of this box?

You can’t.