vs_interactions
Bring life to your FiveM server with dynamic in-game interactions using vs_interactions
Transform how players engage with NPCs, objects, and the environment on your FiveM server with vs_interactions
. This flexible script library empowers you to build immersive interaction systems through customizable action menus, event-based triggers, and proximity-based prompts. Whether you’re crafting detailed missions, casual player interactions, or unique roleplay moments, vs_interactions
is a powerful tool for enriching your server’s interactivity.
Key Features
- Dynamic Action Menus: Customizable interaction options for players, complete with FontAwesome icons for a sleek UI.
- Distance-Based Interactions: Set proximity triggers for interaction, allowing for more immersive gameplay.
- Event-Driven Triggers: Supports a range of interaction types, including functions, commands, and server events.
- Optimized Performance: Designed for minimal impact on your server’s resources, ensuring a smooth gameplay experience.
- Seamless Integration: Easily integrates with existing server scripts, allowing for flexible use across your game world.
- Highly Customizable: Use exports to modify interaction conditions, options, and more for your specific needs.
- Modern UI Design: Clean and responsive user interface, enhanced with FontAwesome icons for easy recognition.
Installation
Setting up vs_interactions
is simple and quick:
- Download the
vs_interactions
script from the GitHub repository. - Extract the folder into your server’s
resources
directory. - Add
ensure vs_interactions
to yourserver.cfg
file. - Restart your server to enable the new interaction system.
Usage Example
Adding an interactive entity is easy. Use the export function to create a local entity with options for custom interaction.
exports.vs_interactions:addLocalEntity({
entity = spawnedPed, -- The entity (NPC or object)
icon = "fa-solid fa-user-ninja", -- Optional FontAwesome icon (customize as needed)
distance = 2.0, -- Set the interaction distance
options = {
{
label = 'Test', -- Menu label
type = 'function', -- Interaction type (can be event / serverEvent / function / command)
event = 'vs_interactions:BuyCoffee', -- Example event
onSelect = function()
-- Code executed when selected
end,
canInteract = function()
-- Conditions to check if interaction is available
return true
end
},
}
})
Download Here:
- Github: GitHub Download
- Website: Store