This repository has been archived on 2025-12-11. You can view files and clone it, but cannot push or open issues or pull requests.

17 lines
789 B
Lua
Raw Normal View History

2025-03-17 13:54:06 +01:00
---@description UPDATE-RENAME CHECKER
--- This part of the script is optional and is used to track script updates through ox_lib and
--- has a built-in function that detects if the script has the right name to make exports (if any)
--- work as described in the documentation. (Remove only if you are sure of what you are doing)
---@diagnostic disable
lib.versionCheck("IlMelons/melons_postals")
AddEventHandler("onResourceStart", function(resourceName)
if GetCurrentResourceName() ~= resourceName then return end
local expectedName = GetResourceMetadata(GetCurrentResourceName(), "name")
if GetCurrentResourceName() ~= expectedName then
print(("^1[WARNING]: The resource name is incorrect. Please set it to %s.^0"):format(expectedName))
end
end)