Hello,
I've created some new single weapon shipment, but, all jobs can see them while a condition that only the right jobs can see them is present !
Code:
DarkRP.createShipment("Grenade explosive", {
model = "models/weapons/w_eq_fraggrenade.mdl",
entity = "bb_cssfrag_alt",
amount = 10,
price = 400,
separate = true,
allowed = {TEAM_GIGN, TEAM_MSTRAID, TEAM_SNIPRAID, TEAM_MILLI},
pricesep = 400,
noship = true,
})
Can someone help me quickly please ?
Thanks,
Have a nice day
I have, but it doesn't work !
helpppppppp me please!!!!!!!
Try this,
DarkRP.createShipment("Grenade explosive", {
model = "models/weapons/w_eq_fraggrenade.mdl",
entity = "bb_cssfrag_alt",
amount = 10,
price = 400,
separate = true,
pricesep = 400,
noship = false,
category = "Grenades",
allowed = {TEAM_GIGN, TEAM_MSTRAID, TEAM_SNIPRAID, TEAM_MILLI},
customCheck = function(ply) return
table.HasValue({TEAM_GIGN, TEAM_MSTRAID, TEAM_SNIPRAID, TEAM_MILLI}, ply:Team())
end,
CustomCheckFailMsg = "This does not apply to your job.",
})
i'll help! don't run a darkrp server if you can't even make the shipments.
I am capable, I am not responsible for the dysfunction of DarkRP itself ...
Arrogance bedevils you, young one.
On a serious note, I happen to have the biggest contributor to DarkRP (excluding FPTje (Falco) and according to GitHub) as my brother. From the stuff he has told me, there is no problem with DarkRP if you can actually do basic configuration stuff. There's the DarkRP wiki and external sites like csite.io (which I personally hate as it tends that people don't learn how to make shipments, jobs, etc. So if they have a recurring fault in their code which is technically fine until you apply it to something, then you have problems. Could just be some people being retarded though.) which can help you. So stop blaming DarkRP for a problem which is rooted in the code you create.
Sorry, you need to Log In to post a reply to this thread.