Interaction Providers
Interaction Providers
Nord can use its own Text UI or a target resource for ground items, configured stashes and vehicle trunks.
Built-in Text UI
Default configuration:
Config.Interaction = {
Mode = 'textui',
TextUI = 'default',
Target = 'auto',
Key = 'E',
Control = 38,
OxLibPosition = 'right-center'
}
TextUI = 'default' uses Nord's built-in UI and has no ox_lib requirement.
ox_lib TextUI
Switch the Text UI provider without changing interaction mode:
Config.Interaction.Mode = 'textui'
Config.Interaction.TextUI = 'ox_lib'
Target mode
Config.Interaction.Mode = 'target'
Config.Interaction.Target = 'auto'
Supported target choices in the bridge are:
autoox_targetqb-targetnord_target
If a selected/auto-detected target provider is unavailable, Nord can continue using its own interaction fallback where implemented.
Custom Text UI bridge
Config.Interaction.TextUI = 'custom'
Config.Interaction.Custom = {
Show = function(data)
-- show your UI
end,
Hide = function()
-- hide your UI
end
}
The callbacks run client-side.