Framework & Raw
For the cases where you genuinely need to know or reach past which framework is running — these two exist so you're never blocked waiting on a wc_lib update.
Framework introspection
Framework.Get()shared
Returns the active framework name.
| Returns | Type |
|---|---|
| name | 'vorp' | 'rsg' | nil |
example
print(wc:Framework_Get()) -- "vorp"
Framework.Is(name)shared
Boolean check against the active framework.
example — VORP-only feature gate
if wc:Framework_Is('vorp') then
-- e.g. a Honor-skill feature that only exists in VORP's skill system
end
Raw escape hatch
Need something the bridge doesn't cover yet — a specific VORP character setter, an RSG export with no wc_lib equivalent? Reach past the bridge entirely.
Raw.VORP()shared
Returns VORP's native Core object directly. Returns nil with a console warning if vorp_core isn't running.
example — a VORP-specific setter wc_lib doesn't wrap
local Core = wc:Raw_VORP()
local ch = wc:GetCharacter(source)
ch.setNickName("Stranger")
Raw.RSG()shared
Returns RSG's native RSGCore object directly. Returns nil with a console warning if rsg-core isn't running.
Reaching for Raw often enough? That's the signal to add a proper wrapped function instead — either contribute it back to wc_lib's modules, or add it once in
_custom/ so every resource gets the clean version instead of repeating the raw call. See Custom overrides.