RoyaleWindRoyaleWind

Server

Server-side events fired by RW Fashion.

rw_fashion:db:ready

Fires once on the server, shortly after RW Fashion starts, when its database tables are ready. RW Fashion loads its catalog, stores and settings from the same event.

AddEventHandler('rw_fashion:db:ready', function()
    print('rw_fashion is ready')
end)

It only fires during startup, so a resource that starts after RW Fashion won't see it.

To react to purchases and listings, use the bought and listed hooks.

Other rw_fashion: net events and callbacks (rw_fashion:admin:*, rw_fashion:privacy:*, rw_fashion:openStore, rw_fashion:checkout and so on) are internal. They're validated on the server and can change between versions — use the exports and hooks instead.

On this page