ThisFrame (BOOLEAN) -> Only in this Frame or permanent? (Use true if you use it in a loop)
ShoworHide (BOOLEAN) -> Show or Hide?
Color (STRING) (OPTIONAL) -> #538BC4
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);