Events and state
State bags
The state bags fx-pocketbook sets on players and entities, what they hold and when they change.
The server sets these state bags and sends them to every client. Read them; do not set them from another resource, the notebook overwrites them.
| State bag | On | Value | Set by |
|---|---|---|---|
fxpbCourier |
player | { order, ped, mount } while a Katalog courier is on the road to this player, else nil |
apps/katalog/server/delivery.lua |
fxpbCourier |
entity (the courier ped) | the order number | apps/katalog/server/delivery.lua |
The player state bag fxRadio (the worn back radio) now belongs to the separate fx-radio resource; see the fx-radio documentation. The notebook only reads it: the book does not open while the player is charging a radio battery.
#fxpbCourier
Set when a Katalog order is delivered by a rider to where the player stands. ped and mount are network ids of the courier and the horse. The value is removed when the delivery ends.