[Release | Utility/Addon]Confirm for FXServer | Scaleform Base GTA5 Style Confirm Button

IMAGE ALT TEXT HERE
Preview

Inspired by Use DisplayOnscreenKeyboard properly

fxserver-Confirm

Confirm script for FXServer
Github

[DEPENDENCIES]
Threads
Scaleforms

[INSTALLATION-1]

start confirm

[EXAMPLE-1]

TriggerEvent('CreateConfirm',title,button1,button2,function(selection)
    if selection == 1 then
        print('yes')
    elseif selection == 2 then
        print('no')
    else 
        print('cancel')
    end 
end )

[INSTALLATION-2]

your script’s fxmanifest.lua :

client_scripts {
'@threads/threads.lua',
'@scaleforms/scaleforms.lua',
'@confirm/confirm.lua'
}

[EXAMPLE-2]

Confirm.Create(title,button1,button2,function(selection)
    if selection == 1 then
        print('yes')
    elseif selection == 2 then
        print('no')
    else 
        print('cancel')
    end 
end )

[KEYBOARD + CONTROLLER + MOUSE SUPPORTED]
press UP/DOWN to show / hide selection dialog
press BACKSPACE/MOUSE RIGHT CLICK to cancel selection

nice release
how about its performance?

nice release
how about its performance?

0.01~0.02ms when draw

1 Like

Hey, how did you make the gfx file?

Would it be possible so that you use your keyboard, instead of mouse? So left-arrow, right-arrow, enter and backspace?

yes, Keyboard supported

Hey, how did you make the gfx file?

https://docs.fivem.net/docs/scripting-manual/using-scaleform/

1 Like

thank you