WrapIntoProperty
lua
The player spawns inside the property without using the door. This is useful after character selection, for example to spawn a player inside their apartment. It does not work for MLO properties.
WrapIntoStarterApartment is the same export under an older name.
Parameters
- propertyId:
numberThe property ID. Pass a number, not a string.
Return Value
booleantrueonce the player is inside.falseif the property doesn't exist, is an MLO, or the player could not be placed inside.
Example
lua