For the complete documentation index, see llms.txt. This page is also available as Markdown.

Server

Call from server-side scripts only. Pass a valid player server id (source) when the export needs a player.


OpenEditorFor

Asks the given player to open the editor. Permission is still enforced.

Parameters

Name
Type
Required
Description

source

number

Yes

Player server id

Returns

Nothing (fires the open flow on that client).

exports['cdev_mapeditor']:OpenEditorFor(source)

Example command

RegisterCommand('editmap', function(source)
    if source == 0 then return end
    exports['cdev_mapeditor']:OpenEditorFor(source)
end, true)

CanUseEditor

Returns whether the player passes ACE / framework admin checks.

Parameters

Name
Type
Required
Description

source

number

Yes

Player server id

Returns

boolean


GetActiveMaps

Returns the list of maps currently marked active for world sync (live production).

Parameters

none

Returns

table of map meta entries (id, name, revision, anchor, and related fields as provided by WorldSync).


GetCustomProps

Same custom catalog list as the client export. Used by cdev_propshot when building the capture queue.

Parameters

none

Returns

table

Last updated