opx_infinityspawn
Server
Last updated on
The spawn contract on the server — offer the spawn menu to a joining character.
local spawn = OPX.Api.Get('spawn')From server code inside opx_infinity.
Offer
Called by character on every join. Does not yield. Do not call it for a character already placed.
spawn.Offer(source, citizenId)Parameters
- source:
number - citizenId:
string
Returns
boolean—true: spawn has taken over placement;false: "place them yourself" (see How a choice runs)
if not spawn.Offer(source, citizenId) then
-- place the body yourself
end