Coords
For coords (Interaction id is for remove interaction)
local InteractId = exports["bd-interact"]:AddInteraction({
coords = vector3(183.84, 849.42, 50.38),
distance = 5.0,
interactDst = 1.0,
options = {
{
label = "BD Interact",
event = "bd-interact:clientEvent"
},
}
})
Models
For models (TABLE) (Interaction ids is for remove interaction)
local InteractIds = exports['bd-interact']:AddModelInteraction({
models = {
{model = "prop_atm_01", offset = vector3(0.0, 0.0, 1.0)},
{model = "prop_atm_02", offset = vector3(0.0, 0.0, 1.0)},
{model = "prop_atm_03", offset = vector3(0.0, 0.0, 1.0)},
{model = "prop_fleeca_atm", offset = vector3(0.0, 0.0, 1.0)}
},
distance = 5.0,
interactDst = 1.0,
options = {
{
label = "Open ATM",
event = "bd-interact:openATM"
},
}
})
Players
local InteractId = exports["bd-interact"]:AddPlayerInteraction({
distance = 5.0,
interactDst = 1.0,
options = {
{
label = "Give Number",
event = "bd-interact:giveNumber"
},
}
})
Entity
For entity (You can add entity with network id)
local InteractId = exports["bd-interact"]:AddEntityInteraction({
entity = entity,
distance = 5.0,
interactDst = 1.0,
offset = vector3(0.0, 0.0, 0.0),
options = {
{
label = "Sign In/Out",
event = "bd-interact:signinout"
},
}
})
Bones
For bones (You can add entity with network id)
local InteractId = exports["bd-interact"]:AddEntityBoneInteraction({
entity = entity,
bone = 'boot', -- Bone name
distance = 5.0,
interactDst = 1.0,
offset = vector3(0.0, 0.0, 0.0),
options = {
{
label = "Open Trunk",
event = "bd-interact:openTrunk"
},
}
})
Remove Interaction option
Remove interaction option (Work with tables)
exports["bd-interact"]:RemoveInteractionOption(InteractId, 'Option label')
exports["bd-interact"]:RemoveInteractionOption(InteractId, {'Option label', 'Option label2'})
Remove Interaction
Remove interaction (Work with tables)
exports["bd-interact"]:RemoveInteraction(InteractId,)
exports["bd-interact"]:RemoveInteraction({InteractId, InteractId2})
Update Interaction
Update interaction (Work with tables)
exports["bd-interact"]:UpdateInteraction(InteractId, Options)
Last updated