--- title: C exports and FFI declarations summary: 309 API entries with return and parameter types. section: reference kind: guide status: reference updated: 2026-10-26 tags: ["API","X4"] sources: ["https://wiki.egosoft.com/X4%20Foundations%20Wiki/Modding%20Support/","https://www.lua.org/manual/5.1/manual.html","https://luajit.org/ext_ffi_api.html"] --- ## Contents [Types and methods](wiki:types). Parameter and result types refer to the stated X4 layer; unknown contracts are explicit. ## Combat and ammunition | Call / event | Returns | | --- | --- | | [AbortBoardingOperation](wiki:api-ffi-abortboardingoperation-b2c9f766) | bool | | [AddAttackerToBoardingOperation](wiki:api-ffi-addattackertoboardingoperation-946719cd) | bool | | [CreateBoardingOperation](wiki:api-ffi-createboardingoperation-d5da29b4) | bool | | [GetAllCountermeasures](wiki:api-ffi-getallcountermeasures-60e5e7bc) | uint32_t | | [GetAllLaserTowers](wiki:api-ffi-getalllasertowers-eaf94f34) | uint32_t | | [GetAllMines](wiki:api-ffi-getallmines-4c867d0f) | uint32_t | | [GetAllMissiles](wiki:api-ffi-getallmissiles-f63cdac6) | uint32_t | | [GetAttackersOfBoardingOperation](wiki:api-ffi-getattackersofboardingoperation-ae5d535b) | uint32_t | | [GetBoardingActionOfAttacker](wiki:api-ffi-getboardingactionofattacker-7d57556a) | const char* | | [GetBoardingCasualtiesOfTier](wiki:api-ffi-getboardingcasualtiesoftier-b12d9fec) | uint32_t | | [GetBoardingMarineTierAmountsFromAttacker](wiki:api-ffi-getboardingmarinetieramountsfromattacker-e26ecbe7) | bool | | [GetBoardingRiskThresholds](wiki:api-ffi-getboardingriskthresholds-009a7602) | BoardingRiskThresholds | | [GetBoardingStrengthFromOperation](wiki:api-ffi-getboardingstrengthfromoperation-939b7f3b) | uint32_t | | [GetCurrentAmmoOfWeapon](wiki:api-ffi-getcurrentammoofweapon-5e9196aa) | const char* | | [GetCurrentBoardingPhase](wiki:api-ffi-getcurrentboardingphase-bdcadbbd) | const char* | | [GetCurrentDroneMode](wiki:api-ffi-getcurrentdronemode-0a19f3ce) | const char* | | [GetDefaultCountermeasureStorageCapacity](wiki:api-ffi-getdefaultcountermeasurestoragecapacity-32b92ffb) | uint32_t | | [GetDefaultMissileStorageCapacity](wiki:api-ffi-getdefaultmissilestoragecapacity-5a90792d) | uint32_t | | [GetNumAllCountermeasures](wiki:api-ffi-getnumallcountermeasures-34448223) | uint32_t | | [GetNumAllLaserTowers](wiki:api-ffi-getnumalllasertowers-22755930) | uint32_t | | [GetNumAllMines](wiki:api-ffi-getnumallmines-939b2554) | uint32_t | | [GetNumAllMissiles](wiki:api-ffi-getnumallmissiles-55f314c0) | uint32_t | | [GetNumAttackersOfBoardingOperation](wiki:api-ffi-getnumattackersofboardingoperation-9bd32e9a) | uint32_t | | [GetNumBoardingMarinesFromOperation](wiki:api-ffi-getnumboardingmarinesfromoperation-358e1382) | uint32_t | | [GetNumCountermeasures](wiki:api-ffi-getnumcountermeasures-01e38048) | uint32_t | | [GetTurretGroupMode2](wiki:api-ffi-getturretgroupmode2-54e1509c) | const char* | | [GetUserTransportDroneMode](wiki:api-ffi-getusertransportdronemode-c061ac5e) | const char* | | [GetWeaponMode](wiki:api-ffi-getweaponmode-8d65466a) | const char* | | [IsDroneTypeArmed](wiki:api-ffi-isdronetypearmed-28c3fe34) | bool | | [IsWeaponArmed](wiki:api-ffi-isweaponarmed-2f678b90) | bool | | [RemoveAttackerFromBoardingOperation](wiki:api-ffi-removeattackerfromboardingoperation-6f74450a) | bool | | [StartBoardingOperation](wiki:api-ffi-startboardingoperation-b64bd09a) | bool | | [UpdateAttackerOfBoardingOperation](wiki:api-ffi-updateattackerofboardingoperation-d6e53a26) | bool | | [UpdateBoardingOperation](wiki:api-ffi-updateboardingoperation-d86defa5) | bool | ## Shipyards and construction | Call / event | Returns | | --- | --- | | [AddBuildTask6](wiki:api-ffi-addbuildtask6-fd01e65c) | BuildTaskID | | [ForceBuildCompletion](wiki:api-ffi-forcebuildcompletion-1e5507eb) | [`void`](wiki:type-results) | | [GetAvailableEquipment](wiki:api-ffi-getavailableequipment-97a3d425) | uint32_t | | [GetBuilderHiringFee](wiki:api-ffi-getbuilderhiringfee-36008b5f) | int64_t | | [GetBuildPlotCenterOffset](wiki:api-ffi-getbuildplotcenteroffset-9bb1307a) | Coord3D | | [GetBuildPlotPayment](wiki:api-ffi-getbuildplotpayment-9938e238) | int64_t | | [GetBuildPlotPrice](wiki:api-ffi-getbuildplotprice-7177a1a1) | int64_t | | [GetBuildPlotSize](wiki:api-ffi-getbuildplotsize-006dea79) | Coord3D | | [GetBuildProcessorEstimatedTimeLeft](wiki:api-ffi-getbuildprocessorestimatedtimeleft-5ba93f53) | double | | [GetBuildTaskDuration](wiki:api-ffi-getbuildtaskduration-54756b9b) | double | | [GetBuildTaskInfo](wiki:api-ffi-getbuildtaskinfo-9b21b26e) | BuildTaskInfo | | [GetBuildTasks](wiki:api-ffi-getbuildtasks-5cddc121) | uint32_t | | [GetBuildWarePrice](wiki:api-ffi-getbuildwareprice-2de71455) | int64_t | | [GetContainerBuilderMacros](wiki:api-ffi-getcontainerbuildermacros-74e9c158) | uint32_t | | [GetContainerBuildMethod](wiki:api-ffi-getcontainerbuildmethod-2e921401) | const char* | | [GetCurrentBuildProgress](wiki:api-ffi-getcurrentbuildprogress-1a7cdf44) | float | | [GetDefaultPlayerBuildMethod](wiki:api-ffi-getdefaultplayerbuildmethod-32fd02d8) | const char* | | [GetDefensibleLoadoutLevel](wiki:api-ffi-getdefensibleloadoutlevel-f3157e7e) | float | | [GetLoadoutsInfo](wiki:api-ffi-getloadoutsinfo-00a245af) | uint32_t | | [GetNumAvailableEquipment](wiki:api-ffi-getnumavailableequipment-d5d18521) | uint32_t | | [GetNumBuildTasks](wiki:api-ffi-getnumbuildtasks-4fe13a80) | uint32_t | | [GetNumContainerBuilderMacros](wiki:api-ffi-getnumcontainerbuildermacros-f9faa01e) | uint32_t | | [GetNumLoadoutsInfo](wiki:api-ffi-getnumloadoutsinfo-77bcf146) | uint32_t | | [GetNumSoftwarePredecessors](wiki:api-ffi-getnumsoftwarepredecessors-8b465b6f) | uint32_t | | [GetNumSoftwareSlots](wiki:api-ffi-getnumsoftwareslots-4c164521) | uint32_t | | [GetNumUpgradeSlots](wiki:api-ffi-getnumupgradeslots-4aac9228) | size_t | | [GetNumVirtualUpgradeSlots](wiki:api-ffi-getnumvirtualupgradeslots-9695543a) | size_t | | [GetPaidBuildPlotCenterOffset](wiki:api-ffi-getpaidbuildplotcenteroffset-d44102ea) | Coord3D | | [GetPaidBuildPlotSize](wiki:api-ffi-getpaidbuildplotsize-3df76091) | Coord3D | | [GetPlayerGlobalLoadoutLevel](wiki:api-ffi-getplayergloballoadoutlevel-aa14a7cf) | float | | [GetSoftwarePredecessors](wiki:api-ffi-getsoftwarepredecessors-98590d8f) | uint32_t | | [GetSoftwareSlots](wiki:api-ffi-getsoftwareslots-791468be) | uint32_t | | [GetUpgradeSlotCurrentComponent](wiki:api-ffi-getupgradeslotcurrentcomponent-d048dc57) | [`UniverseID`](wiki:type-ids) | | [GetUpgradeSlotCurrentMacro](wiki:api-ffi-getupgradeslotcurrentmacro-135b707d) | const char* | | [GetUpgradeSlotGroup](wiki:api-ffi-getupgradeslotgroup-bb176e4a) | UpgradeGroup | | [GetWorkForceInfo](wiki:api-ffi-getworkforceinfo-5f86b8e5) | WorkForceInfo | | [IsBuilderBusy](wiki:api-ffi-isbuilderbusy-9c6de1cd) | bool | | [IsLoadoutCompatible](wiki:api-ffi-isloadoutcompatible-b9fedf0e) | bool | | [IsLoadoutValid](wiki:api-ffi-isloadoutvalid-8b4f22c2) | bool | | [IsUpgradeGroupMacroCompatible](wiki:api-ffi-isupgradegroupmacrocompatible-4ec82519) | bool | | [IsUpgradeMacroCompatible](wiki:api-ffi-isupgrademacrocompatible-8b3d7658) | bool | | [IsVirtualUpgradeMacroCompatible](wiki:api-ffi-isvirtualupgrademacrocompatible-a33d09a8) | bool | | [RemoveLoadout](wiki:api-ffi-removeloadout-9977abdb) | bool | | [SetContainerBuildMethod](wiki:api-ffi-setcontainerbuildmethod-6fe3df3c) | [`void`](wiki:type-results) | | [SetDefensibleLoadoutLevel](wiki:api-ffi-setdefensibleloadoutlevel-7875c1cc) | [`void`](wiki:type-results) | ## Other X4 functions | Call / event | Returns | | --- | --- | | [CanContainerEquipShip](wiki:api-ffi-cancontainerequipship-bf897424) | bool | | [CanTeleportPlayerTo](wiki:api-ffi-canteleportplayerto-6c27c71a) | const char* | | [GetAllNavBeacons](wiki:api-ffi-getallnavbeacons-0f15cc24) | uint32_t | | [GetAllSatellites](wiki:api-ffi-getallsatellites-28a1a140) | uint32_t | | [GetAllUnits](wiki:api-ffi-getallunits-4c5c2c8f) | uint32_t | | [GetBlueprints](wiki:api-ffi-getblueprints-91778b2a) | uint32_t | | [GetComponentCollidableSize](wiki:api-ffi-getcomponentcollidablesize-b268b649) | float | | [GetCompSlotPlayerActions](wiki:api-ffi-getcompslotplayeractions-6228d0c0) | uint32_t | | [GetCurrentGameTime](wiki:api-ffi-getcurrentgametime-f507ebd1) | double | | [GetMacroDeployableCapacity](wiki:api-ffi-getmacrodeployablecapacity-71dc281c) | uint32_t | | [GetNumAllNavBeacons](wiki:api-ffi-getnumallnavbeacons-4bcb59b7) | uint32_t | | [GetNumAllSatellites](wiki:api-ffi-getnumallsatellites-1e141356) | uint32_t | | [GetNumAllUnits](wiki:api-ffi-getnumallunits-53e8cbc2) | uint32_t | | [GetNumBlueprints](wiki:api-ffi-getnumblueprints-31e306c1) | uint32_t | | [GetNumCompSlotPlayerActions](wiki:api-ffi-getnumcompslotplayeractions-da873f44) | uint32_t | | [GetNumConstructionPlanInfo](wiki:api-ffi-getnumconstructionplaninfo-99211a68) | size_t | | [GetNumImportableConstructionPlans](wiki:api-ffi-getnumimportableconstructionplans-7ca533d3) | uint32_t | | [GetNumPlannedStationModules](wiki:api-ffi-getnumplannedstationmodules-d6ceba61) | size_t | | [GetNumStationModules](wiki:api-ffi-getnumstationmodules-0c90bcec) | uint32_t | | [GetNumTransactionLog](wiki:api-ffi-getnumtransactionlog-f5cc126a) | uint32_t | | [GetOwnerDetails](wiki:api-ffi-getownerdetails-c0e18f2c) | FactionDetails | | [GetParentComponent](wiki:api-ffi-getparentcomponent-bfea98d3) | [`UniverseID`](wiki:type-ids) | | [GetPlannedStationModules](wiki:api-ffi-getplannedstationmodules-4d6443c6) | size_t | | [GetPlayerComputerID](wiki:api-ffi-getplayercomputerid-5a29ef9e) | [`UniverseID`](wiki:type-ids) | | [GetPlayerControlledShipID](wiki:api-ffi-getplayercontrolledshipid-8902ff7a) | [`UniverseID`](wiki:type-ids) | | [GetPlayerCurrentControlGroup](wiki:api-ffi-getplayercurrentcontrolgroup-9ad56f5f) | const char* | | [GetPlayerID](wiki:api-ffi-getplayerid-e4a69fdf) | [`UniverseID`](wiki:type-ids) | | [GetPlayerOccupiedShipID](wiki:api-ffi-getplayeroccupiedshipid-6220f7f6) | [`UniverseID`](wiki:type-ids) | | [GetRemainingOxygen](wiki:api-ffi-getremainingoxygen-baadef65) | float | | [GetStationModules](wiki:api-ffi-getstationmodules-30a53423) | uint32_t | | [GetTopLevelContainer](wiki:api-ffi-gettoplevelcontainer-0611012b) | [`UniverseID`](wiki:type-ids) | | [GetTransactionLog](wiki:api-ffi-gettransactionlog-bb5e5b46) | uint32_t | | [HasLimitedOxygenSupply](wiki:api-ffi-haslimitedoxygensupply-ca5002b8) | bool | | [IsAutoPilotActive](wiki:api-ffi-isautopilotactive-c38b5dbb) | bool | | [IsComponentClass](wiki:api-ffi-iscomponentclass-e5a78264) | bool | | [IsComponentOperational](wiki:api-ffi-iscomponentoperational-accc5d82) | bool | | [IsConstructionPlanValid](wiki:api-ffi-isconstructionplanvalid-79bf3cfb) | bool | | [IsDefensibleBeingBoardedBy](wiki:api-ffi-isdefensiblebeingboardedby-766b63c1) | bool | | [IsDeployableMacroCompatible](wiki:api-ffi-isdeployablemacrocompatible-49eefe51) | bool | | [IsGamePaused](wiki:api-ffi-isgamepaused-7c419bbd) | bool | | [IsIconValid](wiki:api-ffi-isiconvalid-5c3c7a35) | bool | | [IsInfoUnlockedForPlayer](wiki:api-ffi-isinfounlockedforplayer-6939f641) | bool | | [IsKnownToPlayer](wiki:api-ffi-isknowntoplayer-64ad595f) | bool | | [IsPlayerControlGroupValid](wiki:api-ffi-isplayercontrolgroupvalid-427ccc9b) | bool | | [IsSetaActive](wiki:api-ffi-issetaactive-c4c6280e) | bool | | [IsStartmenu](wiki:api-ffi-isstartmenu-c76b8116) | bool | | [IsUnitMacroCompatible](wiki:api-ffi-isunitmacrocompatible-49ef3e3d) | bool | | [PerformCompSlotPlayerAction](wiki:api-ffi-performcompslotplayeraction-46b4e9bd) | bool | | [SetComponentOwner](wiki:api-ffi-setcomponentowner-4db2e92a) | [`void`](wiki:type-results) | | [SetGuidance](wiki:api-ffi-setguidance-b5a4df97) | [`void`](wiki:type-results) | | [ShowInteractMenu](wiki:api-ffi-showinteractmenu-010e2a40) | [`void`](wiki:type-results) | | [SpawnStationAtPos](wiki:api-ffi-spawnstationatpos-1f79d390) | [`UniverseID`](wiki:type-ids) | | [ToggleAutoPilot](wiki:api-ffi-toggleautopilot-9c84e5c9) | bool | ## Loading and saving | Call / event | Returns | | --- | --- | | [SaveLoadout](wiki:api-ffi-saveloadout-12b20070) | [`void`](wiki:type-results) | | [SaveLoadout2](wiki:api-ffi-saveloadout2-daf81c3c) | [`void`](wiki:type-results) | | [TriggerAutosave](wiki:api-ffi-triggerautosave-87ab2343) | [`void`](wiki:type-results) | ## Map and presentation | Call / event | Returns | | --- | --- | | [ClearMapBuildPlot](wiki:api-ffi-clearmapbuildplot-386dabbd) | [`void`](wiki:type-results) | | [GetBuildMapStationLocation2](wiki:api-ffi-getbuildmapstationlocation2-502757ac) | [`UniverseID`](wiki:type-ids) | | [GetMapFocusComponent](wiki:api-ffi-getmapfocuscomponent-ae224618) | [`UniverseID`](wiki:type-ids) | | [GetMapPositionOnEcliptic2](wiki:api-ffi-getmappositiononecliptic2-faecc1fa) | [`UniverseID`](wiki:type-ids) | | [GetMapRenderedComponents](wiki:api-ffi-getmaprenderedcomponents-4aaef6b1) | uint32_t | | [GetMapState](wiki:api-ffi-getmapstate-108a3ffc) | [`void`](wiki:type-results) | | [GetNumMapRenderedComponents](wiki:api-ffi-getnummaprenderedcomponents-fb1a7373) | uint32_t | | [GetPickedMapComponent](wiki:api-ffi-getpickedmapcomponent-a3820e3f) | [`UniverseID`](wiki:type-ids) | | [GetPickedMapOrder](wiki:api-ffi-getpickedmaporder-a7e8feea) | [`UniverseID`](wiki:type-ids) | | [ImportMapConstructionPlan](wiki:api-ffi-importmapconstructionplan-9b146276) | [`void`](wiki:type-results) | | [IsCurrentBuildMapPlotValid](wiki:api-ffi-iscurrentbuildmapplotvalid-8ee45a1d) | bool | | [RemoveHoloMap](wiki:api-ffi-removeholomap-b1f63883) | [`void`](wiki:type-results) | | [SetFocusMapComponent](wiki:api-ffi-setfocusmapcomponent-33346c5d) | [`void`](wiki:type-results) | | [SetFocusMapOrder](wiki:api-ffi-setfocusmaporder-cbc71647) | [`void`](wiki:type-results) | | [SetMapTargetDistance](wiki:api-ffi-setmaptargetdistance-dea33456) | [`void`](wiki:type-results) | | [ShowConstructionMap](wiki:api-ffi-showconstructionmap-7e861bfc) | [`void`](wiki:type-results) | | [UpdateConstructionMapBuildPlot](wiki:api-ffi-updateconstructionmapbuildplot-886070a3) | [`void`](wiki:type-results) | | [UpdateMapBuildPlot](wiki:api-ffi-updatemapbuildplot-77430983) | [`void`](wiki:type-results) | ## World and position | Call / event | Returns | | --- | --- | | [GetAllResourceProbes](wiki:api-ffi-getallresourceprobes-e3182bbd) | uint32_t | | [GetCameraRotation](wiki:api-ffi-getcamerarotation-c81a71e8) | Rotation | | [GetCompSlotControlPosition](wiki:api-ffi-getcompslotcontrolposition-84865739) | const char* | | [GetContextByClass](wiki:api-ffi-getcontextbyclass-0b70f342) | [`UniverseID`](wiki:type-ids) | | [GetDiscoveredSectorResources](wiki:api-ffi-getdiscoveredsectorresources-b7c957e9) | uint32_t | | [GetNumAllResourceProbes](wiki:api-ffi-getnumallresourceprobes-8d15c4c6) | uint32_t | | [GetNumDiscoveredSectorResources](wiki:api-ffi-getnumdiscoveredsectorresources-0d220774) | uint32_t | | [GetObjectPositionInSector](wiki:api-ffi-getobjectpositioninsector-a40e63c2) | UIPosRot | | [GetPositionalOffset](wiki:api-ffi-getpositionaloffset-ad84c9cb) | UIPosRot | | [GetSectorControlStation](wiki:api-ffi-getsectorcontrolstation-b0faa707) | [`UniverseID`](wiki:type-ids) | | [GetSectorPopulation](wiki:api-ffi-getsectorpopulation-61e3d066) | uint64_t | | [IsContestedSector](wiki:api-ffi-iscontestedsector-d7797d49) | bool | | [SetPlayerCameraTargetView](wiki:api-ffi-setplayercameratargetview-0856f4ea) | [`void`](wiki:type-results) | | [SetPositionalOffset](wiki:api-ffi-setpositionaloffset-747925a0) | [`void`](wiki:type-results) | | [SetSofttarget](wiki:api-ffi-setsofttarget-2ad8d08c) | bool | ## Objects and identifiers | Call / event | Returns | | --- | --- | | [ConvertStringTo64Bit](wiki:api-ffi-convertstringto64bit-947b52ba) | uint64_t | | [GetObjectIDCode](wiki:api-ffi-getobjectidcode-c8e9be58) | const char* | ## AI rules and behavior | Call / event | Returns | | --- | --- | | [CreateBlacklist2](wiki:api-ffi-createblacklist2-8729c22e) | BlacklistID | | [CreateFightRule](wiki:api-ffi-createfightrule-4ddeb691) | FightRuleID | | [CreateTradeRule](wiki:api-ffi-createtraderule-9038ba0d) | TradeRuleID | | [GetAllBlacklists](wiki:api-ffi-getallblacklists-aa931087) | uint32_t | | [GetAllFightRules](wiki:api-ffi-getallfightrules-da1a36cd) | uint32_t | | [GetAllResponsesToSignal](wiki:api-ffi-getallresponsestosignal-80f7ab6c) | uint32_t | | [GetAllSignals](wiki:api-ffi-getallsignals-abde31a1) | uint32_t | | [GetAllTradeRules](wiki:api-ffi-getalltraderules-aed5b6f9) | uint32_t | | [GetAskToSignalForControllable](wiki:api-ffi-getasktosignalforcontrollable-68e36949) | bool | | [GetAskToSignalForFaction](wiki:api-ffi-getasktosignalforfaction-56dfdaf8) | bool | | [GetBlacklistInfo2](wiki:api-ffi-getblacklistinfo2-c2afba97) | bool | | [GetBlacklistInfoCounts](wiki:api-ffi-getblacklistinfocounts-7631a392) | BlacklistCounts | | [GetContainerTradeRuleID](wiki:api-ffi-getcontainertraderuleid-d5c244c9) | TradeRuleID | | [GetControllableBlacklistID](wiki:api-ffi-getcontrollableblacklistid-f40d94a8) | BlacklistID | | [GetControllableFightRuleID](wiki:api-ffi-getcontrollablefightruleid-5c41471e) | FightRuleID | | [GetDefaultResponseToSignalForControllable](wiki:api-ffi-getdefaultresponsetosignalforcontrollable-bea072a5) | const char* | | [GetDefaultResponseToSignalForFaction2](wiki:api-ffi-getdefaultresponsetosignalforfaction2-70800a67) | const char* | | [GetFightRuleInfo](wiki:api-ffi-getfightruleinfo-a32eb6a2) | bool | | [GetFightRuleInfoCounts](wiki:api-ffi-getfightruleinfocounts-e0b8069f) | FightRuleCounts | | [GetNumAllBlacklists](wiki:api-ffi-getnumallblacklists-5baf1655) | uint32_t | | [GetNumAllFightRules](wiki:api-ffi-getnumallfightrules-c721d4ab) | uint32_t | | [GetNumAllResponsesToSignal](wiki:api-ffi-getnumallresponsestosignal-484f3ce3) | uint32_t | | [GetNumAllSignals](wiki:api-ffi-getnumallsignals-85c463c6) | uint32_t | | [GetNumAllTradeRules](wiki:api-ffi-getnumalltraderules-8cfd1f8d) | uint32_t | | [GetNumBlacklistTypes](wiki:api-ffi-getnumblacklisttypes-8f142ccf) | uint32_t | | [GetNumFightRuleTypes](wiki:api-ffi-getnumfightruletypes-d04ef468) | uint32_t | | [GetSubordinateGroupAssignment](wiki:api-ffi-getsubordinategroupassignment-df9c0260) | const char* | | [GetSubordinateGroupProtectedPosition](wiki:api-ffi-getsubordinategroupprotectedposition-2c2a8ae7) | UIPosRot | | [GetSubordinateGroupProtectedSector](wiki:api-ffi-getsubordinategroupprotectedsector-683ac683) | [`UniverseID`](wiki:type-ids) | | [GetTradeRuleInfo](wiki:api-ffi-gettraderuleinfo-f6ba3b71) | bool | | [GetTradeRuleInfoCounts](wiki:api-ffi-gettraderuleinfocounts-11122d7d) | TradeRuleCounts | | [HasContainerOwnTradeRule](wiki:api-ffi-hascontainerowntraderule-3dc114dc) | bool | | [HasControllableOwnBlacklist](wiki:api-ffi-hascontrollableownblacklist-677dd142) | bool | | [HasControllableOwnFightRule](wiki:api-ffi-hascontrollableownfightrule-5d85f34b) | bool | | [HasControllableOwnResponse](wiki:api-ffi-hascontrollableownresponse-d40943e4) | bool | | [ReleaseDetachedSubordinateGroup](wiki:api-ffi-releasedetachedsubordinategroup-2438feb5) | [`void`](wiki:type-results) | | [RemoveBlacklist](wiki:api-ffi-removeblacklist-d12f8259) | [`void`](wiki:type-results) | | [RemoveFightRule](wiki:api-ffi-removefightrule-7018ffc9) | [`void`](wiki:type-results) | | [RemoveTradeRule](wiki:api-ffi-removetraderule-f2aec11a) | [`void`](wiki:type-results) | | [ResetDefaultResponseToSignalForFaction](wiki:api-ffi-resetdefaultresponsetosignalforfaction-015cb8ad) | [`void`](wiki:type-results) | | [ResetResponseToSignalForControllable](wiki:api-ffi-resetresponsetosignalforcontrollable-c1ab099d) | bool | | [SetContainerTradeRule](wiki:api-ffi-setcontainertraderule-3ce8e68c) | [`void`](wiki:type-results) | | [SetControllableBlacklist](wiki:api-ffi-setcontrollableblacklist-dec38ee7) | [`void`](wiki:type-results) | | [SetControllableFightRule](wiki:api-ffi-setcontrollablefightrule-c676c6b5) | [`void`](wiki:type-results) | | [SetDefaultResponseToSignalForControllable](wiki:api-ffi-setdefaultresponsetosignalforcontrollable-e26754ad) | bool | | [SetDefaultResponseToSignalForFaction2](wiki:api-ffi-setdefaultresponsetosignalforfaction2-72b9b0c0) | bool | | [SetSubordinateGroupAssignment](wiki:api-ffi-setsubordinategroupassignment-7e393082) | [`void`](wiki:type-results) | | [SetSubordinateGroupAttackOnSight](wiki:api-ffi-setsubordinategroupattackonsight-cc6b4aa3) | [`unknown`](wiki:type-results) | | [SetSubordinateGroupDockAtCommander](wiki:api-ffi-setsubordinategroupdockatcommander-99b27f16) | [`unknown`](wiki:type-results) | | [SetSubordinateGroupProtectedLocation](wiki:api-ffi-setsubordinategroupprotectedlocation-df6e3419) | [`void`](wiki:type-results) | | [SetSubordinateGroupReinforceFleet](wiki:api-ffi-setsubordinategroupreinforcefleet-7b5aa4d4) | [`unknown`](wiki:type-results) | | [SetSubordinateGroupRespondToDistressCalls](wiki:api-ffi-setsubordinategrouprespondtodistresscalls-2acc1301) | [`unknown`](wiki:type-results) | | [SetSubordinateGroupResupplyAtFleet](wiki:api-ffi-setsubordinategroupresupplyatfleet-c49b988f) | [`unknown`](wiki:type-results) | | [ShouldSubordinateGroupAttackOnSight](wiki:api-ffi-shouldsubordinategroupattackonsight-60ece85b) | [`unknown`](wiki:type-results) | | [ShouldSubordinateGroupDockAtCommander](wiki:api-ffi-shouldsubordinategroupdockatcommander-1f68a999) | [`unknown`](wiki:type-results) | | [ShouldSubordinateGroupReinforceFleet](wiki:api-ffi-shouldsubordinategroupreinforcefleet-ee0e5fef) | [`unknown`](wiki:type-results) | | [ShouldSubordinateGroupRespondToDistressCalls](wiki:api-ffi-shouldsubordinategrouprespondtodistresscalls-f19911bf) | [`unknown`](wiki:type-results) | | [ShouldSubordinateGroupResupplyAtFleet](wiki:api-ffi-shouldsubordinategroupresupplyatfleet-41715292) | [`unknown`](wiki:type-results) | | [UpdateBlacklist2](wiki:api-ffi-updateblacklist2-9b6455dc) | [`void`](wiki:type-results) | | [UpdateFightRule](wiki:api-ffi-updatefightrule-f7308c8a) | [`void`](wiki:type-results) | | [UpdateTradeRule](wiki:api-ffi-updatetraderule-08d494c2) | [`void`](wiki:type-results) | ## Orders and control | Call / event | Returns | | --- | --- | | [AdjustOrder](wiki:api-ffi-adjustorder-4b4a65cb) | bool | | [CreateOrder3](wiki:api-ffi-createorder3-cf275da2) | uint32_t | | [EnablePlannedDefaultOrder](wiki:api-ffi-enableplanneddefaultorder-9cf57828) | bool | | [GetDefaultOrder](wiki:api-ffi-getdefaultorder-e331b710) | bool | | [GetDefaultOrderFailure](wiki:api-ffi-getdefaultorderfailure-7274e0fa) | bool | | [GetDockedShips](wiki:api-ffi-getdockedships-af4ecafa) | uint32_t | | [GetFormationShapes](wiki:api-ffi-getformationshapes-dc2353c3) | uint32_t | | [GetNumDockedShips](wiki:api-ffi-getnumdockedships-c957f974) | uint32_t | | [GetNumFormationShapes](wiki:api-ffi-getnumformationshapes-ffba1911) | uint32_t | | [GetNumOrderDefinitions](wiki:api-ffi-getnumorderdefinitions-4ef9858e) | uint32_t | | [GetNumOrderFailures](wiki:api-ffi-getnumorderfailures-cc45a36f) | uint32_t | | [GetNumOrders](wiki:api-ffi-getnumorders-6fae53e4) | uint32_t | | [GetNumValidTransporterTargets2](wiki:api-ffi-getnumvalidtransportertargets2-38216cb6) | uint32_t | | [GetOrderDefinitions](wiki:api-ffi-getorderdefinitions-f5a468c9) | uint32_t | | [GetOrderFailures](wiki:api-ffi-getorderfailures-219e7826) | uint32_t | | [GetOrderID](wiki:api-ffi-getorderid-900d5716) | AIOrderID | | [GetOrderLoopSkillLimit](wiki:api-ffi-getorderloopskilllimit-50036953) | uint32_t | | [GetOrderQueueFirstLoopIdx](wiki:api-ffi-getorderqueuefirstloopidx-044ad1ba) | size_t | | [GetOrders3](wiki:api-ffi-getorders3-d6a56276) | uint32_t | | [GetPlannedDefaultOrder](wiki:api-ffi-getplanneddefaultorder-e7c873a5) | bool | | [GetRoomForTransporter](wiki:api-ffi-getroomfortransporter-a263de4c) | [`UniverseID`](wiki:type-ids) | | [GetValidTransporterTargets2](wiki:api-ffi-getvalidtransportertargets2-8d1e4044) | uint32_t | | [IsOrderLoopable](wiki:api-ffi-isorderloopable-861b7e72) | bool | | [IsOrderSelectableFor](wiki:api-ffi-isorderselectablefor-940bc612) | bool | | [IsShipAtExternalDock](wiki:api-ffi-isshipatexternaldock-a51e57d1) | bool | | [QuickDock](wiki:api-ffi-quickdock-d5869416) | bool | | [RemoveAllOrders](wiki:api-ffi-removeallorders-863303ca) | bool | | [RemoveDefaultOrderFailure](wiki:api-ffi-removedefaultorderfailure-23fe3208) | [`void`](wiki:type-results) | | [RemoveOrder](wiki:api-ffi-removeorder-29e46403) | bool | | [RemoveOrderFailure](wiki:api-ffi-removeorderfailure-af62a612) | [`void`](wiki:type-results) | | [RemovePlannedDefaultOrder](wiki:api-ffi-removeplanneddefaultorder-332f56ae) | [`void`](wiki:type-results) | | [RequestDockAt](wiki:api-ffi-requestdockat-c203cd68) | bool | | [RequestDockAtReason](wiki:api-ffi-requestdockatreason-fb5328e5) | const char* | | [ResetOrderLoop](wiki:api-ffi-resetorderloop-6f808bb9) | [`void`](wiki:type-results) | | [SetFormationShape](wiki:api-ffi-setformationshape-69ef087b) | UIFormationInfo | | [SetOrderLoop](wiki:api-ffi-setorderloop-f4aea31c) | bool | | [StartPlayerActivity](wiki:api-ffi-startplayeractivity-3ad11732) | [`void`](wiki:type-results) | | [StopPlayerActivity](wiki:api-ffi-stopplayeractivity-a3f75186) | [`void`](wiki:type-results) | | [TransportPlayerToTarget](wiki:api-ffi-transportplayertotarget-0cf3fc61) | [`void`](wiki:type-results) | | [UndockPlayerShip](wiki:api-ffi-undockplayership-83ed0438) | const char* | ## Trade, cargo and accounts | Call / event | Returns | | --- | --- | | [GetCargo](wiki:api-ffi-getcargo-f00a298e) | uint32_t | | [GetMoneyLog](wiki:api-ffi-getmoneylog-2090f2d2) | uint32_t | | [GetNumCargo](wiki:api-ffi-getnumcargo-74ede4fd) | uint32_t | | [GetNumUnitCargo](wiki:api-ffi-getnumunitcargo-551f6b6f) | uint32_t | | [GetNumWares](wiki:api-ffi-getnumwares-e848c92d) | uint32_t | | [GetPlayerGlobalTradeLoopCargoReservationSetting](wiki:api-ffi-getplayerglobaltradeloopcargoreservationsetting-4c68563b) | bool | | [GetShipTradeLoopCargoReservationSetting](wiki:api-ffi-getshiptradeloopcargoreservationsetting-bf8956c6) | bool | | [GetSupplyBudget](wiki:api-ffi-getsupplybudget-d0893853) | int64_t | | [GetTradeWareBudget](wiki:api-ffi-gettradewarebudget-2dd53029) | int64_t | | [GetUnitCargo](wiki:api-ffi-getunitcargo-61fdc67c) | uint32_t | | [GetWares](wiki:api-ffi-getwares-128cfab3) | uint32_t | | [HasShipTradeLoopCargoReservationOverride](wiki:api-ffi-hasshiptradeloopcargoreservationoverride-cc0cbaaf) | bool | | [RemoveShipTradeLoopCargoReservationOverride](wiki:api-ffi-removeshiptradeloopcargoreservationoverride-d5f101d7) | [`void`](wiki:type-results) | | [SetShipTradeLoopCargoReservationOverride](wiki:api-ffi-setshiptradeloopcargoreservationoverride-8d2a56c0) | [`void`](wiki:type-results) | ## Factions and diplomacy | Call / event | Returns | | --- | --- | | [GetAllFactions](wiki:api-ffi-getallfactions-85d5514b) | uint32_t | | [GetAllFactionStations](wiki:api-ffi-getallfactionstations-608098fe) | uint32_t | | [GetCurrentFleetLogo](wiki:api-ffi-getcurrentfleetlogo-faa57f48) | UILogo | | [GetCurrentPlayerLogo](wiki:api-ffi-getcurrentplayerlogo-14305c11) | UILogo | | [GetFactionBuildMethod](wiki:api-ffi-getfactionbuildmethod-ed779bef) | [`unknown`](wiki:type-results) | | [GetFleetName](wiki:api-ffi-getfleetname-733aa625) | const char* | | [GetNumAllFactions](wiki:api-ffi-getnumallfactions-51951809) | uint32_t | | [GetNumAllFactionStations](wiki:api-ffi-getnumallfactionstations-f2a19163) | uint32_t | | [GetNumPlayerLogos](wiki:api-ffi-getnumplayerlogos-54f5ef9b) | uint32_t | | [GetPlayerFactionName](wiki:api-ffi-getplayerfactionname-3f267632) | const char* | | [GetPlayerLogos](wiki:api-ffi-getplayerlogos-d08f0218) | uint32_t | | [IsFactionEnemyToFaction](wiki:api-ffi-isfactionenemytofaction-37491fdc) | bool | | [SetFactionBuildMethod](wiki:api-ffi-setfactionbuildmethod-48ddeb82) | [`void`](wiki:type-results) | | [SetFleetLogo](wiki:api-ffi-setfleetlogo-c3e8b3fe) | [`void`](wiki:type-results) | | [SetFleetName](wiki:api-ffi-setfleetname-63da6a98) | [`void`](wiki:type-results) | | [SetPlayerFactionName](wiki:api-ffi-setplayerfactionname-451d7db0) | [`void`](wiki:type-results) | ## NPCs and characters | Call / event | Returns | | --- | --- | | [GetContainerBuildPriceFactor](wiki:api-ffi-getcontainerbuildpricefactor-90f1f943) | float | | [GetControlPanelName](wiki:api-ffi-getcontrolpanelname-0e787f57) | const char* | | [GetEntityCombinedSkill](wiki:api-ffi-getentitycombinedskill-c02983d5) | int32_t | | [GetPersonCombinedSkill](wiki:api-ffi-getpersoncombinedskill-a589a3af) | int32_t | | [GetPersonName](wiki:api-ffi-getpersonname-0e8ad07d) | const char* | | [GetPersonRole](wiki:api-ffi-getpersonrole-7f9d4b36) | const char* | | [GetPlayerName](wiki:api-ffi-getplayername-aea401b0) | const char* | | [PerformCrewExchange2](wiki:api-ffi-performcrewexchange2-2c403592) | UICrewExchangeResult |