HexscriptsVersion 3.0Confirm
Exports
This section lists all client-side and server-side exports in this script. Exports can be called from other scripts to interact with this script functionality.
Note
If you need additional exports for your implementation, please open a ticket on our Discord server.
Client Exports
OpenConfirmMenu
Opens the confirmation menu and returns whether it was opened successfully.
local isSuccess = exports['hex_3_confirm']:OpenConfirmMenu({
text = 'Are you sure you want to proceed? <span>if you accept, an event will be triggered.</span>',
acceptText = 'Yes',
denyText = 'No',
accept = {
triggerType = 'C',
trigger = 'hex_final_hud:notify',
args = {
'Information',
'You have accepted the confirmation!',
'info',
5000
}
},
deny = {
triggerType = 'C',
trigger = 'hex_final_hud:notify',
args = {
'Information',
'You have declined the confirmation!',
'info',
5000
}
}
})Prop
Type
Action Object
Prop
Type
CloseConfirmMenu
Closes the confirmation menu and returns whether it was closed successfully.
local isSuccess = exports['hex_3_confirm']:CloseConfirmMenu()Server Exports
No server exports are available at the moment.