Author Topic: DarkRP jobs not spawning with their added weapons?  (Read 3690 times)

0 Members and 2 Guests are viewing this topic.

Offline Rain

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
DarkRP jobs not spawning with their added weapons?
« on: July 07, 2017, 10:57:29 AM »
Recently i have noticed after alot of coding that my jobs dont spawn with their extra weapons eg, police wont spawn with their arrest batons, unarrest ect or any added weapons i have given them like fas_glock20. here is the police job line :

TEAM_POLICE = DarkRP.createJob("Police Officer", {
    color = Color(25, 25, 170, 255),
    model = {"models/gta5/player/citycoppm.mdl"},
    description = [[]],
    weapons = {"arrest_stick", "unarrest_stick", "fas2_glock20", "sj_handcuffs", "stunstick", "keypad_cracker", "la_grabber", "door_ram", "weaponchecker"},
    command = "police",
    max = 8,
    salary = 320,
    admin = 0,
    vote = true,
    hasLicense = true,
    ammo = {
        ["fas2_ammo_pistol"] = 60,
    },
})

but this applies to all my custom jobs with things like lockpicks ect, there is no errors and i mean no errors to be found! i have -condebug on etc and have found absolutely nothing please help!

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: DarkRP jobs not spawning with their added weapons?
« Reply #1 on: July 08, 2017, 01:06:13 AM »
How many custom jobs do you have? Is this the first job in the file? There may be a job near the top of your file that is causing some sort of error which makes the rest of the file unloaded.

Also are you editing the darkrpmodification or the core files? FPtje specifically says NOT to edit core files, and ONLY the custom files, so that could be your problem but I'd assume not if you're using the modification addon.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Rain

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: DarkRP jobs not spawning with their added weapons?
« Reply #2 on: July 08, 2017, 03:41:02 AM »
Everything was fine with my jobs earlier, they spawned with everything correctly, i tried deleting and adding darkrp fresh and it didnt change, im going to delete and add everything fresh until i find the cause.  the problem was every single job was not spawning with any weapons other than phys gun and grav gun pocket and tool gun.

Offline Rain

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: DarkRP jobs not spawning with their added weapons?
« Reply #3 on: July 08, 2017, 03:57:10 AM »
just reinstalled darkrp and modifications and still not fixed my bet it is an addon, also i was doing alot of HUD work and small things this is why i havent been able to remember/pin point when it went wrong!

Offline Rain

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: DarkRP jobs not spawning with their added weapons?
« Reply #4 on: July 08, 2017, 05:18:40 AM »
had to do a server restore still unsure of the cause but thanks for replying, its fixed now.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: DarkRP jobs not spawning with their added weapons?
« Reply #5 on: July 09, 2017, 02:02:14 PM »
Most likely was one of the addons causing conflicts. Some addons have conflicts with how DarkRP handles giving weapons, so that could've been it.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.