Garry's Mod

Garry's Mod

Roblox Doors: Экран Смерти
Th3rn 27 Dec, 2022 @ 10:12am
UPDATED CUSTOM MESSAGE GUIDE
This is an updated version on how to create a custom message in gmod doors.

1st step, make sure to uninstall the workshop version of the Doors Death Screen

2nd step, download the github version, so you can edit it.

3rd step, when you have the zip, extract it and put the contents it in garrysmod/lua

4th step, find the doors_death_config and then you will find texts for already existing death messages,

5th step, make a new custom message for a npc.
you can use this example right here:

elseif attacker:GetClass() == "insert npc code name here" then

phrases = {

{ time = 15, text = "CLOSE_DEATH_SCREEN" },
{ time = 10, text= "Text 3" },
{ time = 5, text = "Text 2" },
{ time = 0, text = "Text 1" }

}

Insert the NPC code name there.
Dont do this: "Metrocop"
Do this: "npc_metrocop"

How do you get a npc code name? So go into gmod, then right click on a npc and click copy to clipboard. Now paste it in and you will have the codename.

You can add more text. Just make sure you do it like this {time = 20, text = "Text 4"},

If you want to make the line go to a different line, put /n in.

Then save the file and go in gmod and test that out!
Last edited by Th3rn; 27 Dec, 2022 @ 10:27am