Hi I run a dark rp server and I was wondering if there was a function I could add into my server where a certain entity can be deleted when someone changes there job.
Isn't there a convar for this? Check all the convars on DarkRP's admin menu.
At line 326 in darkrp/gamemode/server/player.lua there is this:
[lua] if tobool(GetConVarNumber("removeclassitems")) then
for k, v in pairs(ents.FindByClass("microwave")) do
if v.SID == self.SID then v:Remove() end
end
for k, v in pairs(ents.FindByClass("gunlab")) do
if v.SID == self.SID then v:Remove() end
end
if t ~= TEAM_MOB and t ~= TEAM_GANG then
for k, v in pairs(ents.FindByClass("drug_lab")) do
if v.SID == self.SID then v:Remove() end
end
end
for k,v in pairs(ents.FindByClass("spawned_shipment")) do
if v.SID == self.SID then v:Remove() end
end
end[/lua]
The convar is rp_removeclassitems. Set it to 1.
[QUOTE=Kittai;37880558]At line 326 in darkrp/gamemode/server/player.lua there is this:
[lua] if tobool(GetConVarNumber("removeclassitems")) then
for k, v in pairs(ents.FindByClass("microwave")) do
if v.SID == self.SID then v:Remove() end
end
for k, v in pairs(ents.FindByClass("gunlab")) do
if v.SID == self.SID then v:Remove() end
end
if t ~= TEAM_MOB and t ~= TEAM_GANG then
for k, v in pairs(ents.FindByClass("drug_lab")) do
if v.SID == self.SID then v:Remove() end
end
end
for k,v in pairs(ents.FindByClass("spawned_shipment")) do
if v.SID == self.SID then v:Remove() end
end
end[/lua]
The convar is rp_removeclassitems. Set it to 1.[/QUOTE]
I wanted him to work for himself instead of constantly asking a shitton of basic questions :v:
[QUOTE=nick_9_8;37880971]I wanted him to work for himself instead of constantly asking a shitton of basic questions :v:[/QUOTE]
I'm sorry just wanted to be helpful :(
You were helpful thank you don't listen to the people above trying to waste valuable time. [QUOTE=Kittai;37882806]I'm sorry just wanted to be helpful :([/QUOTE]
[editline]2nd October 2012[/editline]
I don't have time I'm a busy person and like speedy answers![QUOTE=nick_9_8;37880971]I wanted him to work for himself instead of constantly asking a shitton of basic questions :v:[/QUOTE]
[QUOTE=Kittai;37882806]I'm sorry just wanted to be helpful :([/QUOTE]
Don't worry, you're helping him out. You're a champ.
[QUOTE=puppycheese;37886093]You were helpful thank you don't listen to the people above trying to waste valuable time.
[editline]2nd October 2012[/editline]
I don't have time I'm a busy person and like speedy answers![/QUOTE]
Oh such a busy person you are running your server, work work work.
You can't be serious.
[QUOTE=puppycheese;37886093]You were helpful thank you don't listen to the people above trying to waste valuable time.
[editline]2nd October 2012[/editline]
I don't have time I'm a busy person and like speedy answers![/QUOTE]
Speedy answers lead to more questions later on.
I go to a university and I have a family too! I'm very busy and don't have time for your bullshit[QUOTE=nick_9_8;37893200]Don't worry, you're helping him out. You're a champ.
Oh such a busy person you are running your server, work work work.
You can't be serious.[/QUOTE]
[editline]5th October 2012[/editline]
not true! [QUOTE=Assault_Trooper;37893481]Speedy answers lead to more questions later on.[/QUOTE]
Sorry, you need to Log In to post a reply to this thread.