GetResourceLoadFailureReason: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 27: Line 27:
==See Also==
==See Also==
{{Resource functions}}
{{Resource functions}}
[[Category:Incomplete]] -- leave this unless you complete the function
[[Category:Incomplete]]

Revision as of 16:19, 3 March 2009

This function retrieves the reason why a resource failed to start.

Syntax

string getResourceLoadFailureReason ( resource )

Required Arguments

  • resource: The resource you wish to check.

Returns

If the resource failed to load, returns a string with the failure reason in it. If it loaded successfully, returns an empty string. Returns false if the resource doesn't exist.

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also