Last updated
Last updated
Returns if the local player is sitting.
Example
Returns if the local player is laying down.
Example
Returns if the local player is sitting or laying.
Example
Returns if the local player is closer than Config.MaxInteractionDist to a seat.
Example
Returns if the local player is closer than Config.MaxInteractionDist to a bed.
Example
Returns the closest seat to the player.
Example
Returns the closest bed to the player.
Example
Makes the local player sit on the closest seat.
Makes the local player lay down on the closest bed.
Makes the local player get up if they are sitting or laying down.
Example
Disables sitting. If reason
isn't specified it will be handled as 'default' internally.
Example
Disables laying. If reason
isn't specified it will be handled as 'default' internally.
Example
Disables sitting and laying. If reason
isn't specified it will be handled as 'default' internally.
Example
Returns if sitting is disabled as the first return value, and the reason (if applicable) as the second value.
Example
Returns if laying is disabled as the first return value, and the reason (if applicable) as the second value.
Example
Returns the reasons that sitting is disabled, returns an empty table if there are no reasons.
Example
Returns the reasons that laying is disabled, returns an empty table if there are no reasons.
Example
There are 17 exports included with the script (all are client-side).