mirror of
https://github.com/imezx/Warp.git
synced 2026-05-13 14:24:13 +00:00
chore(docs): add .awaitReady()
This commit is contained in:
parent
597bfabb3d
commit
1f9ae004f4
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ local Players = game:GetService("Players")
|
||||||
local Warp = require(path.to.warp).Client()
|
local Warp = require(path.to.warp).Client()
|
||||||
local Schemas = require(path.to.schemas)
|
local Schemas = require(path.to.schemas)
|
||||||
|
|
||||||
|
Warp.awaitReady() -- this is optional, but recommended if facing any issues with race-condition, or remotes not registered
|
||||||
|
|
||||||
-- Use schemas
|
-- Use schemas
|
||||||
for eventName, schema in Schemas do
|
for eventName, schema in Schemas do
|
||||||
Warp.useSchema(eventName, schema)
|
Warp.useSchema(eventName, schema)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue