/just_interactions

Fivem Interactions Script inspired by newest NoPixel 4.0

Primary LanguageLua

Just-Interactions

Do you want to create innovative interactions? With our script it's possible. Add interactions on Entity, or on given Coordinates You can use it in any script, for example in the Pawn Shop or in the jobs.

Video Preview

Watch the video

NoPixel like Textures created by https://github.com/Obtaizen

Without this guy we wouldn't have been able to create the NoPixel option in the config.

FAQ

Can I use it in stores, for example?

Of course you can, most things are possible in this script

Will the script ever be updated?

Definitely yes, the current script is in the WIP stage, so we recommend reporting any problems on our discord : https://discord.gg/QVgbKSTHMz

Usage/Examples

On Coords

    exports['just_interactions']:createInteraction(
        {
            coords = {-324.62585449219, -1514.4627685547, 27.56467628479, 293.38525390625},
            action = function ()
                --- Your Action
            end,
            label = 'Your Label',
        }
    )

On Entity

    exports['just_interactions']:createInteraction(
        {
            entity = yourEntity
            action = function ()
                --- Your Action
            end,
            label = 'Your Label',
        }
    )

Using canInteract

    exports['just_interactions']:createInteraction(
        {
            entity = yourEntity
            action = function ()
                --- Your Action
            end,
            label = 'Your Label',
            canInteract = function()
                --- your logic must return true to show element and return false to hide element
            end,
        }
    )

Using job

    exports['just_interactions']:createInteraction(
        {
            entity = yourEntity
            action = function ()
                --- Your Action
            end,
            label = 'Your Label',
            job = 'police'
        }
    )

Remove Interaction on Coords

    exports['just_interactions']:removeInteraction({-324.62585449219, -1514.4627685547, 27.56467628479, 293.38525390625})

Remove Interaction on Entity

exports['just_interactions']:removeEntity(yourEntity)