get_resource_type

Get the type of a resource (renewable/consumable).

Parameters: 
I/O Type Name Description
input integer ID resource ID
output integer renewable 1 (renewable) or 0 (consumable)

 

Learn More: 

Step inside PMKC.

Example: 
function ()
        io.write('\n')
end
Class: 
P2Resource