added sv function to check cops and threw a cop check in wholesale, made it so you can only buy heroin table if none are in your inventory
This commit is contained in:
1 parent
bf1471e238
commit
a07118d0cb
4 files changed
+17
-1
No files matched your search
@@ -102,6 +102,8 @@ RegisterServerEvent('md-drugs:server:getheroinlabkit', function()
|
||||
local src = source
|
||||
local Player = getPlayer(src)
|
||||
if not checkLoc(source, 'singleSpot', 'buyheroinlabkit') then return end
|
||||
local has = Player.Functions.GetItemByName('heroinlabkit')
|
||||
if has then Notifys(src, 'You Already Have A Heroin Lab Kit', 'error') return end
|
||||
if Player.Functions.RemoveMoney('cash', prices.heroinlabkitprice) then
|
||||
AddItem(src, 'heroinlabkit', 1)
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user