Garry's Mod

Garry's Mod

Map Prompts - Map-based text prompts system
 This topic has been pinned, so it's probably important
Sergeant Pan  [developer] 24 Jun, 2022 @ 1:01am
For adding Map Prompts support to other maps
I am well aware this addon is severely lacking in map support, however this addon is intended to function as a framework for adding support.

If you are even semi-competent at LUA editing and handling XYZ positions, use the file below to create custom map extensions.

This[github.com] is the new and reformatted script file.

The file is fully documented, with as much help as I can provide to users.

If issues arise post them here, I will do my best to assist.
Last edited by Sergeant Pan; 13 Jul, 2022 @ 10:38am
< >
Showing 1-15 of 30 comments
Watchful 28 Jun, 2022 @ 12:08am 
@Sergeant Pan is there a way I can test my file?
Sergeant Pan  [developer] 28 Jun, 2022 @ 12:10am 
@Watchful Just jump in game and load up the map.

If the prompt appears with your text then it works.
Watchful 28 Jun, 2022 @ 12:23am 
Be aware that at line 369 it appears your are missing a letter in "and"
Sergeant Pan  [developer] 28 Jun, 2022 @ 12:25am 
@Watchful

Yeah I saw that, but the current version should be fully functional.
Watchful 28 Jun, 2022 @ 12:26am 
Alright, also to elaborate on the first message, where specifically do i put the file to test it?
Sergeant Pan  [developer] 28 Jun, 2022 @ 12:32am 
In addons you create a folder path like this

"Addon Name/lua/autorun/client/CustomLuaFile.lua"
Watchful 28 Jun, 2022 @ 1:16am 
Okay, thank you
do an addon on Gm_Krot
Sergeant Pan  [developer] 28 Jun, 2022 @ 10:47am 
KV-2 28 Jun, 2022 @ 10:58am 
i have a dirty hong kong themed map I wonder what would you do?

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2733493941
Watchful 28 Jun, 2022 @ 11:55am 
@kv-2 I can make that for ya if you wish.
KV-2 28 Jun, 2022 @ 12:36pm 
Originally posted by Watchful:
@kv-2 I can make that for ya if you wish.
ye go ahead
Watchful 28 Jun, 2022 @ 12:46pm 
@Sergeant Pan looked through my file thoroughly but at 272 I just cant find anything wrong and I get this error :
[mapprompts gm_bigcity] lua/includes/modules/draw.lua:139: bad argument #1 to 'gmatch' (string expected, got nil)
1. gmatch - [C]:-1
2. DrawText - lua/includes/modules/draw.lua:139
3. v - addons/mapprompts gm_bigcity/lua/autorun/client/mapprompts_custommap.lua:272
4. unknown - lua/includes/modules/hook.lua:96 (x36)
Sergeant Pan  [developer] 28 Jun, 2022 @ 12:48pm 
@Watchful

A word at 272 is not the same as elsewhere in the file. Either there's a typo or a missing case. The code is very specific about uppercase/lowercase letters.
< >
Showing 1-15 of 30 comments
Per page: 1530 50