[Help] error swatJob remake of policejob

Hi i made a swatjob its a remake of policejob and i got these error and i dont know what to do plz help


files: esx_swatjob – Google Drive

replace these 2 below with the ones in your script, you had syntax errors

Config.AuthorizedWeapons = {

Private_I = {

    {weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},

    {weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50000},

    {weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 70000},

    {weapon = 'WEAPON_NIGHTSTICK', price = 0},

    {weapon = 'WEAPON_STUNGUN', price = 500},

    {weapon = 'WEAPON_FLASHLIGHT', price = 0}

},



Private_II = {

    {weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},

    {weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50000},

    {weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 70000},

    {weapon = 'WEAPON_NIGHTSTICK', price = 0},

    {weapon = 'WEAPON_STUNGUN', price = 500},

    {weapon = 'WEAPON_FLASHLIGHT', price = 0}

},

Private_First_Class = {

    {weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},

    {weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50000},

    {weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 70000},

    {weapon = 'WEAPON_NIGHTSTICK', price = 0},

    {weapon = 'WEAPON_STUNGUN', price = 500},

    {weapon = 'WEAPON_FLASHLIGHT', price = 0}

},

Specialist = {

    {weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},

    {weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50000},

    {weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 70000},

    {weapon = 'WEAPON_NIGHTSTICK', price = 0},

    {weapon = 'WEAPON_STUNGUN', price = 500},

    {weapon = 'WEAPON_FLASHLIGHT', price = 0}

},

Corporal = {

    {weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},

    {weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50000},

    {weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 70000},

    {weapon = 'WEAPON_NIGHTSTICK', price = 0},

    {weapon = 'WEAPON_STUNGUN', price = 500},

    {weapon = 'WEAPON_FLASHLIGHT', price = 0}

},

Sergeant = {

    {weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},

    {weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50000},

    {weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 70000},

    {weapon = 'WEAPON_NIGHTSTICK', price = 0},

    {weapon = 'WEAPON_STUNGUN', price = 500},

    {weapon = 'WEAPON_FLASHLIGHT', price = 0}

},

Staff_Sergeant = {

    {weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},

    {weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50000},

    {weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 70000},

    {weapon = 'WEAPON_NIGHTSTICK', price = 0},

    {weapon = 'WEAPON_STUNGUN', price = 500},

    {weapon = 'WEAPON_FLASHLIGHT', price = 0}

},

Sergeant_First_Class = {

    {weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},

    {weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50000},

    {weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 70000},

    {weapon = 'WEAPON_NIGHTSTICK', price = 0},

    {weapon = 'WEAPON_STUNGUN', price = 500},

    {weapon = 'WEAPON_FLASHLIGHT', price = 0}

},

Master_Sergeant = {

    {weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},

    {weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50000},

    {weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 70000},

    {weapon = 'WEAPON_NIGHTSTICK', price = 0},

    {weapon = 'WEAPON_STUNGUN', price = 500},

    {weapon = 'WEAPON_FLASHLIGHT', price = 0}

},

First_Sergeant = {

    {weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},

    {weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50000},

    {weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 70000},

    {weapon = 'WEAPON_NIGHTSTICK', price = 0},

    {weapon = 'WEAPON_STUNGUN', price = 500},

    {weapon = 'WEAPON_FLASHLIGHT', price = 0}

},

boss = {

    {weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},

    {weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50000},

    {weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 70000},

    {weapon = 'WEAPON_NIGHTSTICK', price = 0},

    {weapon = 'WEAPON_STUNGUN', price = 500},

    {weapon = 'WEAPON_FLASHLIGHT', price = 0}

},

boss = {

    {weapon = 'WEAPON_APPISTOL', components = {0, 0, 1000, 4000, nil}, price = 10000},

    {weapon = 'WEAPON_ADVANCEDRIFLE', components = {0, 6000, 1000, 4000, 8000, nil}, price = 50000},

    {weapon = 'WEAPON_PUMPSHOTGUN', components = {2000, 6000, nil}, price = 70000},

    {weapon = 'WEAPON_NIGHTSTICK', price = 0},

    {weapon = 'WEAPON_STUNGUN', price = 500},

    {weapon = 'WEAPON_FLASHLIGHT', price = 0}

},

}

Config.AuthorizedVehicles = {

car = {

    Private_I = {},

    Private_II = {},

    Private_First_Class = {},

    Specialist = {},

    Corporal = {},

    sergeant = {},

    Staff_Sergeant = {},

    Sergeant_First_Class = {},

    Master_Sergeant = {},

    First_Sergeant = {},

    boss = {},

    boss = {},

},

helicopter = {

    Private_I = {},

    Private_II = {},

    Private_First_Class = {},

    Specialist = {},

    Corporal = {},

    sergeant = {},

    Staff_Sergeant = {},

    Sergeant_First_Class = {},

    Master_Sergeant = {},

    First_Sergeant = {},

    boss = {},

    boss = {},

    }

}

what about these errors?


1248: for k,v in pairs(Config.PoliceStations) do

checked the config this isnt defined in the config you will need to set it up in ur config or remove this part of the code

config u mean client? there is no 1248 line in config but in client main.lua it is and on that line it said for k,v in pairs(Config.PoliceStations) do

No your config.lua needs to have have Config.PoliceStations added to it, that line is looking for that in the config and cant find it so that is why its giving nil value

Hi i made a remake of policejob and named it swatjob and now i get this error and i dont know what to do plz help

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.