This code is a native, and does not require any core to function, and is therefore compatible with all cores.
client.lua
Add the following code to your client.lua or any client script.
---------------------------------------------------
--- How do I get the name of my resource?
---------------------------------------------------
ScriptName = GetCurrentResourceName()
If you create any files make sure to add them to the fxmanifest.lua file under client or server scripts.
— Want more help? we are here: dragon code https://discord.gg/WPtnPbXhWY