Client
All available exports for client-side
Every export that require interactOptions expect a table with the properties defined here:
InteractOptionsaddEntity
Creates an interaction with the specified entity
exports.fivecore_interact:addEntity(entity, interactOptions)entity:
numberinteractOptions:
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:
stringinteractOptions:
table
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:
numberinteractOptions:
table
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
Last updated