🇭🇰
Sleeping Dogs: DE (Script API)
  • Overview
  • ⛔Const
  • đŸ”ĸEnums
  • đŸ“ĻClasses
    • 🌈Color
    • 💾Config
    • 🚀Console
    • â˜¯ī¸Font
    • đŸ‘ŊHash
    • đŸ–ŧī¸Image
    • âŒ¨ī¸Input
    • đŸ‘ī¸Renderer
    • âŗTimer
    • 2ī¸âƒŖVector2
    • 3ī¸âƒŖVector3
  • đŸ—ƒī¸Game Classes
    • â„šī¸Overview
    • 🔊Audio
    • 📹Camera
    • đŸĢ‚CollisionData
    • 🎮GameInput
    • 🧩GameSlice
    • đŸ“ēHud
    • 📊Metrics
    • 📱PDA
    • 📈ProgressionTracker
    • 💡SimObject
    • 📮SimObjectProp
    • 🧍SimCharacter
    • 🚘SimVehicle
    • đŸ”ĢSimWeapon
    • â˜€ī¸TimeOfDayManager
  • 📩Callbacks
    • OnCollision
    • OnCharacterDeath
    • OnCharacterSpawn
    • OnGameUpdate
    • OnRender
    • OnUnload
    • OnVehicleDeath
Powered by GitBook
On this page

Was this helpful?

  1. Classes

Config

Built-in Config library. (Scripts\Configs\{script_name}.ini)

Static Functions:

.IsEmpty

Config.IsEmpty(): boolean

Returns true if there is no section/key.

.KeyExists

Config.KeyExists(section: string, key: string): boolean

Argument
Type
Description

section

string

-

key

string

-

Returns true if section & key exists otherwise false.

.GetAllSections

Config.GetAllSections(): array[string]

Returns array of strings with all sections.

.GetAllKeys

Config.GetAllKeys(section: string): array[string]

Argument
Type
Description

section

string

-

Returns array of strings with all keys inside requested section.

.GetBoolean

Config.GetBoolean(section: string, key: string, default: boolean): boolean

Argument
Type
Description

section

string

-

key

string

-

default

boolean

-

.SetBoolean

Config.SetBoolean(section: string, key: string, value: boolean)

Argument
Type
Description

section

string

-

key

string

-

value

boolean

-

.GetInteger

Config.GetInteger(section: string, key: string, default: integer): integer

Argument
Type
Description

section

string

-

key

string

-

default

integer

-

.SetInteger

Config.SetInteger(section: string, key: string, value: integer)

Argument
Type
Description

section

string

-

key

string

-

value

integer

-

.GetHexadecimal

Config.GetHexadecimal(section: string, key: string, default: hexadecimal): hexadecimal

Argument
Type
Description

section

string

-

key

string

-

default

hexadecimal

-

.SetHexadecimal

Config.SetHexadecimal(section: string, key: string, value: hexadecimal)

Argument
Type
Description

section

string

-

key

string

-

value

hexadecimal

-

.GetFloat

Config.GetFloat(section: string, key: string, default: float): float

Argument
Type
Description

section

string

-

key

string

-

default

float

-

.SetFloat

Config.SetFloat(section: string, key: string, value: float)

Argument
Type
Description

section

string

-

key

string

-

value

float

-

.GetString

Config.GetString(section: string, key: string, default: string): string

Argument
Type
Description

section

string

-

key

string

-

default

string

-

.SetString

Config.SetString(section: string, key: string, value: string)

Argument
Type
Description

section

string

-

key

string

-

value

string

-

.Delete

Config.Delete(section: string, key: string): boolean

Argument
Type
Description

section

string

-

key

string

-

Returns true if key inside section was successfully deleted.

The section will be automatically deleted when there is no key left.

PreviousColorNextConsole

Last updated 2 years ago

Was this helpful?

đŸ“Ļ
💾