HRScripts Documentation
  • HRScripts Documentation
  • Resources
    • 📚HRLib
      • Classes
        • HRLibConfig
        • HRLibClientFPlayer
        • HRLibServerFPlayer
        • HRLibClientIPlayer
        • HRLibServerIPlayer
        • HRLibCloseIPlayer
        • HRLibCloseFPlayer
        • HRLibBlipOptions
        • HRLibBlipForCoordOptions
        • HRLibBlipForEntityOptions
        • HRLibBlipForAreaOptions
        • HRLibBlipForPickupOptions
        • HRLibInputDialogueTextOptions
        • HRLibVehicleProperties
      • Modules
        • Bridge
          • Shared
          • Client
          • Server
        • Callbacks
          • Shared
          • Client
          • Server
        • Closest
          • Client
        • Controls Disable
          • Client
        • CreateBlip
          • Client
        • DiscordMsg
          • Server
        • DoesIdExist
          • Shared
        • FPlayer
          • Shared
          • Client
          • Server
        • GetPedsInVehicle
          • Client
        • GetPedWeapons
          • Client
        • GetPlayers
          • Client
        • GetVehicleDoorStatus
          • Client
        • GetVehicleFromPlate
          • Client
        • Interface
          • Client
          • Server
        • IPlayer
          • Client
          • Server
        • PlayerIdentifiers
          • Server
        • RadomValueWithNoRepetition
          • Shared
        • RegCommand
          • Client
          • Server
        • Resource
          • Shared
          • Server
        • SpawnVehicle
          • Shared
        • Streaming
          • Client
        • string
          • Shared
        • table
          • Shared
        • ToVector
          • Shared
        • TrackingEntities
          • Client
            • Functions
            • Events
        • Values
          • Shared
          • Client
        • VehicleProperties
          • Client
          • Server
        • SetDefaultPedVariation
          • Shared
    • HRGarages
      • Classes
        • HRGaragesConfig
        • HRGaragesVehicleInfo
        • HRGaragesClientFunctions
      • Exports
        • Server
    • 📦HRStorages
      • Exports
        • Client
        • Server
      • Callbacks
      • Commands
    • 🧹HRComserv
    • 🥷HRHostage
    • HRAdminMenu
      • Events
      • Exports
        • Client
        • Server
      • State Bags
    • ☑️HRWhitelist
    • HRExtraCommands
    • 🚦HRRealisticTraffic
    • 🗣️HRNPCDialogue
      • Classes
Powered by GitBook
On this page
  • HRLib:TrackedEntityDeleted
  • Properties for ped entity type
  • Properties for vehicle entity type
  • Properties for object entity type
  • HRLib:RemovedEntity
  1. Resources
  2. HRLib
  3. Modules
  4. TrackingEntities
  5. Client

Events

PreviousFunctionsNextValues

Last updated 1 month ago

HRLib:TrackedEntityDeleted

Event, triggered when a triggered entity is being deleted

Parameters description

  • entityType - the type of the entity that's been deleted (can be 'ped', 'vehicle' or 'object')

  • entityId - the entity id of the deleted entity (not usable after it's already been deleted but useful if you saved it somewhere)

  • properties - the properties of the entity, it changes according to the entityType

Properties for ped entity type

  • pedModel: integer

  • pedType: see

  • isPlayer: boolean

  • pedMoney: integer

  • lastCoords: vector3

  • isFreezed: boolean

  • state: table?

  • ...: (after these fields here are the additional fields when the tracker was registered)

Properties for vehicle entity type

  • state: table?

  • ...: (after these fields here are the additional fields when the tracker was registered)

Properties for object entity type

  • objectModel: integer

  • isObjectLocal: boolean

  • lastCoords: vector3

  • isFreezed: boolean

  • state: table?

  • ...: (after these fields here are the additional fields when the tracker was registered)

HRLib:RemovedEntity

Event, triggered when an entity is deleted in a script, using HRLib's import method, using DeleteEntity, DeletePed, DeleteVehicle and DeleteObject for client side. It's also triggered only when the entity that is deleted is not being tracked

Parameters description

  • entityType - the type of the entity that's been deleted (can be 'ped', 'vehicle' or 'object')

  • entity - the entity id of the deleted entity (it's usable because the event is triggered right before the entity is being deleted)

📚
GetPedType
HRLibVehicleProperties