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

Client

Call from client-side scripts only (local player).


OpenEditor

Opens the map editor for the local player. The server still checks permission.

Parameters: none

Returns: nothing

exports['cdev_mapeditor']:OpenEditor()

Example key mapping

RegisterCommand('+openmapeditor', function()
    exports['cdev_mapeditor']:OpenEditor()
end, false)

RegisterKeyMapping('+openmapeditor', 'Open map editor', 'keyboard', 'F7')

CloseEditor

Closes the editor for the local player.

Parameters: none

Returns: nothing


IsEditorOpen

Returns whether the local editor session is active.

Parameters: none

Returns: boolean


GetCustomProps

Returns the buyer MapEditorConfig.CustomProps table (useful for tools that extend the catalog).

Parameters: none

Returns: table

Last updated