Update pharma.lua
This commit is contained in:
1 parent
8155ace51e
commit
e23e8c23ab
1 file changed
+4
-4
+4
-4
@@ -50,10 +50,10 @@ end
|
|||||||
RegisterServerEvent('md-drugs:server:fillprescription', function()
|
RegisterServerEvent('md-drugs:server:fillprescription', function()
|
||||||
local src = source
|
local src = source
|
||||||
local Player = QBCore.Functions.GetPlayer(src)
|
local Player = QBCore.Functions.GetPlayer(src)
|
||||||
local vic = Player.Functions.GetItemByName('vicodin_prescription)
|
local vic = Player.Functions.GetItemByName('vicodin_prescription')
|
||||||
local add = Player.Functions.GetItemByName('adderal_prescription)
|
local add = Player.Functions.GetItemByName('adderal_prescription')
|
||||||
local mor = Player.Functions.GetItemByName('morphine_prescription)
|
local mor = Player.Functions.GetItemByName('morphine_prescription')
|
||||||
local xan = Player.Functions.GetItemByName('xanax_prescription)
|
local xan = Player.Functions.GetItemByName('xanax_prescription')
|
||||||
if vic then
|
if vic then
|
||||||
RemoveItem('vicodin_prescription', 1 )
|
RemoveItem('vicodin_prescription', 1 )
|
||||||
AddItem('vicodinbottle', 1)
|
AddItem('vicodinbottle', 1)
|
||||||
|
|||||||
Reference in new issue
Block a user