inside-scripts
Store
  • INFORMATION
    • inside-scripts
  • PAID SCRIPTS
    • 🔑 Vehicle Keys
      • Functions
      • Config
    • 🚗 Garage
      • Functions
      • Script Functionality Overview
      • Config
    • 🥦 Weed Laboratory
      • Config
    • 💊 Sell Drugs
      • Script Functionality Overview
      • Config
    • 🗯️ Dialog V1
      • Functions
      • Config
    • 🗯️ Dialog V2
      • Functions
      • Config
    • 📰 Interaction
      • Functions
      • Config
    • 🪧Notifications and Progress
      • Functions
      • Config
    • 🪛 Lock Picking
      • Config
  • FREE SCRIPTS
    • 🖥️ Bridge & Library
      • Compatibility
      • Usage & Installation
      • Functions
        • Bridge
          • Framework
            • Client
            • Server
          • Inventory
            • Server
          • Fuel
            • Client
          • Keys
            • Client
            • Server
          • Notification
            • Client
            • Server
          • Progress Bar
            • Client
          • Target
            • Client
        • Library
          • Callback
            • Client
            • Server
          • Entity
            • Client
            • Server
          • Blip
            • Client
          • Identifier
            • Server
          • Timezone
            • Server
          • Webhook
            • Server
          • Utility
            • Shared
Powered by GitBook
On this page
  • getPlayerData
  • Usage
  • Example
  • isLoaded
  • Usage
  • Example
  • registerCommand
  • Usage
  • Example
  • updateJob
  • Usage
  • Example
  1. FREE SCRIPTS
  2. 🖥️ Bridge & Library
  3. Functions
  4. Bridge
  5. Framework

Client

getPlayerData

Usage

bridge.framework.getPlayerData()

Example

bridge.framework.getPlayerData()
  • return: object

    • identifier: string

    • gender: string

    • name: object

      • first: string

      • last: string

      • full: string

    • job: object

      • name: string

      • label: string

      • onDuty: boolean

      • grade: number

      • gradeName: string

isLoaded

Usage

bridge.framework.isLoaded()

Example

bridge.framework.isLoaded()
  • return: boolean

registerCommand

Usage

bridge.framework.registerCommand(name, job, cb, data)
  • name: string

  • job(optional): array or string

    • name: string

  • cb: function

  • data(optional): object

    • help(optional): string

    • arguments(optional): array

      • name: string

      • help: string

      • optional: boolean

Example

bridge.framework.registerCommand("test", nil, function(args)
    print("Example Command")
end)
bridge.framework.registerCommand("test", {"police", "mechanic"}, function(args)
    print("playerId: " .. args.playerId)
    print("fullname: " .. args.fullname)
end, {
    help = "Example Command Help",
    arguments = {
        {name = "playerId", help = "Provide Player Id", optional = false},
        {name = "fullname", help = "Provide Player Id Full Name", optional = true},
    },
})

updateJob

Usage

RegisterNetEvent("is_bridge:updateJob", cb)
  • cb: function

Example

RegisterNetEvent("is_bridge:updateJob", function(job)
    PlayerData.job = job
end)
  • return: object

    • name: string

    • label: string

    • onDuty: boolean

    • grade: number

    • gradeName: string

Last updated 7 months ago