Verified
Core Object
Both the client and server Core source expose the same getCoreObject entry point.
Accessing Vcore
lua
local VCORE = exports.core:getCoreObject()The export is defined in both core/client/main.lua and core/server/main.lua.
Verified namespaces
| Namespace | Purpose observed in source |
|---|---|
VCORE.Functions | Framework client/server helpers, callbacks, player access, UI and utilities. |
VCORE.Common | Shared/common utility functions. |
VCORE.Shared | Reference to VCOREShared data. |
VCORE.Config | Reference to VCOREConfig. |
VCORE.Players | Server-side player cache. |
VCORE.PlayerData | Client-side current player data. |
Object event
The Core also registers VCORE:GetObject on both sides.
lua
TriggerEvent('VCORE:GetObject', function(VCORE) -- use VCORE here
end)