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:
1 parent
7aa929670e
commit
3d144cae58
17 files changed
+245
-61
No files matched your search
@@ -6,6 +6,7 @@ RegisterServerEvent('md-drugs:server:payfortruck', function()
|
||||
local playerPed = GetPlayerPed(source)
|
||||
if Player.Functions.RemoveMoney('cash', Config.TruckPrice ) or Player.Functions.RemoveMoney('bank', Config.TruckPrice ) then
|
||||
TriggerClientEvent("md-drugs:Client:getoxylocation", src)
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Rented A Van For OxyRuns', 'oxy')
|
||||
else
|
||||
Notifys(Lang.oxy.broke, "error")
|
||||
end
|
||||
@@ -25,6 +26,7 @@ RegisterServerEvent('md-drugs:server:giveoxybox', function()
|
||||
Player.Functions.AddMoney("cash", cash * 0.5)
|
||||
if itemchance <= Config.OxyItemChance then
|
||||
AddItem(item, Config.OxyItemAmount)
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Got ' .. Config.OxyItemAmount .. ' Of ' .. item .. ' For This Drop Off', 'oxy')
|
||||
end
|
||||
else
|
||||
Notifys(Lang.oxy.next, "success")
|
||||
@@ -32,6 +34,7 @@ RegisterServerEvent('md-drugs:server:giveoxybox', function()
|
||||
Player.Functions.AddMoney("cash", cash)
|
||||
if itemchance <= Config.OxyItemChance then
|
||||
AddItem(item, Config.OxyItemAmount)
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Got ' .. Config.OxyItemAmount .. ' Of ' .. item .. ' For This Drop Off', 'oxy')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user