Agency Docs
QBESX

Agency-Pad Exports & API

Now with AgencyOS27: a free update for everyone who already owns the pad.

v27.0.2Paid6 Pages

01Client Exports

ExportDescription
IsPadOpen()Returns true if the tablet UI is currently open.
IsPadPoweredOn()Returns true if the tablet is powered on.
GetPadData()Returns the full client-side PadData table.
GetPadPropEntity()Returns the entity handle of the held tablet prop, or 0 if not visible.
IsPadExpanded()Alias of IsPadOpen() kept for backward compatibility.
HasCarrierContract()Returns true when the player has an active carrier data plan on the tablet.
GetPadState()Returns table { isOpen, poweredOn, syncEnabled } summarising current tablet status.
HasPad()Returns true if the player has the configured tablet item in their inventory.
RegisterAgencyPayPoint(id, data)Registers a runtime Agency Pay terminal at a coordinate (markers, blip, checkout payload).
RemoveAgencyPayPoint(id)Removes a previously registered Agency Pay terminal by id.
StartAgencyPayCheckout(data)Opens the tablet (if needed) and launches an Agency Pay checkout flow with the given payment payload.
StartCall(contactData)Starts an outgoing tablet call to the supplied contact ({ name, number, ... }).
PhoneNotification(title, text, icon, color, timeout, acceptIcon, denyIcon)Shows an action notification with accept/deny buttons; blocks until the user responds and returns true/false.
RegisterApp(config)Puts an app from your own resource on the pad home screen and in the Store. Returns true, or false and an error.
UnregisterApp(id)Removes an app added with RegisterApp.
GetRegisteredApps()Returns the table of all apps registered by other resources, keyed by id.
ClosePad()Closes the pad, for example before your own interface opens.
ClosePhone()Same as ClosePad(), under the name the Agency Phone uses, so the same integration code works for both.
IsPhoneRadioActive()Returns two values: true while the radio on the pad is playing, and the station that is playing.
StopPhoneRadio()Stops the radio on the pad.

02Server Exports

ExportDescription
SendMail(identifier, mailData)Sends a mail to the player's primary mailbox by identifier (returns success).
usePad(event, item, inventory, slot, data)ox_inventory hook registered when ESX+ox_inventory is detected; opens the tablet for the inventory holder.
usePhone(event, item, inventory, slot, data)ox_inventory hook for the legacy phone item id; opens the tablet for the inventory holder.
GetMarketPrices()Returns the current stock and crypto prices of the markets, keyed by market id.
PushPadData(source)Sends a fresh copy of the tablet data to this player's pad. Returns false if it could not be built.

03Events

NameSideDescription
agency-pad:client:notifyClientShows a tablet notification (title, text, icon, color, timeout, silent).
agency-pad:client:usePadItemClientOpens the tablet when the inventory item is used.
agency-pad:client:openAppClientAsks the tablet to navigate to a custom app by id.
agency-pad:client:newMailNotifyClientNotifies the client of a freshly received mail.
agency-pad:client:hourlyPaycheckClientNotifies the client of an hourly business paycheck event.
agency-pad:server:requestPadDataServerRequests a fresh tablet data sync for the calling player.
agency-pad:server:sendMessageServerSends an SMS message (newMsg, targetNumber).
agency-pad:server:airdropPayServerPerforms an Agency Airdrop pay-to-nearby-player transfer.
agency-pad:server:buyDataPlanServerBuys a carrier data plan for the player.
agency-pad:dispatch:createServerCreates a tablet dispatch from an emergency call/SMS.
agency-pad:server:biz:createServerCreates a new business/organisation for the player.
agency-pad:server:biz:adminCreateServerAdmin creates a business on behalf of another player.
agency-pad:server:biz:startMissionServerStarts a configured business mission for the player.
agency-pad:server:applyToListingServerSubmits a job application to a business listing.
agency-pad:server:createMechanicInvoiceServerCreates a mechanic invoice draft.
agency-pad:server:sendMechanicInvoicePayServerSends a mechanic invoice to a customer for payment.
agency-pad:server:mdtCreateInvoiceServerMDT creates a fine/invoice for a citizen.

Still stuck after this page? Our support team takes it from here.