![[PAID] Oblix Forms | Dynamic Form System main image](https://forum-cfx-re.akamaized.net/optimized/4X/0/d/f/0dfb58af5c2b91783b48ea8c1a9dfcce7951f99a_2_666x500.png)
![[PAID] Oblix Forms | Dynamic Form System thumbnail 1](https://forum-cfx-re.akamaized.net/optimized/4X/0/d/f/0dfb58af5c2b91783b48ea8c1a9dfcce7951f99a_2_666x500.png)
![[PAID] Oblix Forms | Dynamic Form System thumbnail 2](https://forum-cfx-re.akamaized.net/optimized/4X/5/1/5/515fd41d9d19eaaf3e882153135b91e4c3d486aa_2_690x198.png)
Price
UnknownA script by Nick_B2
Price
UnknownOblix Form is an tool built on the robust Ox lib, empowering server owners with seamless form creation within their server. These dynamic forms can be effortlessly dispatched to Discord through customizable webhooks, opening up a world of possibilities. Furthermore, the script offers the flexibility to send data via client or server events, allowing for customized responses and interactions. The potential applications are vast, ranging from sending emails and applying for departments to redeeming in-game items!
Available on Tebex
Tebex https://oblix-scripts.tebex.io/package/5823714
Images: Oblix Forms - Album on Imgur
The script allows you to create as many zones as you’d like.
Ability to create as many unique forms as you’d like using a robust and dynamic config.
webhook = { --
template = 'default', -- Embed template to use, default is default
url = 'https://discord.com/api/webhooks/123/123', -- Discord webhook url
title = ':clipboard: New LEO Complaint', -- Webhook title
color = 255, -- Webhook color
author = { -- Webhook author and author icon (optional)
name = 'Author',
icon_url = 'https://i.imgur.com/image.png', -- Leave blank for only the author name
},
footer = { -- Webhook footer and footer icon (optional)
text = 'Footer',
icon_url = '',
},
image = { -- Webhook embed image (optional)
url = 'https://i.imgur.com/image.png',
},
username = 'Username',
avatar = 'https://i.imgur.com/image.png',
},
Don’t fancy having your responses sent to the customizable webhooks? Use events instead.
destination = {
event = '' -- Name of the event
source = '' -- server or client
},
RegisterServerEvent('oblix_forms:sendApplications')
AddEventHandler('oblix_forms:sendApplications', function(data, labels) -- The event takes in two paramaters, the input (data) and the labels from the form.
local email = data[4] -- Since I modify the email below to become the name of the department in the email, I save the data to be used later on.
local response = {}
local order = {}
--[[
A simple loop that will build the content of the email and convert the email to the name of the department.
This is basically just making one big table with all the labels and its respective input. Since the event
receives the data and labels in the right order, we can be confident that it can be added 1:1 to the table.
]]
for i = 1, #labels do
local emailToDepartment = {
["sasp@sadps.gov"] = "San Andreas State Police",
["bcso@saddp.gov"] = "Blaine County Sheriff's Office",
["lspd@sadps.gov"] = "Los Santos Police Department",
["lsfd@sadps.gov"] = "Los Santos Fire Department",
["sams@sadps.gov"] = "San Andreas Medical Services"
}
for i = 1, #data do
local department = emailToDepartment[data[i]]
if department then
data[i] = department
end
end
if data[i] == "" then
data[i] = "N/A"
end
response[labels[i]] = data[i]
table.insert(order, labels[i])
end
-- Convert the table into one long multi-line string for the email.
local responseString = ""
for _, label in ipairs(order) do
responseString = responseString .. label .. ":\n" .. response[label] .. "\n\n\n"
end
-- lb-phone export to send emails.
local success, id = exports["lb-phone"]:SendMail({
to = email, -- Email saved earlier before becoming the label
subject = "New Hire Application",
message = responseString -- The multi-line string.
})
end)
Oblix Forms is dependent on the following resources:
A | B |
---|---|
Code is accessible | No |
Subscription-based | No |
Lines (approximately) | 500 |
Requirements | Ox Lib / Ox Target or QB Target |
Support | Yes |
No approved reviews found for this script yet.