Fivecore
  • Fivecore - FiveM Scripts
  • Discord
  • General
    • Common issues
  • RESOURCES
    • Zombies
      • Installation
      • Usage
      • Functions
        • Server Functions
      • Events
        • Server Events
    • Looting
      • Installation
      • Setup
      • Events
        • Server Events
      • Functions
        • Client Functions
        • Server Functions
      • Loot editor
    • NPC Dialogs
      • Installation
      • Usage
      • Extras
    • Dynamic Guides
      • Installation
      • Usage
    • Interact
      • Installation
      • Usage
      • InteractOptions
      • Functions
        • Client
Powered by GitBook
On this page
  • addEntity
  • removeEntity
  • addGlobalObject
  • removeGlobalObject
  • addMaterial
  • removeMaterial
  • disableTargeting
  1. RESOURCES
  2. Interact
  3. Functions

Client

All available exports for client-side

PreviousFunctions

Last updated 6 months ago

Every export that require interactOptions expect a table with the properties defined here:


addEntity

Creates an interaction with the specified entity

exports.fivecore_interact:addEntity(entity, interactOptions)
  • entity: number

  • interactOptions:

removeEntity

Remove interaction with the specified entity=

exports.fivecore_interact:removeEntity(entity)

addGlobalObject

Creates an interaction with all objects of the specified model hash

exports.fivecore_interact:addGlobalObject(modelHash, interactOptions)
  • modelHash: string

  • interactOptions:

removeGlobalObject

Remove global interactions with the specified model hash

exports.fivecore_interact:removeGlobalObject(modelHash)
  • modelHash: string

addMaterial

Creates an interaction with the specified collision material hash

exports.fivecore_interact:addMaterial(materialHash, interactOptions)
  • materialHash: number

removeMaterial

Remove material interactions with the specified collision material hash

exports.fivecore_interact:removeMaterial(materialHash)
  • materialHash: number

disableTargeting

Enable/disable targeting with all registered interactions

exports.fivecore_interact:disableTargeting(state)
  • state: boolean

interactOptions:

InteractOptions
table
table
table