API

All exports and events that script provides for developers.

Events

World interact

rcore_banners:server:worldInteract
  • All data related to placing or removing banners will be sent via this event, along with any relevant information.

  • Side: server

  • Usage:

AddEventHandler('rcore_banners:server:worldInteract', function(bannerId, playerId, actionType, locationType)
    -- bannerId: DB-ID of banner.
    -- playerId: Player which has done some interaction in world.
    -- actionType: Which task has player done currently: [ADDED_BANNER, REMOVED_BANNER]
    -- locationType: When the interaction has happened? [WORLD, BILLBOARD]
end)

Work stations

rcore_banners:server:Stations
  • All data related to business stations, if any changes, there will be sent to this event.

  • Side: server

  • Usage:

AddBannerIntoSystem

  • Allow to create own banner from your own resource to defined into banners

  • Side: server

  • Type: export

  • Usage:

AddBannerToPlayerInventory

  • Allow to give banner item, which exist in the banners resource via export.

  • Side: server

  • Type: export

  • Usage:

Billboards

  • All data related to billboards, if any changes, there will be sent to this event.

  • Side: server

  • Usage:

Last updated

Was this helpful?