P3d connected

From Sim Innovations Wiki
Jump to navigation Jump to search

Description

connected = p3d_connected()

p3d_connected is used to check if there is an active connected with Prepar3d.

Return value

Argument Type Description
connected Boolean True is connected, otherwise false.

Arguments

This function requires no arguments

Example

if p3d_connected() then
  print("We are connected to Prepar3d!")
end