In shipments.lua i have everything coded in how it should be.
Yet when i join my server and choose my Drug Dealer job [TEAM_DRUG] i can't click shipments to buy a drug!!!
Here is my shipments.lua script:
[CODE]--[[---------------------------------------------------------------------------
DarkRP custom shipments and guns
---------------------------------------------------------------------------
This file contains your custom shipments and guns.
This file should also contain shipments and guns from DarkRP that you edited.
Note: If you want to edit a default DarkRP shipment, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the shipment to this file and edit it.
The default shipments and guns can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields
Add shipments and guns under the following line:
---------------------------------------------------------------------------]]
DarkRP.createShipment("Famas F1", {
model = "models/weapons/w_rif_famas.mdl",
entity = "fas2_famas",
price = 7000,
amount = 10,
separate = false,
pricesep = ,
noship = false,
allowed = {TEAM_GUN},
-- CustomCheck
})
DarkRP.createShipment("Alcohol", {
model = "models/drug_mod/alcohol_can.mdl",
entity = "durgz_alcohol",
price = 500,
amount = 10,
separate = false,
pricesep = ,
noship = false,
allowed = {TEAM_DRUG}
)}
DarkRP.createShipment("Aspirin", {
model = "models/jaanus/aspbtl.mdl",
entity = "durgz_aspirin",
price = 700,
amount = 10,
separate = false,
pricesep = ,
noship = false,
allowed = {TEAM_DRUG}
)}
DarkRP.createShipment("Cigarette", {
model = "models/boxopencigshib.mdl",
entity = "durgz_cigarette",
price = 300,
amount = 10,
separate = false,
pricesep = ,
noship = false,
allowed = {TEAM_DRUG}
)}
DarkRP.createShipment("Cocaine", {
model = "models/cocn.mdl",
entity = "durgz_cocaine",
price = 1000,
amount = 10,
separate = false,
pricesep = ,
noship = false,
allowed = {TEAM_DRUG}
)}
DarkRP.createShipment("Heroin", {
model = "models/katharsmodels/syringe_out/syringe_out.mdl",
entity = "durgz_heroine",
price = 1500,
amount = 10,
separate = false,
pricesep = ,
noship = false,
allowed = {TEAM_DRUG}
)}
DarkRP.createShipment("LSD", {
model = "models/smile/smile.mdl",
entity = "durgz_lsd",
price = 800,
amount = 10,
separate = false,
pricesep = ,
noship = false,
allowed = {TEAM_DRUG}
)}
DarkRP.createShipment("Marijuana", {
model = "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl",
entity = "durgz_weed",
price = 2500,
amount = 10,
separate = false,
pricesep = ,
noship = false,
allowed = {TEAM_DRUG}
)}
DarkRP.createShipment("Methamphetamine", {
model = "models/katharsmodels/contraband/metasync/blue_sky.mdl",
entity = "durgz_meth",
price = 2000,
amount = 10,
separate = false,
pricesep = ,
noship = false,
allowed = {TEAM_DRUG}
)}
DarkRP.createShipment("Mushroom", {
model = "models/ipha/mushroom_small.mdl",
entity = "durgz_mushroom",
price = 1500,
amount = 10,
separate = false,
pricesep = ,
noship = false,
allowed = {TEAM_DRUG}
)}
DarkRP.createShipment("PCP", {
model = "models/marioragdoll/super mario galaxy/star/star.mdl",
entity = "durgz_pcp",
price = 1000,
amount = 10,
separate = false,
pricesep = ,
noship = false,
allowed = {TEAM_DRUG}
)}
DarkRP.createShipment("Water", {
model = "models/drug_mod/the_bottle_of_water.mdl",
entity = "durgz_water",
price = 100,
amount = 10,
separate = false,
pricesep = ,
noship = false,
allowed = {TEAM_DRUG}
)}[/CODE]
pricesep is empty in every shipment
there is definately an error so post it next time
Well, what should pricesep be set to?
Also i dont see any errors.
[editline]23rd April 2016[/editline]
Actually, i'll set it to Nil and see if it works.
[editline]23rd April 2016[/editline]
Ok the error is:
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/shipments.lua:41: Expected (to close { at line 32) near 'category'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/shipments.lua:0
alright. Here is my new edited shipments.lua after the edit where i added nil :
[CODE]--[[---------------------------------------------------------------------------
DarkRP custom shipments and guns
---------------------------------------------------------------------------
This file contains your custom shipments and guns.
This file should also contain shipments and guns from DarkRP that you edited.
Note: If you want to edit a default DarkRP shipment, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the shipment to this file and edit it.
The default shipments and guns can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields
Add shipments and guns under the following line:
---------------------------------------------------------------------------]]
DarkRP.createShipment("Famas F1", {
model = "models/weapons/w_rif_famas.mdl",
entity = "fas2_famas",
price = 7000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUN},
-- CustomCheck
category = "Other",
})
DarkRP.createShipment("Alcohol", {
model = "models/drug_mod/alcohol_can.mdl",
entity = "durgz_alcohol",
price = 500,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_DRUG}
category = "Drugs",
)}
DarkRP.createShipment("Aspirin", {
model = "models/jaanus/aspbtl.mdl",
entity = "durgz_aspirin",
price = 700,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_DRUG}
category = "Drugs",
)}
DarkRP.createShipment("Cigarette", {
model = "models/boxopencigshib.mdl",
entity = "durgz_cigarette",
price = 300,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_DRUG}
category = "Drugs",
)}
DarkRP.createShipment("Cocaine", {
model = "models/cocn.mdl",
entity = "durgz_cocaine",
price = 1000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_DRUG}
category = "Drugs",
)}
DarkRP.createShipment("Heroin", {
model = "models/katharsmodels/syringe_out/syringe_out.mdl",
entity = "durgz_heroine",
price = 1500,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_DRUG}
category = "Drugs",
)}
DarkRP.createShipment("LSD", {
model = "models/smile/smile.mdl",
entity = "durgz_lsd",
price = 800,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_DRUG}
category = "Drugs",
)}
DarkRP.createShipment("Marijuana", {
model = "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl",
entity = "durgz_weed",
price = 2500,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_DRUG}
category = "Drugs",
)}
DarkRP.createShipment("Methamphetamine", {
model = "models/katharsmodels/contraband/metasync/blue_sky.mdl",
entity = "durgz_meth",
price = 2000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_DRUG}
category = "Drugs",
)}
DarkRP.createShipment("Mushroom", {
model = "models/ipha/mushroom_small.mdl",
entity = "durgz_mushroom",
price = 1500,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_DRUG}
category = "Drugs",
)}
DarkRP.createShipment("PCP", {
model = "models/marioragdoll/super mario galaxy/star/star.mdl",
entity = "durgz_pcp",
price = 1000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_DRUG}
category = "Drugs",
)}
DarkRP.createShipment("Water", {
model = "models/drug_mod/the_bottle_of_water.mdl",
entity = "durgz_water",
price = 100,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_DRUG}
category = "Drugs",
)}[/CODE]
Bump?
There is no comma after every "allowed" table for the drugs.
[QUOTE=MidasCaan;50188770]
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/shipments.lua:41: Expected (to close { at line 32) near 'category'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/shipments.lua:0
[/QUOTE]
Did you even look at this error? It says your missing a '}' at line 41 to close the opening one at line 32.
And you're closing it off with a "}" instead of ")"
Please look more into your errors
I Fixed it, but Tupac.. i don't understand, why are you saying to close it off with ) when in my generated one from TheCodingBeast is formatted the same way as my drugs.. But my FAS Famas doesnt even show in the gun dealer.. and its put together correctly.. Also, i'm pissed by the fact you guys marked me Dumb.. i don't know Glua damn it!!! i only know a fraction of Lua..
[editline]24th April 2016[/editline]
None of them show, not even drugs. Forgot to mention, but i fixed the "," on the Allowed
[QUOTE=MidasCaan;50194553]I Fixed it, but Tupac.. i don't understand, why are you saying to close it off with ) when in my generated one from TheCodingBeast is formatted the same way as my drugs.. But my FAS Famas doesnt even show in the gun dealer.. and its put together correctly.. Also, i'm pissed by the fact you guys marked me Dumb.. i don't know Glua damn it!!! i only know a fraction of Lua..
[editline]24th April 2016[/editline]
None of them show, not even drugs. Forgot to mention, but i fixed the "," on the Allowed[/QUOTE]
What's the code now? - Do you not get errors now?
You don't have to know any Lua (luckily for you) to fix this, all you need to do is read the error message and it tells you what to do. How can you not spot the inconsistency in this given that the error points to the line right below it?
[code]
DarkRP.createShipment("Aspirin", {
model = "models/jaanus/aspbtl.mdl",
entity = "durgz_aspirin",
price = 700,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_DRUG} <-------- IT'S HERE!
category = "Drugs",
)}
[/code]
or this
[code]
DarkRP.createShipment("Aspirin", {
model = "models/jaanus/aspbtl.mdl",
entity = "durgz_aspirin",
price = 700,
amount = 10,
separate = false,
pricesep = , <------------------- Do you see any other fields that look like this?
noship = false,
allowed = {TEAM_DRUG}
)}
[/code]
Also as others said you should have }) not )}
i had already fixed it.
Look
[CODE]--[[---------------------------------------------------------------------------
DarkRP custom shipments and guns
---------------------------------------------------------------------------
This file contains your custom shipments and guns.
This file should also contain shipments and guns from DarkRP that you edited.
Note: If you want to edit a default DarkRP shipment, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the shipment to this file and edit it.
The default shipments and guns can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields
Add shipments and guns under the following line:
---------------------------------------------------------------------------]]
DarkRP.createShipment("Famas F1", {
model = "models/weapons/w_rif_famas.mdl",
entity = "fas2_famas",
price = 7000,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
-- CustomCheck
category = "Other",
})
DarkRP.createShipment("Alcohol", {
model = "models/drug_mod/alcohol_can.mdl",
entity = "durgz_alcohol",
price = 500,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Aspirin", {
model = "models/jaanus/aspbtl.mdl",
entity = "durgz_aspirin",
price = 700,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Cigarette", {
model = "models/boxopencigshib.mdl",
entity = "durgz_cigarette",
price = 300,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Cocaine", {
model = "models/cocn.mdl",
entity = "durgz_cocaine",
price = 1000,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Heroin", {
model = "models/katharsmodels/syringe_out/syringe_out.mdl",
entity = "durgz_heroine",
price = 1500,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("LSD", {
model = "models/smile/smile.mdl",
entity = "durgz_lsd",
price = 800,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Marijuana", {
model = "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl",
entity = "durgz_weed",
price = 2500,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Methamphetamine", {
model = "models/katharsmodels/contraband/metasync/blue_sky.mdl",
entity = "durgz_meth",
price = 2000,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Mushroom", {
model = "models/ipha/mushroom_small.mdl",
entity = "durgz_mushroom",
price = 1500,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("PCP", {
model = "models/marioragdoll/super mario galaxy/star/star.mdl",
entity = "durgz_pcp",
price = 1000,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Water", {
model = "models/drug_mod/the_bottle_of_water.mdl",
entity = "durgz_water",
price = 100,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})
--[[ Singles Below!!!
-------------------------------------------]]
DarkRP.createShipment("Alcohol", {
model = "models/drug_mod/alcohol_can.mdl",
entity = "durgz_alcohol",
price = 500,
amount = 10,
separate = true,
pricesep = 250,
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Aspirin", {
model = "models/jaanus/aspbtl.mdl",
entity = "durgz_aspirin",
price = 700,
amount = 10,
separate = true,
pricesep = 350,
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Cigarette", {
model = "models/boxopencigshib.mdl",
entity = "durgz_cigarette",
price = 300,
amount = 10,
separate = true,
pricesep = 150
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Cocaine", {
model = "models/cocn.mdl",
entity = "durgz_cocaine",
price = 1000,
amount = 10,
separate = true,
pricesep = 500,
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Heroin", {
model = "models/katharsmodels/syringe_out/syringe_out.mdl",
entity = "durgz_heroine",
price = 1500,
amount = 10,
separate = true,
pricesep = 750,
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("LSD", {
model = "models/smile/smile.mdl",
entity = "durgz_lsd",
price = 800,
amount = 10,
separate = true,
pricesep = 400,
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Marijuana", {
model = "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl",
entity = "durgz_weed",
price = 2500,
amount = 10,
separate = true,
pricesep = 1250,
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Methamphetamine", {
model = "models/katharsmodels/contraband/metasync/blue_sky.mdl",
entity = "durgz_meth",
price = 2000,
amount = 10,
separate = true,
pricesep = 1000,
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Mushroom", {
model = "models/ipha/mushroom_small.mdl",
entity = "durgz_mushroom",
price = 1500,
amount = 10,
separate = true,
pricesep = 750,
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("PCP", {
model = "models/marioragdoll/super mario galaxy/star/star.mdl",
entity = "durgz_pcp",
price = 1000,
amount = 10,
separate = true,
pricesep = 500,
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})
DarkRP.createShipment("Water", {
model = "models/drug_mod/the_bottle_of_water.mdl",
entity = "durgz_water",
price = 100,
amount = 10,
separate = true,
pricesep = 50,
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})[/CODE]
You see? However it would be my fault for not updating. So, would you think i fixed everything??
[editline]24th April 2016[/editline]
I'll launch it up and see if it works now. But it might not. I Have no idea..
[editline]24th April 2016[/editline]
Nope, still doesn't work. Its still telling me to end the {
But thats the fucking problem!!!!! ITS ALREADY ENDED!!!!!!!!!!!!!!!
[editline]24th April 2016[/editline]
The error is telling me to end the "{"
wtf do i do????
I know this is really dumb to ask, but based on what you've posted I'm not gonna feel as dumb.
Did you save the file?
Uh, of coarse i saved the file.
And please don't discriminate my knowledge, i'm not as good as everyone else. I Understand that, but just fucking stop dude. You're being kinda mean.
[editline]24th April 2016[/editline]
I'm only 13 man, i don't know alot of stuff yet. Only language i know is Lua, and that's only a small part. I've never developed a server. Its my first time.
Also, i've got another problem.. My weapons, shipments, and entities are gone for all jobs.
could it be because of my Categories.lua??
Eh, i don't know...
But the error i got aswell is :
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/shipments.lua:199: '}' expected (to close '{' at line 192) near 'noship' 1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/shipments.lua:0
[editline]24th April 2016[/editline]
And this is my only Lua error in the server console
[QUOTE=MidasCaan;50194932]Uh, of coarse i saved the file.
And please don't discriminate my knowledge, i'm not as good as everyone else. I Understand that, but just fucking stop dude. You're being kinda mean.
[editline]24th April 2016[/editline]
I'm only 13 man, i don't know alot of stuff yet. Only language i know is Lua, and that's only a small part. I've never developed a server. Its my first time.
Also, i've got another problem.. My weapons, shipments, and entities are gone for all jobs.
could it be because of my Categories.lua??
Eh, i don't know...
But the error i got aswell is :
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/shipments.lua:199: '}' expected (to close '{' at line 192) near 'noship' 1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/shipments.lua:0
[editline]24th April 2016[/editline]
And this is my only Lua error in the server console[/QUOTE]
Only reason I said what I said is because you came here before even checking your shipments code properly.
Going back on topic, can you paste around line 192
Sure.
Here you go:
[CODE]DarkRP.createShipment("Cigarette", {
model = "models/boxopencigshib.mdl",
entity = "durgz_cigarette",
price = 300,
amount = 10,
separate = true,
pricesep = 150
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})[/CODE]
That is line 192 [the beginning of it]
to line 202 [end of it]
[editline]24th April 2016[/editline]
But i am pretty sure that 192-202 isn't the only problem. i think all of it needs to be fixed.
[editline]24th April 2016[/editline]
Oops, i may be dumb after all. noship is set to false.
gg tupac gg
New code:
[CODE]DarkRP.createShipment("Cigarette", {
model = "models/boxopencigshib.mdl",
entity = "durgz_cigarette",
price = 300,
amount = 10,
separate = true,
pricesep = 150
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})[/CODE]
[editline]24th April 2016[/editline]
I Still don't believe this was the problem.. I'll check again
[QUOTE=MidasCaan;50195013]Sure.
Here you go:
[CODE]DarkRP.createShipment("Cigarette", {
model = "models/boxopencigshib.mdl",
entity = "durgz_cigarette",
price = 300,
amount = 10,
separate = true,
pricesep = 150
noship = false,
allowed = {TEAM_DRUG},
category = "Drugs",
})[/CODE]
That is line 192 [the beginning of it]
to line 202 [end of it]
[editline]24th April 2016[/editline]
But i am pretty sure that 192-202 isn't the only problem. i think all of it needs to be fixed.
[editline]24th April 2016[/editline]
Oops, i may be dumb after all. noship is set to false.
gg tupac gg
New code:
[CODE]DarkRP.createShipment("Cigarette", {
model = "models/boxopencigshib.mdl",
entity = "durgz_cigarette",
price = 300,
amount = 10,
separate = true,
pricesep = 150
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})[/CODE]
[editline]24th April 2016[/editline]
I Still don't believe this was the problem.. I'll check again[/QUOTE]
[QUOTE=MidasCaan;50195013]
i may be dumb after all
[/QUOTE]
yes
[code]
DarkRP.createShipment("Cigarette", {
model = "models/boxopencigshib.mdl",
entity = "durgz_cigarette",
price = 300,
amount = 10,
separate = true,
pricesep = 150 <------------------- HERE IT IS! http://i.imgur.com/aTQDjOW.png
noship = true,
allowed = {TEAM_DRUG},
category = "Drugs",
})
[/code]
It was not the problem.. And my entities, weapons, and shipments tabs are still gone
[editline]24th April 2016[/editline]
and whats wrong with pricesep????
[editline]24th April 2016[/editline]
Nvm nvm, im fucking stupid as shit... its the ","
[editline]24th April 2016[/editline]
Fixed.. still don't think it fixed it.. as my entities, weapons, and shipments tabs are still gone and i am unable to check, would deleting my categories.lua stuff work?
like removing this:
[CODE]--[[-----------------------------------------------------------------------
Categories
---------------------------------------------------------------------------
The categories of the default F4 menu.
Please read this page for more information:
http://wiki.darkrp.com/index.php/DarkRP:Categories
In case that page can't be reached, here's an example with explanation:
DarkRP.createCategory{
name = "Citizens", -- The name of the category.
categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
color = Color(0, 107, 0, 255), -- The color of the category header.
canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
sortOrder = 100, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default.
}
------------------------------------------------------------------------------------]]
DarkRP.createCategory{
name = "Drugs", -- The name of the category.
categorises = "shipments", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
color = Color(0, 107, 0, 255), -- The color of the category header.
canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
sortOrder = 100, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default.
}
DarkRP.createCategory{
name = "Drugs", -- The name of the category.
categorises = "weapons", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
color = Color(0, 107, 0, 255), -- The color of the category header.
canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
sortOrder = 100, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default.
}[/CODE]
[editline]24th April 2016[/editline]
Ok i fixed that part, it wasn't my categorys. It was my disabled defaults.
But now i still have a problem but not a big one.. As a drug dealer when i click drugs and buy one it says "This shipment is unavailable"
Plus citizens can buy single ones in the Weapons tab.. so can gun dealers and others.. They can still see those tabs and are able to click on them
Sorry, you need to Log In to post a reply to this thread.