Garry's Mod

Garry's Mod

Hint Messages
22 Comments
Смайл  [author] 4 Jan @ 10:36am 
I tweaked the code a bit and now you can use it on maps:
—————————————————————————
concommand.Add("info_hint", function(ply, cmd, args)
if #args < 1 then
ply:PrintMessage(HUD_PRINTCONSOLE, "Usage: info_hint <msg>")
else
local message = table.concat(args, " ")
ply:SendLua([[notification.AddLegacy("]] .. message .. [[", NOTIFY_HINT, 5)]])
end
end)
—————————————————————————
Create triggers on the map and use point_clientcommand to make the player enter console commands when the player touches a trigger. The console command is: info_hint "hint text" — Access for all players.

Example: info_hint "Press F to turn on the flashlight"

To indent, use: \n — Example: info_hint "New mission:\n\nKill all enemies."

You can use this code on a map through Hammer Editor or use it on your server. Save the file as 'info_hint.lua' and put it in the folder 'garrysmod\lua\autorun\server'.
Смайл  [author] 27 Sep, 2024 @ 12:42am 
To do this, you need to create a separate mod or modify the map.

Add triggers all over the map and slightly modify the lua script to display messages only for a special player.
THE BEST MICHAEL GAMING TBMG 26 Sep, 2024 @ 3:31pm 
I wish the hints were automatic set like an AI bought it just knows when you're going to go to the dark room remind you to turn on your flashlight

you should have a mod where it does this automatically so I don't have to set it manually
Смайл  [author] 15 Oct, 2023 @ 8:03am 
Peut-être :)
YohSambre 15 Oct, 2023 @ 8:00am 
bah justement tu mérite plus d'abonnés :3
Смайл  [author] 15 Oct, 2023 @ 7:59am 
Je ne pense pas que ce soit nécessaire, car je ne suis pas très populaire.

Alors merci quand même ^_^
YohSambre 15 Oct, 2023 @ 7:19am 
je pense que ce serais une bonne chose d'ajouter une concommand coté client genre gm_hint_credits qui print dans la console coté client ton pseudo et un lien vers l'addon :lunar2019piginablanket:
Смайл  [author] 11 Oct, 2023 @ 8:59am 
yeap thanks u for comment, bro :>
N 11 Oct, 2023 @ 8:05am 
this is a very good addon, thanks for making this
Róman B. 10 Oct, 2023 @ 2:33am 
Can you also make it to playsound serverside ? :missing: sound/ambient/levels/canals/drip3.wav :missing:
Kai 9 Oct, 2023 @ 12:47pm 
half helpful. half condescending, i love it!
Смайл  [author] 7 Oct, 2023 @ 6:41am 
you'r welcom :3
Froze 7 Oct, 2023 @ 6:35am 
this could definitely be helpful ty
omnipresent cat 6 Oct, 2023 @ 6:23pm 
press w to walk
==Lucanmoonshadow== 5 Oct, 2023 @ 4:06pm 
Hilarious!
Смайл  [author] 5 Oct, 2023 @ 2:11pm 
no that just funny :>
==Lucanmoonshadow== 5 Oct, 2023 @ 2:11pm 
LOL.
Смайл  [author] 5 Oct, 2023 @ 2:08pm 
xDD that right :D:
==Lucanmoonshadow== 5 Oct, 2023 @ 2:08pm 
Game-Tip: Breathing is the best way to avoid death in any standard circumstance, so breathe often! :praisesun:
Смайл  [author] 5 Oct, 2023 @ 1:57pm 
Yeah, why not?) xD
skebob 5 Oct, 2023 @ 1:56pm 
Hint: Water is liquid
Broex 5 Oct, 2023 @ 5:19am 
:steamthumbsup: