Shopping Cart
FiveM script Release UtilityAddonConfirm for FXServer Scaleform Base GTA5 Style

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


IMAGE ALT TEXT HERE
Preview

Inspired by Use DisplayOnscreenKeyboard properly

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



Original source: https://forum.cfx.re/t/release-utility-addon-confirm-for-fxserver-scaleform-base-gta5-style-confirm-button/2203958

Leave a Reply

Your email address will not be published. Required fields are marked *

FiveM ESX Scripts

The best scripts and maps

Best support

Problems? We are there to help!

Wide range of products

We have a wide range of products

100% Secure Checkout

Stripe