Skip to content

Dynamic Billboard Advertising

DependencyRequiredPurpose
oxmysqlโœ… YesStores boards, rentals, views, kiosks, reps, and settings
rs_ad_agency_assetsโœ… Yes (included)Billboard faces, house ads, the kiosk prop, and render slots
Qbox, QBCore, or ESXFor charging rentPlayer money, jobs, and admin groups
OneSyncRecommendedLets nearby players watch a kiosk session
ox_target or qb-targetOptionalTarget interaction with kiosks and reps

Download both resources from your Cfx.re Keymaster and place them in your serverโ€™s resources directory.

Resource paths
resources/[retro]/rs_ad_agency/
resources/[retro]/rs_ad_agency_assets/

Keep the folder names exactly rs_ad_agency and rs_ad_agency_assets. Upload the rs_ad_agency/data/ads/ folder with its README.txt so your FTP client creates it.

Start the asset pack and the script after the database, your framework, and the optional target resource.

server.cfg
# Qbox example
ensure oxmysql
ensure qbx_core
ensure ox_target
ensure rs_ad_agency_assets
ensure rs_ad_agency

For QBCore, start qb-core (and qb-target if used) first. For ESX, start es_extended first. rs_ad_agency_assets must always start before rs_ad_agency.

server.cfg
add_ace group.admin command.rsadagency allow

A player is an agency admin if any of these is true:

  • They have the ACE command.rsadagency.
  • They have the general command ACE, which most admin groups already have.
  • Qbox group god or admin, QBCore permission god or admin, or ESX group superadmin or admin.

The framework groups can be changed in AgencyConfig.Framework.

The resource creates its own SQL tables automatically on the first start. There is no .sql file to import. Your database account must be able to create tables.

On the first start with a new database, six starter kiosks are placed around the map:

Starter kioskArea
Ad Agency KioskRockford Hills
Ad Agency KioskMaze Bank Arena
Ad Agency KioskTataviam (Route 15)
Ad Agency KioskHarmony
Ad Agency KioskPaleto Bay
Ad Agency KioskChumash

They are ordinary placed kiosks: admins can move or remove them in game, and removed ones never come back. To begin with no kiosks, empty AgencyConfig.Kiosk.StarterLocations before the first start.

In-game commands
/rsad_kiosk place [label]
/rsad_npc place

Placing shows a preview: use the mouse wheel to rotate, then press Enter or left click to place. Kiosks and reps are saved in the database and restored after restarts. Both commands also take remove and list.

After starting the server, check the following:

  1. The console shows no errors from rs_ad_agency or rs_ad_agency_assets.
  2. Ad Agency Kiosk blips appear on the map.
  3. Walking up to a kiosk and pressing E (or using your target) opens the agency manager on the kiosk screen.
  4. Renting a board charges the configured account (bank by default).
  5. A saved ad appears on the real billboard, including for a second player nearby.
  6. /adagencyadmin opens the admin panel for staff.