#[FREE/RELEASE] NP 4.0 Inspired Dialogue System

71 messages · Page 1 of 1 (latest)

simple parcel
#

Changelogs v1.1.0

What's Changed:

  • UI Changes
  • Configurable Job Requirements using ESX or QBCore

Github Release

tepid berry
#

With the rep, can you have it set so as an example when you get to 50 rep with that ped another button appears that opens a shop?

simple parcel
mossy bough
#

Loved the UI. Idk if you're planning for this or nah but better add an export function so you can use it inside other resources better then adding it in the share

simple parcel
simple parcel
#

Changelogs v1.2.0

What's Changed:

  • Introduced an Export Functionality feature that enables the creation of dialogues directly from external sources, expanding the script's flexibility and customization options.

Github Release

#

@mossy bough 😄

mossy bough
simple parcel
#

Changelogs v1.3.0

What's Changed:

  • Revamped the user interface with enhanced button design and improved text readability.

Github Release

grand oasis
#

that's fire🔥

simple parcel
#

[FREE/WIP] NP 4.0 Inspired Dialogue System

simple parcel
#

Upcoming Update v1.4.0 (Not Yet Released)

What will change?

  • Later today, the reputation system will become fully operational, featuring complete database configuration and additional improvements. Additionally, an update will be released that introduces dynamic text display, allowing new text to appear when a button is selected.
eternal zealot
#

May you DM me? @simple parcel

tepid berry
simple parcel
#

Found a problem with the numbers in the UI, will be fixing this ASAP

mossy bough
#

just got an idea if you want to Maybe add an animation option for the npc and a duration

simple parcel
#

check Will check this out 😄

mossy bough
#

the animation let the npc talk

simple parcel
#

Fixed the issue but going out for dinner now, will update later.

proper whale
#

I think, It looks good if you remove one of these.

simple parcel
simple parcel
#

Changelogs v1.4.0

What's Changed:

  • Addressed UI issues.

The reason I haven't released the fully functional reputation system yet is:

  • I've identified some issues in the code that allowed external execution of events. I'm actively addressing these concerns and working on an update, which I'll release soon.

Github Release

clever helm
#

This is on 1440p if u see the text bottom left otherwise nice release

tepid berry
simple parcel
#

I only checked on 2560x1440 and 1920x1080

simple parcel
simple parcel
simple parcel
# tepid berry So would this be possible in the options on interaction now?

Changelogs v1.5.0

What's Changed:

  • Client-Side Updates:

    • Framework Detection and Initialization:

      • Added detection and initialization for both ESX and QBCore frameworks.
    • Functionality Enhancements:

      • Updated FOBOZO.Functions.GetPlayerJob to fetch the player's job based on the detected framework.
      • Enhanced FOBOZO.Functions.AddInteraction to handle interactions using either ox_target or interact.
    • Reputation Handling:

      • Modified fobozo-npcdialogue:showMenu event to fetch the player's reputation using server callbacks before displaying the menu.
      • Ensured the playerReputation is updated before the menu is shown, fixing issues with displaying reputation-required options.
      • Updated fobozo-npcdialogue:setRep event to only update the reputation without triggering menu display.
    • NUI Callbacks:

      • Added NUI callback fobozo-npcdialogue:getRep to fetch the player's reputation from the server.
  • Server-Side Updates:

    • Framework Detection and Initialization:

      • Added detection and initialization for both ESX and QBCore frameworks.
    • Player Interaction Handling:

      • Created a getPlayer function to fetch the player object based on the detected framework.
    • Reputation Management:

      • Implemented initializeRep event to initialize player's reputation in the database if not already present.
      • Added functions setReputation, addReputation, removeReputation, and getReputation to manage player's reputation.
    • Server Callbacks and Exports:

      • Registered server callbacks fobozo-npcdialogue:getRep for ESX and QBCore to handle reputation fetch requests from the client.
      • Added exports setReputation, addReputation, removeReputation, and getReputation for managing player's reputation from other scripts.
  • User Interface Updates:

    • Reputation-Based Option Display:

      • Enhanced JavaScript to correctly display options based on the player's reputation.
      • Ensured the UI updates with the correct reputation values before showing the menu, fixing the issue with delayed display of reputation-required options.
    • UI Fixes:

      • Adjusted button grid layout to handle different numbers of visible options correctly.
  • New Features:

    • NPC Interaction Configuration:
      • Added configurable Shared.DialoguePeds to define NPCs, their interactions, and required reputation levels for options.
      • Provided a template for creating new dialogue NPCs with different interactions and job requirements.

Github Release

wet sun
#

this work with option function like Onselect = function() ?

simple parcel
simple parcel
# wet sun this work with option function like Onselect = function() ?

Changelogs v1.6.0

What's Changed:

  • Fixed the issue where multiple peds would show the same reputation. Each ped now correctly displays its own reputation.
  • Fixed an executable event in the client to prevent potential exploits.
  • Added a new shared option to define customizable actions, allowing for greater flexibility in NPC interactions.
  • Enhanced reputation management to ensure individual reputations for each NPC are correctly fetched and displayed.
  • Added customizable actions in the Shared.Actions table, allowing for easy definition and reference of NPC actions.

Github Release

simple parcel
#

Changelogs v1.7.0

What's Changed:

  • Resolved the createDialoguePed export functionality to ensure proper operation.
  • Enhanced the createDialoguePed export to include and manage actions effectively.
exports['fobozo-npcdialogue']:createDialoguePed(
    'csb_burgerdrug',
    'Custom NPC',
    'Custom Job',
    'police',
    -1175.9968, -878.6601, 13.0109, 67.6690,
    'Hello, do you want to start or end your shift?', 
    {
        ox_target = { icon = 'fas fa-comments', distance = 2.5 },
        default = { distance = 7.5, interactDst = 2.5 }
    },
    {
        {
            label = "Sign In/Out",
            action = "signInOut",
            repRequired = 0
        },
        {
            label = "Change Clothes",
            action = "changeClothes",
            repRequired = 50
        },
        {
            label = "Exit",
            action = "exit",
            repRequired = 0
        }
    },
    {
        signInOut = function()
            print('Custom Sign In/Out action triggered.')
        end,
        changeClothes = function()
            print('Custom Change Clothes action triggered.')
        end,
        exit = function()
            print('Custom Exit action triggered.')
        end
    }
)

Github Release

keen jasper
#

Hi, i have a problem with the script after updating it today

#

I think the problem is from the actions because exit action is printing the text but my other actions is not working

simple parcel
keen jasper
simple parcel
#

Alright, open up a ticket in my cord real quick and I'll have a look 😄

keen jasper
#

Ok

simple parcel
simple parcel
#

Next changelog will rework the Shared.Actions, since its currently not working together with the createDialoguePed export.

simple parcel
#

Changelogs v1.9.0

What's Changed:

  • Implemented an onSelect functionality within the script, enabling the execution of custom code upon the selection of a button.
  • Ensured functions in the shared configuration have detailed explanations.
  • Updated createDialoguePed export function to include new changes.
  • Ensured getRep callback is called before showing the UI.
  • Added logic to append text only once per session.
  • Improved audio feedback to not play sound if the button is disabled.
  • Updated keypress event handling to ensure buttons click correctly based on their state.

Github Release

GitHub

Changelog
Shared:

Implemented an onSelect functionality within the script, enabling the execution of custom code upon the selection of a button.
Ensured functions in the shared configuration have ...

plucky wing
#

Please can I take this alone?

#

@simple parcel

simple parcel
plucky wing
#

I want the same list

simple parcel
#

I don't think I know what u mean, what are you trying to do?

plucky wing
#

Yes, this is what I want, thank you

simple parcel
#

No problem

plucky wing
simple parcel
#

Simply photoshop the images inside the /assets folder

plucky wing
#

ok thx

simple parcel
# lyric canopy <:5932pepe12:982798060813967400>

Changelogs v2.0.0

What's Changed:

  • Added support for dynamic text updates based on player reputation.
  • Implemented a new reputation system allowing for minimum and maximum reputation requirements per button.
  • Introduced conditional dialogue options that change based on the player's reputation.
  • Ensured reputation-based text updates reflect the player's progress and interactions.
  • Developed a system for updating dialogue options based on player reputation.
  • Implemented functionality to show new buttons and hide existing ones dynamically.
  • Ensured that update texts are appended without duplication.

Full Changelog: View

GitHub

Changelog
Shared:

Added support for dynamic text updates based on player reputation.
Implemented a new reputation system allowing for minimum and maximum reputation requirements per button.
Introd...

frank orbit
simple parcel
#

Oh deleted the post, but its somehow still here

frank orbit
meager umbra
simple parcel
#

Want to release better quality and not inspired things, since I myself play on these servers.

meager umbra
#

you are cooking good job

#

and good luck thanks for free release

simple parcel
#

❤️

simple parcel
#

[FREE/RELEASE] NP 4.0 Inspired Dialogue System

stray solar
#

Nice