approveListing
Reference
---@param id number -- The listing id
---@return boolean success
function approveListing(id) end Only relevant when requireApproval is enabled in config/server/yellowpages.lua. With approval on, new listings start with status pending and stay hidden from other players until approved. Use getPendingListings to find ids awaiting approval.
Usage example
local approved = exports.fd_laptop:approveListing(5)
if approved then
print('Listing 5 is now live')
end