resource-name with the exact name of the Zyra Store resource (for example, zyra-mi-script) and FunctionName with the name of the function you want to invoke. All client exports must be called only from client-side scripts (client.lua).
GetPlayerData()
Returns a table with the current local player’s data. Use this function to access character information without needing to make a request to the server.other-resource/client.lua
OpenMenu(menuId)
Opens a specific script menu identified by its ID. Returnstrue if the menu opened correctly, or false if the ID does not exist or the menu is already open.
The identifier of the menu you want to open. Accepted values:
'main', 'admin', 'settings'.other-resource/client.lua
CloseMenu()
Closes whichever menu is currently open. If there is no active menu, the call has no effect.other-resource/client.lua
TriggerCallback(name, cb, …)
Triggers a server-side callback and delivers the result back to the client through thecb function. You can pass additional arguments after the callback to send them to the server.
The name of the callback registered on the server (for example,
'zyra:getServerData').The function that will execute when the server responds. Receives the returned data as an argument.
other-resource/client.lua
IsReady()
Returnstrue if the script has finished initializing and is ready to operate. Useful for avoiding calls to other exports before the resource has fully loaded.
other-resource/client.lua
GetLocale(key)
Returns the localized text string corresponding to the provided key, according to the language configured in the script. If the key does not exist, the key itself is returned as a fallback.The localization key defined in the script’s
locales/*.lua files (for example, 'notify_success').other-resource/client.lua
To see the exports available on the server side, visit the server exports reference.
