Skip to content

Commit

Permalink
added prints for onResourceStart
Browse files Browse the repository at this point in the history
added prints for onResourceStart
  • Loading branch information
LeSiiN authored and MonkeyWhisper committed May 3, 2023
1 parent 34763c7 commit c1833bd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ if Config.UseWolfknightRadar == true then
end)
end

AddEventHandler('onResourceStart', function(resourceName)
if GetCurrentResourceName() ~= resourceName then return end
if Config.Webhook == '' then
print("\27[31mA webhook is missing in: Config.Webhook\27[0m")
end
if Config.ClockinWebhook == '' then
print("\27[31mA webhook is missing in: Config.ClockinWebhook\27[0m")
end
end)

RegisterNetEvent("ps-mdt:server:OnPlayerUnload", function()
--// Delete player from the MDT on logout
local src = source
Expand Down

0 comments on commit c1833bd

Please sign in to comment.