Garry's Mod

Garry's Mod

2179 ratings
The sit anywhere script!
 
Rate  
Favorite
Favorited
Unfavorite
Type: Tool, Addon
Tags: Misc
File Size
Posted
Updated
0.006 MB
Nov 13, 2012 @ 3:41pm
Aug 11, 2014 @ 9:49am
70 Change Notes ( view )

Subscribe to download
The sit anywhere script!

Subscribed
Unsubscribe
Description
I will not take bug reports / suggestions on this page anymore, please leave them on the github issues page
This script allows you to sit on nearly every flat edge! Just press alt (or the key you have walk bound to) + e (or the key you have use bound to) on the place you want to sit. Great for RP servers for that touch of sorta realism!

If you are unsure what your walk is bound to go into the options and under 'Miscellaneous Movement' in the keyboard tab and you should see an option to assign a key to 'Walk (Move Slowly)'.

(Due to how this script works its best to choose a location far from the edge or have some sort of backrest to achieve the best angle)

ConVars:

sitting_ent_mode (3) - Changes the rules relating to entities
0 - Cannot sit on any entity
1 - Cannot sit on any player owned Entities(Will act like 3 without prop protection)
2 - Can only sit on your own entities or world entities or entities that are not owned(Will act like 3 without prop protection)
3 - Any entity
sitting_can_sit_on_players (1) - Allow sitting on other players that are sitting down
sitting_can_sit_on_player_ent (1) -- Allows sitting on the players itself
sitting_can_damage_players_sitting (0) -- Makes players be able to get hurt in seats!
sitting_allow_weapons_in_seat (0) - Allows weapons in sit anywhere vehicles
sitting_admin_only (0) - Makes sitting admin only


Github: https://github.com/Xerasin/Sit-Anywhere
Issues: https://github.com/Xerasin/Sit-Anywhere/issues

READ:
If you CANNOT sit, the problem is most likely YOURS. Please type 'bind alt +walk' in console and try to sit on a ledge again, if you cannot then it is my problem otherwise IT IS YOURS.
Popular Discussions View All (2)
8
Feb 8, 2014 @ 3:45pm
Crashing with parenting loop
Blub
3
Oct 23, 2014 @ 6:32am
♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥ скрипт
ZloyKrolik (Neo)
< >
258 Comments
Techman1086 3 hours ago 
I would like to be able to press e while sitting, I don't want to get up everytime, and you make getting up
{SSR}Sesto Elemento Aug 25 @ 4:29am 
Oh boi this crashes clients and sometimes the server and when it crashed clients the error was

Lua Error: [ERROR] addons/sit_anywhere/lua/autorun/server/sit.lua:51: Tried to use a NULL physics object! 1. Sleep - [C]:-1 2. Sit - addons/sit_anywhere/lua/autorun/server/sit.lua:51 3. Sit - addons/sit_anywhere/lua/autorun/server/sit.lua:403 4. sitcmd - addons/sit_anywhere/lua/autorun/server/sit.lua:428 5. unknown - addons/sit_anywhere/lua/autorun/server/sit.lua:455 6. unknown - lua/includes/modules/concommand.lua:54

The client crash occured when i tried to sit on the edge of a roof's building, server crashes have occured when users sat on each other apparently but still not fully known.
{SSR}Sesto Elemento Aug 25 @ 4:27am 
Oh boi this crashes clients and sometimes the server and when it crashed clients the error was

Lua Error: [ERROR] addons/sit_anywhere/lua/autorun/server/sit.lua:51: Tried to use a NULL physics object! 1. Sleep - [C]:-1 2. Sit - addons/sit_anywhere/lua/autorun/server/sit.lua:51 3. Sit - addons/sit_anywhere/lua/autorun/server/sit.lua:403 4. sitcmd - addons/sit_anywhere/lua/autorun/server/sit.lua:428 5. unknown - addons/sit_anywhere/lua/autorun/server/sit.lua:455 6. unknown - lua/includes/modules/concommand.lua:54
Centrion le Grumpy Cat Aug 19 @ 12:49pm 
When i try to sit down it says me : You've disabled sitting on players! Can anyone add me and help me please ?
yesfish Aug 18 @ 8:29pm 
Here is how to sit the complete guide:

1) *Look down* directly at the surface with you will be sitting on. Make sure it's not the floor below the surface, your target cross-hair should be directly over the to-be seat. You will automatically be rotated towards the edge so other than looking down the angle doesn't matter.

2) Press ALT+E (or whatever you have bound). As the guide said you need to be close enough towards the edge which is the main reason why it might not work. Sometimes it can help to crouch whilst doing it, sometimes spamming ALT+E can do it.

3) Press crouch (default CTRL) while sitting to change from first to third-person.
TylerB Aug 9 @ 1:22pm 
are you illiterate starvox
Starvox Aug 4 @ 4:47am 
i have a bug : You've disabled sitting on players!
Robo Runner Jul 28 @ 12:49pm 
good mod
Knaps Jul 25 @ 5:05pm 
Anyone know what the brown haired girl playermodel is?
Whats an updog? - Nope.avi Jul 21 @ 6:57pm 
#Babtou - Yes. <3