Remove example scripts and update core logic
Deleted all files in the examples directory to clean up unused or test scripts. Updated fxmanifest.lua to enable ox_lib initialization. Improved error handling and entity tracking in utility functions, added prop removal, and made minor localization and code style adjustments throughout the codebase. Significant reword of inventory module, notification module, and framework module. Added support for wasabi_uikit, added support for keep-progressbars,
This commit is contained in:
1 parent
c40a260ea2
commit
343af95794
100 files changed
+2403
-2755
No files matched your search
@@ -28,21 +28,20 @@ end
|
||||
---@return boolean
|
||||
Phone.SendEmail = function(src, email, title, message)
|
||||
local numberNumber = exports["lb-phone"]:GetEquippedPhoneNumber(src)
|
||||
if not numberNumber then return false, Prints.Error("Could not Find Phone number") end
|
||||
if not numberNumber then return false, print(" ^6 Could not Find Phone number ^0") end
|
||||
local playerEmail = exports["lb-phone"]:GetEmailAddress(numberNumber)
|
||||
if not playerEmail then return false, Prints.Error("Could not Find email") end
|
||||
if not playerEmail then return false, print(" ^6 Could not Find email ^0") end
|
||||
local success, id = exports["lb-phone"]:SendMail({
|
||||
to = playerEmail,
|
||||
sender = email,
|
||||
subject = title,
|
||||
message = message,
|
||||
})
|
||||
return success
|
||||
return success or false
|
||||
end
|
||||
|
||||
RegisterNetEvent('community_bridge:Server:genericEmail', function(data)
|
||||
local src = source
|
||||
Prints.Debug('community_bridge:Server:genericEmail Hit')
|
||||
return Phone.SendEmail(src, data.email, data.title, data.message)
|
||||
end)
|
||||
|
||||
|
||||
Reference in new issue
Block a user