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
  • getNearbyPlayers
  • Usage
  • Example
  • setEntityStateBag
  • Usage
  • Example
  1. FREE SCRIPTS
  2. 🖥️ Bridge & Library
  3. Functions
  4. Library
  5. Entity

Server

getNearbyPlayers

Usage

Lib.getNearbyPlayers(coords, maxDistance)
  • coords: vector3

  • maxDistance: float

    • default: 10.0

Example

Lib.getNearbyPlayers(vector3(0.0, 0.0, 0.0), 15.0)
  • return: array

    • id: number

setEntityStateBag

Usage

Lib.setEntityStateBag(netId, key, value)

netId: number

key: string

value: any

Example

local playerPed = GetPlayerPed(source)

if playerPed then
    Lib.setEntityStateBag(NetworkGetNetworkIdFromEntity(playerPed), playerExist, true)
end

Last updated 2 months ago