Client

All available exports for client-side

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

InteractOptions

addEntity

Creates an interaction with the specified entity

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

  • interactOptions: table

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: table

removeGlobalObject

Remove global interactions with the specified model hash

  • modelHash: string

addMaterial

Creates an interaction with the specified collision material hash

  • materialHash: number

  • interactOptions: table

removeMaterial

Remove material interactions with the specified collision material hash

  • materialHash: number

disableTargeting

Enable/disable targeting with all registered interactions

  • state: boolean

Last updated