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
+4
-1
@@ -16,6 +16,7 @@ function shroomsCooldown(loc)
|
||||
GlobalState.shrooms = Config.shrooms
|
||||
Wait(1000)
|
||||
TriggerClientEvent('shrooms:respawnCane', -1, loc)
|
||||
Log('Cactus Respawned At ' .. Config.shrooms[loc].location, 'shrooms')
|
||||
end)
|
||||
end
|
||||
|
||||
@@ -32,6 +33,7 @@ AddEventHandler("shrooms:pickupCane", function(loc)
|
||||
shroomsCooldown(loc)
|
||||
local Player = QBCore.Functions.GetPlayer(source)
|
||||
AddItem('shrooms', 1)
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Picked A Shroom With a distance of ' .. dist(source, playerPed, Config.shrooms[loc].location) .. ' vectors', 'shrooms')
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -40,7 +42,8 @@ local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
|
||||
if TriggerClientEvent('md-drugs:client:takeshrooms', src, item.name) then
|
||||
Player.Functions.RemoveItem('shrooms', 1)
|
||||
Player.Functions.RemoveItem('shrooms', 1)
|
||||
Log(Player.PlayerData.charinfo.firstname .. ' ' .. Player.PlayerData.charinfo.lastname .. ' Took Some Mushrooms', 'shrooms')
|
||||
TriggerClientEvent("QBCore:Notify", src, Lang.Shrooms.trip, 'success')
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in new issue
Block a user