Added integration for Fivemerr

if you want to use the logs go to line 3 of server/functions.lua and turn to true, then inside of your server.cfg add this 

```
set fivemerrLogs "API_KEY"
```
obviously replace the API_KEY with your api key
This commit is contained in:
Mustache Dom authored and GitHub committed 2024-07-16 14:14:48 -07:00
1 parent 7aa929670e
commit 3d144cae58
17 files changed
+245 -61

No files matched your search

+2 -2
View File
@@ -1,8 +1,6 @@
local QBCore = exports['qb-core']:GetCoreObject()
local StolenDrugs = {}
lib.callback.register('md-drugs:server:cornerselling:getAvailableDrugs', function(source, cb)
local AvailableDrugs = {}
local Player = QBCore.Functions.GetPlayer(source)
@@ -12,6 +10,7 @@ lib.callback.register('md-drugs:server:cornerselling:getAvailableDrugs', functio
local item = Player.Functions.GetItemByName(k)
if item and type == 0 then
type = type + 1
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Allowed To Sell ' .. item.name .. '!' , 'cornerselling')
return item.name, item.amount
end
end
@@ -26,6 +25,7 @@ RegisterNetEvent('md-drugs:server:sellCornerDrugs', function(item, amount, price
local Player = QBCore.Functions.GetPlayer(src)
if RemoveItem(item, amount) then
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Sold ' .. amount .. ' Of ' .. item .. '!' , 'cornerselling')
if QBConfig.MarkedBills then
if price >= QBConfig.DrugsPrice[item]['min'] * amount and price <= QBConfig.DrugsPrice[item]['max'] * amount then
local info = {