Kartik Scripts

Exports & Hooks

Use your folder name instead of kartik-multicharacter if you renamed the resource.

🖥️ Client exports

exports['kartik-multicharacter']:Logout()                    -- same checks as /logout, for radial menus
exports['kartik-multicharacter']:IsSelecting()               -- true while the select screen is open
exports['kartik-multicharacter']:GetPlayerComponent(category) -- VORP, also as exports.vorp_character
exports['kartik-multicharacter']:GetAllPlayerComponents()     -- VORP, also as exports.vorp_character

🗄️ Server exports

exports['kartik-multicharacter']:Logout(source)
exports['kartik-multicharacter']:OpenSelection(source)                 -- for players not loaded in
exports['kartik-multicharacter']:AddCharacterSlots(identifier, amount) -- negative to remove
exports['kartik-multicharacter']:GetCharacterSlots(source)             -- the player's total slots

🪝 Hooks

These files are yours to edit. Keep a copy of them when you update the resource.

FileFunctionWhen it runs
bridge/custom/server/hooks.luaOnCharacterCreated(source, citizenid)After a new RSG character is made
bridge/custom/client/hud.luaCustomToggleHud(show)false when character select, the creator or the scene creator opens, true when it closes. Hide your own HUD here
function CustomToggleHud(show)
    exports['my-hud']:SetVisible(show)
end

🤠 vorp_character compatibility

On VORP, scripts made for vorp_character keep working. See VORP.

On this page