mirror of
https://github.com/omltcat/dcs-lua-definitions.git
synced 2025-11-10 15:48:52 +00:00
Add functions in server GUI
Add AI enum table Add some missing functions
This commit is contained in:
@@ -3,6 +3,16 @@
|
||||
---@class net
|
||||
net = {}
|
||||
|
||||
---Executes a lua string in a given lua environment in the game.
|
||||
---@param state 'mission'|'gui'|'server'|'export'|'config' -- The lua environment in the game.<br>
|
||||
--- `'mission'`: holds current mission <br>
|
||||
--- `'server'`: GUI (hooks) environment <br>
|
||||
--- `'export'`: runs $WRITE_DIR/Scripts/Export.lua and the relevant export API <br>
|
||||
--- `'config'`: the state in which $INSTALL_DIR/Config/main.cfg is executed, as well as $WRITE_DIR/Config/autoexec.cfg. Used for configuration settings <br>
|
||||
---@param dostring string -- The lua string to be executed.
|
||||
---@return string -- The result of the lua string execution.
|
||||
function net.dostring_in(state, dostring) end
|
||||
|
||||
---Forces the player to occupy the set slot.<br>
|
||||
---SlotId matches unit Ids of client aircraft. The exception being Combined Arms slots and multicrew slots. The latter of which have "_X" appended to denote the seat.
|
||||
---SideID:
|
||||
@@ -55,4 +65,10 @@ function net.lua2json(lua) end
|
||||
---Converts a JSON string to a lua table.
|
||||
---@param json string
|
||||
---@return table
|
||||
function net.json2lua(json) end
|
||||
function net.json2lua(json) end
|
||||
|
||||
---Kicks a player from the server. Can display a message to the user.
|
||||
---@param playerId integer -- The id of the player to be kicked.
|
||||
---@param message string? -- The message to player received after kicked.
|
||||
---@return boolean
|
||||
function net.kick(playerId, message) end
|
||||
Reference in New Issue
Block a user