Author Topic: Police spawning with a extra weapon  (Read 3629 times)

0 Members and 1 Guest are viewing this topic.

Offline Sharkbait

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Police spawning with a extra weapon
« on: November 05, 2020, 05:59:14 PM »
All police jobs are spawning with the default half life RPG, I don't know what would be causing this to happen I looked for any signs for fixes online but failed to find people with this same problem.

Before you ask the jobs don't have that in their "weapons"

TEAM_POLICE = DarkRP.createJob("Police Officer", {
   color = Color(25, 25, 170, 255),
   model = "models/taggart/police01/male_08.mdl",
   description = [[The protector of every citizen that lives in the city .
      You have the power to arrest criminals and protect innocents.
      Hit them with your arrest baton to put them in jail
      Bash them with a stunstick and they might learn better than to disobey
      the law.
      The Battering Ram can break down the door of a criminal with a warrant
      for his/her arrest.
      The Battering Ram can also unfreeze frozen props(if enabled).
      Type /wanted <name> to alert the public to this criminal
      OR go to tab and warrant someone by clicking the warrant button
   weapons = {"arrest_stick", "unarrest_stick", "m9k_colt1911", "stunstick", "door_ram", "m9k_mp5"},
   command = "cp",
   max = 10,
   salary = 50,
   admin = 0,
   vote = true,
   sortOrder = 1;
   category = "Police",
   hasLicense = true

that's how one of the police jobs look. No other jobs spawns with an rpg other than police jobs.

every other job that is not police, spawn with their correct weapons.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Police spawning with a extra weapon
« Reply #1 on: November 07, 2020, 11:56:21 AM »
Are there errors at startup in server console? What about when players join?
That code really isn't much to go on.
M9k is a custom addon, right? Could gmod or another addon be defaulting rpg insome way if player joins that doesn't have m9k?
In testing, tried removing all weapons in the job to see if rpg still assigned?
Are police added to any special group Or team? If so, any other addon that adjusts weapons based on group or team?
This very well may be an instance where you need to remove all addons, going down to base gamemode and if problem still exist, ask for help in a DarkRp or whatever gamemode community
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming