Functions

Here you will find functions and example code on how to use our Dialog V1 System.

Camera

The Camera can only be invoked on the Client-Side!

Creating Camera

exports["is_dialog"]:createCamera(entity, data)
  • entity: entity(ped)

  • data: table or nil

    • camera: table or nil

      • position: table or nil

        • x: number or nil

        • y: number or nil

        • z: number or nil

      • offset: table or nil

        • x: number or nil

        • y: number or nil

        • z: number or nil

      • fov: number or nil

      • ease: boolean or nil

      • easeTime: number or nil

    • animation: table or nil

      • dict: string

      • anim: string

Example Usage

Destroying Camera

  • data: table or nil

    • ease: boolean or nil

    • easeTime: number or nil

Example Usage

Getting Camera State

Example Usage

Dialog

The Dialog can only be invoked on the Client-Side!

Creating Dialog

  • data: table or nil

    • audio: table or nil

      • path: string(audio/yourAudioFile.mp3) or nil

      • volume: number or nil

    • title: table or nil

      • text: string or nil

      • background: table or nil

        • primary: string(hex) or nil

        • secondary: string(hex) or nil

    • additional: table or nil

      • text: string or nil

      • icon: string or nil

      • background: table or nil

        • primary: string(hex) or nil

        • secondary: string(hex) or nil

    • message: table or nil

      • text: string or nil

      • typeEffect: number or boolean or nil

    • buttons: table or nil

      • button: indexed table

        • input: boolean

        • message: string

        • type: text or number

        • icon: table or nil

          • name: string or nil

          • color: string(hex) or nil

        • onSelect: function

Example Usage

Destroying Dialog

Example Usage

Getting Dialog State

Example Usage

Camera & Dialog Usage

Last updated