Repository navigation
Releases: Yecoyz/yecoyz_core
Releases · Yecoyz/yecoyz_core
Release list
yecoyz_core 1.0.0
First release of yecoyz_core: one shared framework layer and callback system for the yecoyz resources, replacing the bridge each resource used to carry.
Install
Download yecoyz_core.zip below and extract it into your resources folder. It already contains a yecoyz_core folder; the name matters because resources load @yecoyz_core/import.lua. Then start it after your framework and before the resources that use it:
ensure es_extended # or qb-core / qbx_core
ensure yecoyz_coreWhat's in it
- Framework layer for ESX, QBCore, Qbox and standalone, detected automatically: identifiers, characters, jobs and duty, money, inventory (ox_inventory or the framework's), notifications, permissions and multicharacter login/logout.
- Callbacks (
Core.Callback.Register / Await / Trigger) to replacelib.callback, in both directions. Nil values survive, requests time out after 10 s, handler errors answer right away, and on the server only the player who was asked can reply. - Shared events:
Core.OnPlayerLoaded,Core.OnPlayerUnloaded,Core.OnJobUpdated, the same on every framework. - Import:
shared_script '@yecoyz_core/import.lua'gives a resource theCoreglobal. Every function is also a plain export.
Used by yecoyz_duty, yecoyz_minigames, yecoyz_radar, yecoyz_characters, yecoyz_appearance and yecoyz_jukebox. See the README for the full API.