Resource
See Resources.GetAll() to get a list of all resources.
Global Properties
Resource.Name (string)
The name of the current resource.
Methods
Resource:GetName(): string
Gets the name of the current resource.
Example usage:
Event.Add("ResourceStart", function(resource)
if resource:GetName() == Resource.Name then
print("Current resource started: " .. resource)
else
print("Other resource started: " .. resource)
end
end)
Resource:GetStatus(): ResourceStatus
Gets the status of the current resource.
See ResourceStatus for more information.
Example usage:
print("Resource status: " .. Resource:GetStatus())