Garry's Mod

[DARKRP] Code that makes the player die before changing jobs?

Submitted by Pimentxa, , Thread ID: 171349

Thread Closed
11-05-2020, 03:20 AM
#1
Does anyone have any code like that? Or can you help me create it?

RE: [DARKRP] Code that makes the player die before changing jobs?

#2
What do you mean?

Usually you die, then the job change happens after.

If that's not the case you might have a bug.

RE: [DARKRP] Code that makes the player die before changing jobs?

#3
you need to into darkrpmodification/darkrp_config/dark_settings.lua and find the code that says about death upon change of job or respawn on job change

RE: [DARKRP] Code that makes the player die before changing jobs?

#4
darkrpmodification/darkrp_config/dark_settings.lua to GM.Config.norespawn = false

RE: [DARKRP] Code that makes the player die before changing jobs?

#5
Restart your server after changing the file. just an FYI. I forgot to reset my server and i went through the config trying to figure out what i did wrong.

RE: [DARKRP] Code that makes the player die before changing jobs?

#6
Why does the player need to die here in the first place, that's what I'm curious about. I need the details of the same asap. Why is this the case, please someone tell me.

RE: [DARKRP] Code that makes the player die before changing jobs?

#7
hook.Add('OnPlayerChangedTeam', 'LetsDieDuuuude', function()
ply:Kill
end)

put that into sv part (for example lua/autorun/server/myhook.lua
enjoy

Users browsing this thread: 1 Guest(s)