Skip to main content

How to use

Export Syntax
exports['viority_interaction']:Interaction(key, message, thisFrame, showorhide, color)

PARAMETER

  1. Key (STRING) -> E
  2. Message (STRING) -> PRESS E TO INTERACT...
  3. ThisFrame (BOOLEAN) -> Only in this Frame or permanent? (Use true if you use it in a loop)
  4. ShoworHide (BOOLEAN) -> Show or Hide?
  5. Color (STRING) (OPTIONAL) -> #538BC4
info

You can use all HTML Text Syntax. To highlight a String start it with {y1} and end it with {y2}

Example Export
-- Usage not in a loop
Citizen.CreateThread(function()
exports['viority_interaction']:Interaction("E", "PRESS {y1}E{y2} TO INTERACT", false, true, "#2A7EE2"); -- Activate the Interaction
Citizen.Wait(2000); -- Wait 2 Seconds
exports['viority_interaction']:Interaction("E", "PRESS {y1}E{y2} TO INTERACT", false, false, "#2A7EE2"); -- Deactivate the Interaction
end);

-- Usage in a loop
Citizen.CreateThread(function()
while true do -- Start the Loop
exports['viority_interaction']:Interaction("E", "PRESS {y1}E{y2} TO INTERACT", true, true, "#2A7EE2"); -- Trigger the Interaction
Citizen.Wait(0); -- Loop in every Frame
end;
end);