Var FiveM
ScriptsPaketeAbonnementsDoku
VAR
Var FiveM
ScriptsPaketeAbonnementsDoku
Theme-AnpassungUber unsKontakt
Jetzt kaufen

-- 28 sections

  • ›paintball
    • configuration
    • features
    • anti-cheat-integration
    • game-modes
    • api
    • arenas
    • command
    • config
  • ›chess
    • configuration
    • events
    • integration-example
    • exports
    • controls
    • config
  • ›supermarket simulator
    • configuration
    • catalog-manager
    • commands-and-permissions
    • props-editors
    • owning-and-running-a-store
    • config
  • ›coins shop
    • configuration
    • identifier
    • export
    • server-event
    • languages
    • products
    • delivery
    • owner-panel
    • webhooks-discord
  • ›clothes shop
    • installation
    • configuration
    • blips-marker
    • translate
    • change-cam-and-pos
  • ›casino
    • installation
    • configuration
    • main-config
    • horse
    • lucky-whell
    • translate
  • ›drugs
    • installation
    • configuration
    • labs-and-interiors
    • maintenance-and-modules
    • missions
    • street-selling
    • administration
  • ›clothes shop v2
    • installation
    • configuration
    • position
    • advice-and-troubleshooting
    • configure-clothing-shops
  • ›interaction
    • configuration
    • public-api
    • interaction-config-reference
    • dialog-system
  • ›emote
    • configuration
    • config
    • adding-emote
    • menu
    • keybind
    • modules
    • 3d-placement
    • playlist
    • wheel
    • shared-emotes
  • ›crew
    • installation
    • export
  • ›alert job
    • installation
    • server-export
  • ›pin code
    • installation
    • export
  • ›society manager
    • installation
    • export
    • configuration
    • translate
    • max-salary
    • last-invoice
  • ›property
    • installation
    • configuration
    • translate
    • add-interior
  • ›barber shop
    • installation
    • configuration
    • change-menu-open-source
    • blips
    • translate
    • add-shop
  • ›shop with basket
    • installation
    • configuration
    • item-category-config
    • blips-marker
    • translate
    • add-shop
  • ›tattoo shop
    • installation
    • configuration
    • edit-tattoo
    • blips-marker
    • translate
    • add-shop
  • ›gardener job
    • installation
    • configuration
    • change-pos-farm
    • blips
    • translate
  • ›heist atm
    • installation
    • configuration
    • event-money
    • translate
    • police-alert
  • ›heist fleeca
    • installation
    • configuration
    • translate
    • pos-fleeca-heist
  • ›poster job
    • installation
    • configuration
    • change-pos-farm
    • change-poster-texture
    • blips-marker
    • translate
  • ›loading screen
    • installation
    • configuration
  • ›bank
    • installation
    • configuration
    • position
    • blips
    • translate
    • society
  • ›autocardealer
    • installation
    • configuration
    • add-vehicles
    • translate
    • blips
    • coords
  • ›character creator
    • installation
    • configuration
    • translate
    • expression
    • spawn
  • ›multi character
    • installation
    • configuration
    • translate
    • change-character-creator
    • commands
  • ›bill
    • installation
    • configuration
    • translate
    • control

~/docs/interaction/configuration/public-api

interaction docs›
  • configuration
  • configuration/public-api
  • configuration/interaction-config-reference
  • configuration/dialog-system

Interaction

Public API

-- 2 code blocks · 1 min read

get var-interacttry it on the test server

All exports are client-side. Each registration call returns an id you can reuse to remove or update the interaction.

pedRegister(cfg)

Spawn a streamed NPC at coords (must be a vec4, the w is the heading) and attach an interaction. Peds despawn automatically when the player walks out of Config.Ped.spawnRange.

lua
exports["core_interact"]:pedRegister({
    coords   = vec4(-33.41, -1099.95, 25.41, 70.86),
    model    = "mp_m_weapexp_01",
    animDict = "amb@world_human_stand_mobile@male@text@base",
    animName = "base",
    hintIcon = "talk",
    blips    = { sprite = 119, color = 50, text = "Foreman" },
    dialogue = { name = "Paul", tag = "Lumberjack", startMsg = "Hi!", elements = { ... } },
})

positionRegister(cfg)

Static interaction at world coordinates (no NPC, no streaming). The coords field must be a vec3 — pass a vec4 and the call is ignored (use pedRegister for those).

entityRegister(cfg)

Bind an interaction to an existing entity handle. Optional bone field attaches the hint to a specific bone for moving entities.

lua
exports["core_interact"]:entityRegister({
    entity   = vehicleHandle,
    bone     = "boot",
    hintIcon = "interact",
    message  = "Open trunk",
    onInteract = function(id, ent, spec) end,
})

entityRegisterByHash(hash, cfg)

Bind an interaction to every spawned instance of a model hash. A single shared scanner thread polls GetGamePool("CObject") every Config.HashScanInterval ms — adding 1 or 100 watchers has the same cost.

interactCreate(cfg) → id / interactRemove(id)

Dynamically add and remove an interaction at runtime — useful for quest-driven points that should appear, then disappear.

Lower-level

  • HandleHoldTextUI(id, data), RemoveHoldTextUI(id), CloseHoldTextUI(id), RemoveHoldTextUIs() — direct access to the hold panel system.
  • HandleTextUI(id, data), CloseTextUI(id), RemoveTextUI(id), RemoveTextUIs() — the simpler TextUI variant (no hold/hint).
  • Draw3DSprite({ duiHandler, coords, maxDistance, hintOnly }) — render a DUI as a 3D world-space sprite (called internally on every tick).
  • IsDuiVisible() → boolean — true while at least one panel is on screen.
  • unlockLastInteract() — re-arm the most recently locked interaction (after an async action finishes, for example).
previousconfigurationnextinteraction-config-reference
VAR
Var FiveM

Premium FiveM Scripts. Low Resmon, hohe Qualitat. Fur ESX, QBCore & Standalone.

28Skripte
1,500+Verkaufe

Scripts

  • Marketplace
  • Pakete
  • Abonnements
  • Theme-Anpassung

Beliebteste

  • Supermarket Simulator
  • FiveM Casino Script
  • FiveM Coin Shop
  • FiveM Emote Menu
  • FiveM Paintball Script

Ressourcen

  • Free Scripts
  • Guides
  • Dokumentation
  • Support

Unternehmen

  • Uber uns
  • Kontakt
  • Discord

Rechtliches

  • AGB
  • Datenschutz
  • Erstattungen

© 2026 Var FiveM. Alle Verkaufe sind endgultig.

Zahlungen uberTebex