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
  • getPlayerByIdentifier
  • Usage
  • Example
  • addMoney
  • Usage
  • Example
  • removeMoney
  • Usage
  • Example
  • createUsableItem
  • Usage
  • Example
  • registerCommand
  • Usage
  • Example
  • getAllJobs
  • Usage
  • Example
  • getJob
  • Usage
  • Example
  1. FREE SCRIPTS
  2. 🖥️ Bridge & Library
  3. Functions
  4. Bridge
  5. Framework

Server

getPlayerData

Usage

bridge.framework.getPlayerData(src)
  • src: number

Example

bridge.framework.getPlayerData(src)
  • 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

    • money: object

      • cash: number

      • bank: number

getPlayerByIdentifier

Usage

bridge.framework.getPlayerByIdentifier(identifier)
  • identifier: string

Example

bridge.framework.getPlayerByIdentifier(identifier)
  • return: number

addMoney

Usage

bridge.framework.addMoney(src, type, amount)
  • src: number

  • type: "cash" or "bank"

  • amount: number

Example

bridge.framework.addMoney(src, "bank", 50000)
  • return: boolean

removeMoney

Usage

bridge.framework.removeMoney(src, type, amount)
  • src: number

  • type: "cash" or "bank"

  • amount: number

Example

bridge.framework.removeMoney(src, "bank", 50000)
  • return: boolean

createUsableItem

Usage

bridge.framework.createUsableItem(name, cb)
  • name: string

  • cb: function

Example

bridge.framework.createUsableItem("water", function(src)
    print("Example Function")
end)

registerCommand

Usage

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

  • permission: string

  • cb: function

  • data(optional): object

    • help(optional): string

    • arguments(optional): array

      • name: string

      • help: string

      • optional: boolean

Example

bridge.framework.registerCommand("test", "user", function(src, args)
    print("Example Command")
end)
bridge.framework.registerCommand("test", "god", function(src, args)
    print("src: " .. src)
    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},
    },
})

getAllJobs

Usage

bridge.framework.getAllJobs()

Example

bridge.framework.getAllJobs()
  • return: object

    • jobName: object

      • name: string

      • label: string

      • grades: array

        • grade: number

        • name: string

getJob

Usage

bridge.framework.getJob(job)
  • job: string

Example

bridge.framework.getJob(job)
  • return: object

    • name: string

    • label: string

    • grades: array

      • grade: number

      • name: string

Last updated 7 months ago