GetThisResource: Difference between revisions
Jump to navigation
Jump to search
Automatyczna aktualizacja dokumentacji funkcji |
Complete Lua function catalog |
||
| Line 24: | Line 24: | ||
* Available in both client-side and server-side resource scripts. | * Available in both client-side and server-side resource scripts. | ||
[[Category:Lua Functions]] | |||
[[Category:Shared Functions]] | [[Category:Shared Functions]] | ||
[[Category:Resource Functions]] | [[Category:Resource Functions]] | ||
Latest revision as of 09:53, 15 August 2026
getThisResource
Returns the resource object belonging to the currently executing script.
Syntax
resource getThisResource()
Parameters
This function does not accept parameters.
Returns
Returns the current resource object.
Examples
Read the current resource name:
local thisResource = getThisResource()
print(getResourceName(thisResource))
Notes
- Available in both client-side and server-side resource scripts.