Usage
How to implement this system correctly into your server.
Import The Component
AddEventHandler("ResourceName:Shared:DependencyUpdate", RetrieveComponents)
function RetrieveComponents()
Payment = exports["mythic-base"]:FetchComponent("Payment")
end
AddEventHandler("Core:Shared:Ready", function()
exports["mythic-base"]:RequestDependencies("RESOURCE_NAME_HERE", {
"Payment"
}, function(error)
if #error > 0 then
Logger:Critical("RESOURCE_NAME_HERE", "Failed To Load All Dependencies")
return
end
RetrieveComponents()
end)
end)Resource Implementation
Last updated