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
@@ -16,16 +16,19 @@ RegisterServerEvent('md-drugs:server:makecrackone', function(num)
|
||||
RemoveItem('bakingsoda', 1)
|
||||
AddItem('crackrock', 1)
|
||||
Notifys(Lang.Crack.makecrack, "success")
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Cut Crack', 'crack')
|
||||
elseif locoke2 then
|
||||
RemoveItem('loosecokestagetwo', 1 )
|
||||
RemoveItem('bakingsoda', 1)
|
||||
AddItem('crackrockstagetwo', 1)
|
||||
Notifys(Lang.Crack.makecrack, "success")
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Cut Crack', 'crack')
|
||||
elseif locoke3 then
|
||||
RemoveItem('loosecokestagethree', 1 )
|
||||
RemoveItem('bakingsoda', 1)
|
||||
AddItem('crackrockstagethree', 1)
|
||||
Notifys(Lang.Crack.makecrack, "success")
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Cut Crack', 'crack')
|
||||
else
|
||||
Notifys(Lang.Crack.nocoke, 'error')
|
||||
end
|
||||
@@ -34,6 +37,7 @@ RegisterServerEvent('md-drugs:server:makecrackone', function(num)
|
||||
RemoveItem('bakingsoda', 1)
|
||||
AddItem('crackrock', 1)
|
||||
Notifys(Lang.Crack.makecrack, "success")
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Cut Crack', 'crack')
|
||||
else
|
||||
Notifys(Lang.Crack.nocoke, 'error')
|
||||
end
|
||||
@@ -55,16 +59,19 @@ RegisterServerEvent('md-drugs:server:bagcrack', function(num)
|
||||
RemoveItem('empty_weed_bag', 1)
|
||||
AddItem('baggedcracked', 1)
|
||||
Notifys(Lang.Crack.makecrack, "success")
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Bagged Crack', 'crack')
|
||||
elseif rock2 then
|
||||
RemoveItem('crackrockstagetwo', 1 )
|
||||
RemoveItem('empty_weed_bag', 1)
|
||||
AddItem('baggedcrackedstagetwo', 1)
|
||||
Notifys(Lang.Crack.makecrack, "success")
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Bagged Crack', 'crack')
|
||||
elseif rock3 then
|
||||
RemoveItem('crackrockstagethree', 1 )
|
||||
RemoveItem('empty_weed_bag', 1)
|
||||
AddItem('baggedcrackedstagethree', 1)
|
||||
Notifys(Lang.Crack.makecrack, "success")
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Bagged Crack', 'crack')
|
||||
else
|
||||
Notifys(Lang.Crack.nocoke, "error")
|
||||
end
|
||||
@@ -73,6 +80,7 @@ RegisterServerEvent('md-drugs:server:bagcrack', function(num)
|
||||
RemoveItem('empty_weed_bag', 1)
|
||||
AddItem('baggedcracked', 1)
|
||||
Notifys(Lang.Crack.makecrack, "success")
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Bagged Crack', 'crack')
|
||||
else
|
||||
Notifys(Lang.Crack.nocoke, "error")
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user