• Getting total constraints & total weight while sitting in a vehicle
    3 replies, posted
Hiya! I'm currently making a sandbox hud for my Garry's Mod build server, And at the moment i'm working on the "vehicle hud" part (Only shows up when sitting in a seat or any vehicle). And my question is, How on earth can i get all constrained entities (a number) thats connected to the seat or vehicle im sitting in? Same applies to the total mass (Kilograms). I have absolutely no idea how i can put this together and is serversided code required for this and how would i be able to send this to the client etc? constraint.GetAllConstrainedEntities( Entity ent, table ResultTable=nil ) PhysObj:GetMass() I assume this has to do something with this above^^ Examples: 1 prop welded to a seat. Total constraints = 1. 2 props welded to a seat. Total constraints = 2. 2 props that weights 500kg each welded to a seat. Total mass = 1000kg I hope you can understand everything and i appreciate any help provided:)
Edit: I may be completly wrong but can GetNWInt() be used for this and if so, How?
Shendow it works perfectly. Thank you so much! You saved my day, Litterly.
Sorry, you need to Log In to post a reply to this thread.