QueryHost
Esc

Documentation menu

API reference · interfaces

Interface: CfxData<P>

Generated from the QueryHost package public TypeScript contract.

Data shared by Cfx FXServer games and merged from their fixed JSON endpoints.

Extended by

Type Parameters

P

P extends CfxPlayer = CfxPlayer

Properties

enhancedHostSupport?

readonly optional enhancedHostSupport?: boolean


gameType?

readonly optional gameType?: string


oneSyncEnabled?

readonly optional oneSyncEnabled?: boolean


players?

readonly optional players?: readonly P[]

Omitted when the players endpoint is unavailable; an empty array means confirmed empty.


resources?

readonly optional resources?: readonly string[]

Omitted when the resources endpoint is unavailable; an empty array means confirmed empty.


variables?

readonly optional variables?: Readonly<Record<string, string>>