Viority Development
DiscordShop
  • 🏠Home
    • Welcome
    • FAQ
    • Common issues
  • Tutorials
    • βš™οΈProduct
      • How to get the Security Token?
      • How to create new locales?
      • getSharedObject Deprecated
  • 🀝Support
    • Support Policy
    • πŸ‡ΊπŸ‡ΈTicket Rules (EN)
    • πŸ‡©πŸ‡ͺTicket Rules (GER)
  • Products
    • πŸ”’Viority Script Lock
      • How to use
      • JavaScript example
      • Lua example
    • πŸ“‹Viority Advanced Menu
      • πŸ‘€Config Preview
      • Event Command
      • NotifyBoard
      • OpenMenu Event
      • CloseMenu Event
      • UpdateChallengeProgress
      • UpdateAchievementProgress
      • CheckAchievementProgress
      • CheckCurrentLevel
    • 🚘Viority Garage V2
      • πŸ‘€Config Preview
      • OpenGarage Event
      • CloseGarage Event
      • VehicleParkIn
      • VehicleParkIn DV
    • πŸš—Viority Cardealer
      • πŸ‘€Config Preview
      • Vehicle Color Fix
      • OpenCardealer Event
      • CloseCardealer Event
      • UpdateLeasingStatus
      • CheckPlate
      • CheckPlateBlacklist
      • GeneratePlate
    • β›½Viority Gasoline
      • πŸ‘€Config Preview
      • OpenGasoline Event
      • CloseGasoline Event
      • RefillFuelStock
      • GetFuel
      • SetFuel
    • πŸ’³Viority Billingmenu
      • πŸ‘€Config Preview
      • OpenBillingMenu Event
      • CloseBillingMenu Event
    • πŸ’Viority Marry
      • Page
      • πŸ‘€Config Preview
      • StartAnimation Event
      • StopAnimation Event
    • πŸ“ŠViority HUD
      • πŸ‘€Config Preview
        • PMA-Voice Example
        • Saltychat Example
      • Announce Command
      • TriggerNotifySystem
      • UpdateWantedStars
      • UpdateTransactionData
      • UpdateCurrentMission
      • GetWantedStars
    • πŸ•Viority Playtime Rewards
      • πŸ‘€Config Preview
      • ClosePlaytimeReward
      • OpenPlaytimeReward
      • CheckCurrentLevel
    • 🀝Viority Interaction
      • πŸ‘€Config Preview
      • ESX Interaction Integration
      • How to use
    • πŸ†”Viority SupportID
      • πŸ‘€Config Preview
      • getNearestPlayerID
      • getPlayerID
    • πŸ“Viority Register
      • πŸ‘€Config Preview
      • getAllPromocodes
      • getPlayerPromocode
    • 🏒Viority Fraction Request
      • πŸ‘€Config Preview
    • 🌐Viority LifeInvader
      • πŸ‘€Config Preview
    • πŸ””Viority LifeInvader Notify
      • πŸ‘€Config Preview
      • Notify
    • πŸͺ™Viority Trading
      • πŸ‘€Config Preview
      • OpenTradingMenu Event
      • CloseTradingMenu Event
  • πŸ“ŒDiscord Server
Powered by GitBook
On this page
  1. Products
  2. Viority Interaction

How to use

πŸ”§ Available since Version 1.0.1!

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

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);
PreviousESX Interaction IntegrationNextViority SupportID

Last updated 5 months ago

🀝