• Приветствуем на сайте, Гость! Обязательно ознакомьтесь с условиями и правилами Публичной оферты Проекта NetZONA.org: https://netzona.org/help/public-offer/

  • Приветствуем на сайте, Гость! Обязательно ознакомьтесь с условиями и правилами использования Ваших файлов cookie на Проекте NetZONA.org: https://netzona.org/help/cookies/

  • Приветствуем на сайте, Гость! Обязательно ознакомьтесь с Политикой конфиденциальности Проекта NetZONA.org: https://netzona.org/pages/privacy-policy/

  • Ответы на основные вопросы: https://netzona.org/threads/populjarnye-voprosy-i-otvety-na-nix.6122/

  • Приветствуем на сайте, Гость! Приобрести (купить) Информационную услугу (в том числе группу "Проверенный") на Проекте NetZONA.org: https://netzona.org/account/upgrades

Ребзя хелпаните с профессиями

Asmodeeeus

Пользователь
Регистрация
17 Май 2020
Сообщения
12
Реакции
0
Баллы
14
Прописал профессии в jobs, но при заходе на сервер в углу выбивает ошибку, мол DarkRP создает скриптовые ошибки, а как зашел, то не открывается F4 menu. В вайтлисте вообще пусто, ничего нет.
В консоли игры выбивает эту ошибку:

[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62


В консоли сервера такую:


[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:239: attempt to index local 'jobTable' (a nil value)
1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:239


Хелпаните, ребзя
 
Только эти ошибки? Там нет ошибок других? Обычно как ты сказал после редактирования проф у тебя ошибки, значит ты что-то упустил в луа jobs. Просмотри внимательно все запятые и скобки
 
Только эти ошибки? Там нет ошибок других? Обычно как ты сказал после редактирования проф у тебя ошибки, значит ты что-то упустил в луа jobs. Просмотри внимательно все запятые и скобки

Проверил все. Вообще профы писал через cSite. Допустил одну ошибку, но исправил. В результате их только больше стало.
Это в консоле игры:


[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62


[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:6: attempt to index local 'jobTable' (a nil value)
1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:6
2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62

ERROR
The condition of chat command "addjailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "addlaw" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "broadcast" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "givelicense" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "jailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "lockdown" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "lottery" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "removelaw" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "setjailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "unlockdown" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "addjailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "addlaw" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "broadcast" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "givelicense" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "jailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "lockdown" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "lottery" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "removelaw" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "setjailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "unlockdown" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.


Это сервера:


[Asmodeus|2|STEAM_0:0:90317850] Lua Error:

[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62


L 05/21/2020 - 02:11:23: Lua Error:
[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:239: attempt to index local 'jobTable' (a nil value)
1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:239



[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:239: attempt to index local 'jobTable' (a nil value)
1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:239

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:

[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:6: attempt to index local 'jobTable' (a nil value)
1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:6
2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62


L 05/21/2020 - 02:11:25: Lua Error:
[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:232: attempt to index local 'jobTable' (a nil value)
1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:232



[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:232: attempt to index local 'jobTable' (a nil value)
1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:232

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "addjailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "addlaw" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "broadcast" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "givelicense" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "jailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "addjailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "addlaw" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
 
Проверил все. Вообще профы писал через cSite. Допустил одну ошибку, но исправил. В результате их только больше стало.
Это в консоле игры:


[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62


[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:6: attempt to index local 'jobTable' (a nil value)
1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:6
2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62

ERROR
The condition of chat command "addjailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "addlaw" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "broadcast" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "givelicense" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "jailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "lockdown" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "lottery" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "removelaw" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "setjailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "unlockdown" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "addjailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "addlaw" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "broadcast" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "givelicense" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "jailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "lockdown" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "lottery" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "removelaw" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "setjailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
ERROR
The condition of chat command "unlockdown" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.


Это сервера:


[Asmodeus|2|STEAM_0:0:90317850] Lua Error:

[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:23
2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62


L 05/21/2020 - 02:11:23: Lua Error:
[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:239: attempt to index local 'jobTable' (a nil value)
1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:239



[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:239: attempt to index local 'jobTable' (a nil value)
1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:239

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:

[DarkRP] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:6: attempt to index local 'jobTable' (a nil value)
1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:6
2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62


L 05/21/2020 - 02:11:25: Lua Error:
[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:232: attempt to index local 'jobTable' (a nil value)
1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:232



[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:232: attempt to index local 'jobTable' (a nil value)
1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:232

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "addjailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "addlaw" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "broadcast" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "givelicense" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "jailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "addjailpos" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.

[Asmodeus|2|STEAM_0:0:90317850] Lua Error:
ERROR
The condition of chat command "addlaw" threw an error:
gamemodes/darkrp/gamemode/libraries/fn.lua:252: attempt to index local 'xs' (a nil value)

If this is the command of a custom job, you probably did something wrong when making it.
Чето либо гейммод крашнутый или ты точно накосячил с jobs.lua. Удали файл этот и залей такой же но пустой абсолютно. Проверь, если ошибки снова будут, переустанови гейммод даркрп. Если снова нет, удали в аддонах darkrpmodification и залей новый. Тут уже 100% поможет, а потом по 1 профе добавляй и проверяй
 
Чето либо гейммод крашнутый или ты точно накосячил с jobs.lua. Удали файл этот и залей такой же но пустой абсолютно. Проверь, если ошибки снова будут, переустанови гейммод даркрп. Если снова нет, удали в аддонах darkrpmodification и залей новый. Тут уже 100% поможет, а потом по 1 профе добавляй и проверяй

Спасибо за помощь, бро. Сейчас попробую
 
Чето либо гейммод крашнутый или ты точно накосячил с jobs.lua. Удали файл этот и залей такой же но пустой абсолютно. Проверь, если ошибки снова будут, переустанови гейммод даркрп. Если снова нет, удали в аддонах darkrpmodification и залей новый. Тут уже 100% поможет, а потом по 1 профе добавляй и проверяй

Это снова я. Прости, что беспокою. Короче я попробовал поставить джоб скачанный со стандартными работами, к нему прилагались категории. В общем со скачанным работает все. Попробовал сделать максимально похоже в своем джобе, но все равно ошибку выбивает и профессий тупо нет. Пробовал тестировать с модельками, оружием, убрал дополнительные настройки, но все так же. Не понимаю сам в чем дело. Можешь помочь? Если что, могу для разбора скинуть джоб вместе с категориями
 
Это снова я. Прости, что беспокою. Короче я попробовал поставить джоб скачанный со стандартными работами, к нему прилагались категории. В общем со скачанным работает все. Попробовал сделать максимально похоже в своем джобе, но все равно ошибку выбивает и профессий тупо нет. Пробовал тестировать с модельками, оружием, убрал дополнительные настройки, но все так же. Не понимаю сам в чем дело. Можешь помочь? Если что, могу для разбора скинуть джоб вместе с категориями
Кинь посмотрю
 

у тебя одинаковые TEAM профы. То есть
TEAM_NO = DarkRP.createJob("Подручный", {
TEAM_NO = DarkRP.createJob("Лил Крип", {
TEAM_NO = DarkRP.createJob("Стрит Гангста", {
Ты должен на каждую профу новый TEAM а не у каждого TEAM_NO (пример TEAM_NOM, TEAM_NOR, TEAM_GAY).
Так же у тебя нет параметра
max = число, -- сколько можно будет брать такую профу


Кста я до сих пор не понимаю что значит startExpanded = true, но лично у меня на сервере всегда false (в категориях)
 
у тебя одинаковые TEAM профы. То есть
TEAM_NO = DarkRP.createJob("Подручный", {
TEAM_NO = DarkRP.createJob("Лил Крип", {
TEAM_NO = DarkRP.createJob("Стрит Гангста", {
Ты должен на каждую профу новый TEAM а не у каждого TEAM_NO (пример TEAM_NOM, TEAM_NOR, TEAM_GAY).
Так же у тебя нет параметра
max = число, -- сколько можно будет брать такую профу


Кста я до сих пор не понимаю что значит startExpanded = true, но лично у меня на сервере всегда false (в категориях)

Все, спасибо, бро
StartExpended - это вроде как параметр, который определяет будет ли раскрыта категория в F4
 
у тебя одинаковые TEAM профы. То есть
TEAM_NO = DarkRP.createJob("Подручный", {
TEAM_NO = DarkRP.createJob("Лил Крип", {
TEAM_NO = DarkRP.createJob("Стрит Гангста", {
Ты должен на каждую профу новый TEAM а не у каждого TEAM_NO (пример TEAM_NOM, TEAM_NOR, TEAM_GAY).
Так же у тебя нет параметра
max = число, -- сколько можно будет брать такую профу


Кста я до сих пор не понимаю что значит startExpanded = true, но лично у меня на сервере всегда false (в категориях)


Что ж, смотри. В общем, я сделал так, как ты сказал. Поменял тимы, у всех они теперь уникальные. Поставил число, сколько можно брать в профу, но почему-то снова ничего. Почему-то с другим все пашет, а тут нет. Может быть такое, что из-за какого-то аддона так? Или из-за самой сборки? Просто я уже рил хз, что тут поменять можно. Я, конечно, в этом всем деле не ас, но вроде уже даже все проверил. Даже дополнительно настройки просмотрел.
Это все стало происходить, когда я дополнительно профессии добавил. У меня сначала были ток гражданские и банда, все. Сейчас добавил правительство и МВД. В результате это стало происходить. Может какое-то ограничение стоять или что-то в этом роде?

Выбивает в консоле сервера это:

[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:676: attempt to index local 'jobTable' (a nil value)
1. playerSpawnHook - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:676
2. unknown - lua/tools/sv_administration.lua:161
3. Spawn - [C]:-1
4. unknown - lua/autorun/server/save_module.lua:100
 
я хз че у тебя постоянно не так, попробуй тогда мои профы


Lua:
TEAM_ONE = DarkRP.createJob("Граждан", {
   color = Color(0, 201, 8, 255),
   model = {"models/humans/modern/male_01_03.mdl", "models/humans/modern/female_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_01.mdl"},
   description = [[ тут описание бла бла бла]],
   weapons = { "itemstore_pickup", "sieghail", "weapon_physcannon", "weapon_physgun", "augmented_fists","gmod_tool", "nw1"},
   command = "citizen",
   max = 0,
   salary = 0,
   admin = 0,
   vote = false,
   hasLicense = false,
   candemote = false,
  
   medic = false,
   chief = false,
   mayor = false,
   hobo = false,
   cook = false,
   category = "Основные работы",
})

TEAM_HOBO = DarkRP.createJob("Бездомный", {
   color = Color(94, 50, 0, 255),
   model = {"models/player/corpse1.mdl"},
   description = [[Бездомный находится в самом низу общественного стоя. бла бла бла]],
   weapons = { "itemstore_pickup", "weapon_hl2bottle", "weapon_angryhobo", "weapon_hl2pot", "weapon_hl2pipe", "sieghail", "weapon_bugbait", "weapon_physcannon", "weapon_physgun", "augmented_fists","gmod_tool"},
   command = "Hobo",
   max = 0,
   salary = 0,
   admin = 0,
   vote = false,
   hasLicense = false,
   candemote = false,
   medic = false,
   chief = false,
   mayor = false,
   hobo = true,
   cook = false,
   category = "Основные работы",

})



Код:
DarkRP.createCategory{
   name = "Основные работы",
   categorises = "jobs",
   startExpanded = false,
   color = Color(18, 135, 0, 255),
   canSee = function(ply) return true end,
   sortOrder = 10,
}
Это 100% работает. Если заработало, просто копируй и меняй под свои нужды
 
Главная Регистрация
Назад
Сверху