getPlayer
This commit is contained in:
1 parent
502677054c
commit
b1bcb7ce56
15 files changed
+120
-127
No files matched your search
@@ -67,7 +67,7 @@ lib.callback.register('md-drugs:server:menu', function(source, data)
|
||||
end)
|
||||
|
||||
RegisterServerEvent("md-drugs:server:purchaseGoods", function(amount, money, item, price,table,num)
|
||||
local src = source local Player = QBCore.Functions.GetPlayer(src)
|
||||
local src = source local Player = getPlayer(src)
|
||||
for i = 1, #table do
|
||||
if table[i].name == item then
|
||||
if not table[i].price == price then return end
|
||||
|
||||
Reference in new issue
Block a user