This topic has been locked
anthony 21 Nov, 2022 @ 9:22am
Problema con los jobs.
Hola buenas, estoy iniciando mi propio servidor darkrp para jugar con mis amigos pero tengo un problema, por algún motivo cada vez que añado un nuevo trabajo se me desaparecen los trabajos y me pasan muchas cosas, vosotros que sois unos cracks, me podeís revisar el documento para ver que está mal y que puede estar ocasionando eso? Muchas gracias de antemano! (Aqui abajo esta asi tal cual como lo tengo, os dareís cuenta que no tengo mucha idea de esto jajaja gracias)

--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.

Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.

The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua

For examples and explanation please visit this wiki page:
https://darkrp.miraheze.org/wiki/DarkRP:CustomJobFields

Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CRIMINALS = DarkRP.createJob("Coquero", {
color = Color(0, 0, 0),
model = {"models/player/CHILI/lance2.mdl",
"models/player/CHILI/ryder.mdl"},
description = [[A vender coca en el paseo]],
weapons = {
"m9k_colt1911"
},
command = "Coquero",
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = true,
category = "Criminals",
canDemote = false,
})
TEAM_CITIZEN = DarkRP.createJob("Grupo De Operaciones Especiales", {
color = Color(0, 0, 0),
model = "models/player/swat/ron_swat/models/ronswat.mdl",
description = [[
Eres un agente del G.E.O que saldrá en lucha de su país contra los criminales en los peores casos usando las tácticas más ingeniosas.
]],
weapons = {
"m9k_g36",
"m9k_spas12",
"m9k_mp5",
"m9k_barret_m82",
"m9k_hk45",
"weaponchecker",
"door_ram",
"med_kit",
"guigui_handcuffs"
},
command = "Geo",
max = 6,
salary = 50000,
admin = 0,
vote = false,
hasLicense = true,
category = "Citizens",
canDemote = false,
})
TEAM_CITIZENS = DarkRP.createJob("Goku", {
color = Color(0, 0, 0),
model = "models/argentini/gokudrip.mdl",
description = [[
mkameculojasjdsjasdjksalds.
]],
weapons = {
"final_kamehameha", "fly"
},
command = "memes",
max = 6,
salary = 15000,
admin = 0,
vote = false,
hasLicense = true,
category = "Citizens",
canDemote = false,
})
TEAM_DELINCUENTES = DarkRP.createJob("SeniorCrimen", {
color = Color(0, 0, 0),
model = {
"models/sentry/gtav/mexican/aztecapm.mdl",
"models/player/CHILI/cesar.mdl",
"models/player/CHILI/bigsmoke.mdl",
"models/kryptonite/spiderman_punk/spiderman_punk.mdl",
"models/kryptonite/spiderman_bombastic/spiderman_bombastic.mdl",
"models/sentry/gtav/mexican/fvagospm.mdl",
"models/protagonist.mdl",
"models/player/foohysaurusrex.mdl",
"models/player/deadpool.mdl",
"models/player/CHILI/ogloc.mdl",
"models/minecraft/steve/steve.mdl"
},
description = [[
Tienes una palanca para colarte en casas, unas ganzuas para librar a tus homies de las esposas y un revolver que impone respeto. Enseñales a esos policias quien manda! Eres un fracasado asi que estás en el paro, te toca hacer encargos y robar.
]],
weapons = {
"lockpick",
"guigui_handcuffs_lockpick",
"m9k_model627",
"weapon_r_restrains"
},
command = "Chorro",
max = 10,
salary = 150,
admin = 0,
vote = false,
hasLicense = false,
category = "Delincuentes",
canDemote = false,
})
timer.Simple(5, function()
local allowedTeam = {TEAM_CRIMINALS, TEAM_CRIMINALS} -- Jobs what are allowed to buy cocaine supplies.

DarkRP.createCategory{
name = "Cocaine Supplies",
categorises = "entities",
startExpanded = true,
color = Color(255, 165, 0, 255),
sortOrder = 100,
canSee = function(ply) return true end,
}

DarkRP.createEntity("Pot for growing Coca Plant", {
ent = "ecl_plant_pot",
model = "models/props_junk/terracotta01.mdl",
price = 150,
max = 5,
cmd = "eclbuypp",
category = "Cocaine Supplies",
allowed = TEAM_CRIMINALS
})

if (ECL.CustomModels.Stove) then
DarkRP.createEntity("Portable Stove", {
ent = "ecl_stove",
model = "models/srcocainelab/portablestove.mdl",
price = 1000,
max = 4,
cmd = "eclbuyst",
category = "Cocaine Supplies",
allowed = TEAM_CRIMINALS
})
else
DarkRP.createEntity("Stove", {
ent = "ecl_stove",
model = "models/props_c17/furnitureStove001a.mdl",
price = 5000,
max = 1,
cmd = "eclbuyst",
category = "Cocaine Supplies",
allowed = TEAM_CRIMINALS
})
end

DarkRP.createEntity("Pot for cooking Cocaine", {
ent = "ecl_pot",
model = "models/props_c17/metalPot001a.mdl",
price = 500,
max = 4,
cmd = "eclbuyp",
category = "Cocaine Supplies",
allowed = TEAM_CRIMINALS
})

DarkRP.createEntity("Box for collecting leaves", {
ent = "ecl_leafbox",
model = "models/props_junk/cardboard_box004a.mdl",
price = 150,
max = 5,
cmd = "eclbuycl",
category = "Cocaine Supplies",
allowed = TEAM_CRIMINALS
})

DarkRP.createEntity("Kerosin", {
ent = "ecl_kerosin",
model = "models/props_junk/metal_paintcan001a.mdl",
price = 750,
max = 8,
cmd = "eclbuyks",
category = "Cocaine Supplies",
allowed = TEAM_CRIMINALS
})

if (ECL.CustomModels.Gascan) then
DarkRP.createEntity("Gascan", {
ent = "ecl_gas",
model = "models/srcocainelab/gascan.mdl",
price = 500,
max = 5,
cmd = "eclbuygs",
category = "Cocaine Supplies",
allowed = TEAM_CRIMINALS
})
else
DarkRP.createEntity("Gas for Stove", {
ent = "ecl_gas",
model = "models/props_junk/propane_tank001a.mdl",
price = 500,
max = 5,
cmd = "eclbuygs",
category = "Cocaine Supplies",
allowed = TEAM_CRIMINALS
})
end;

DarkRP.createEntity("Gasoline", {
ent = "ecl_gasoline",
model = "models/props_junk/metalgascan.mdl",
price = 1000,
max = 2,
cmd = "eclbuygl",
category = "Cocaine Supplies",
allowed = TEAM_CRIMINALS
})

DarkRP.createEntity("Water for Drufing Leaves", {
ent = "ecl_drafted",
model = "models/props_junk/plasticbucket001a.mdl",
price = 500,
max = 4,
cmd = "eclbuydl",
category = "Cocaine Supplies",
allowed = TEAM_CRIMINALS
})

DarkRP.createEntity("Sulfuric Acid", {
ent = "ecl_sulfuric_acid",
model = "models/props_junk/garbage_milkcarton001a.mdl",
price = 1000,
max = 2,
cmd = "eclbuysa",
category = "Cocaine Supplies",
allowed = TEAM_CRIMINALS
})

end)
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN
--[[---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------]]
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_HITMAN)
< >
Showing 1-2 of 2 comments
Como lo hiciste con el tema de los TEAM?
estoy tratando de encontrar como editar eso y no, no doy con ello
Mike 7 Jul @ 8:28pm 
This thread was quite old before the recent post, so we're locking it to prevent confusion.
< >
Showing 1-2 of 2 comments
Per page: 1530 50