Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make getResourceName take current resource as a default argument #2927

Open
1 task done
TracerDS opened this issue Mar 14, 2023 · 5 comments · May be fixed by #3363
Open
1 task done

Make getResourceName take current resource as a default argument #2927

TracerDS opened this issue Mar 14, 2023 · 5 comments · May be fixed by #3363
Labels
enhancement New feature or request

Comments

@TracerDS
Copy link
Contributor

Is your feature request related to a problem? Please describe.

As in the title. Make getResourceName take current resource as a default argument.

Describe the solution you'd like

Make getResourceName take current resource as a default argument.
Simple change but may come in handy

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
@TracerDS TracerDS added the enhancement New feature or request label Mar 14, 2023
@MegadreamsBE
Copy link
Member

What's the point though?

@Xenius97
Copy link
Contributor

getResourceName(resource) will return current resource name :)
resource global variable = getThisResource()

@TracerDS
Copy link
Contributor Author

TracerDS commented Mar 14, 2023

getResourceName(resource) will return current resource name :) resource global variable = getThisResource()

Yes, i thought about it but hey, we have getResourceRootElement so why not getResourceName too, ya know?
(I meant with arguments)

Or at least make a global resourceName that will hold the name of the resource.

@dmi7ry
Copy link

dmi7ry commented Mar 14, 2023

Or at least make a global resourceName that will hold the name of the resource.

There is resource.name already (although it requires OOP is enabled).

@TracerDS
Copy link
Contributor Author

TracerDS commented Mar 14, 2023

Or at least make a global resourceName that will hold the name of the resource.

There is resource.name already (although it requires OOP is enabled).

Exactly. The POP version right now is getResourceName(resource). And OOP is... slow and not really good in mta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants