bhavinbhai2707 Posted October 12, 2016 Share Posted October 12, 2016 Is their anyway to increase capacity for ped to sit In vehicles for example like in bus their are so many seats but no more than 5 can sit including driver so is their anyway that can allow more peds to sit than the original seat capacity. . .please guide me with this Link to comment Share on other sites More sharing options...
Jitnaught Posted October 12, 2016 Share Posted October 12, 2016 (edited) If you are warping the peds into the bus programatically then what you could do is check if there are any seats left, and if there aren't any then attach the ped to the bus at a position that looks like it's on a seat, and play a sitting animation. e.g. const int BUS_MAX_EXTRA_SEATS = 4;Vector3[] busSeatPositions = new Vector3[] { new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0.0f, 0.0f, 0.0f) };int seatsTaken = 0;if (bus.SeatAvailable){ //warp ped into bus}else{ if (seatsTaken != maxExtraSeats) { ped.attachto(bus, busSeatPositions[seatsTaken], rotation); ped.task.playanimation("sitting", "animation", /*other parameters that make it last forever*/); seatsTaken++; }}//this is just to give a general idea. it won't actually work. Edited October 12, 2016 by Jitnaught Link to comment Share on other sites More sharing options...
bhavinbhai2707 Posted October 12, 2016 Author Share Posted October 12, 2016 If you are warping the peds into the bus programatically then what you could do is check if there are any seats left, and if there aren't any then attach the ped to the bus at a position that looks like it's on a seat, and play a sitting animation. e.g. const int BUS_MAX_EXTRA_SEATS = 4;Vector3[] busSeatPositions = new Vector3[] { new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0.0f, 0.0f, 0.0f), new Vector3(0.0f, 0.0f, 0.0f) };int seatsTaken = 0;if (bus.SeatAvailable){ //warp ped into bus}else{ if (seatsTaken != maxExtraSeats) { ped.attachto(bus, busSeatPositions[seatsTaken], rotation); ped.task.playanimation("sitting", "animation", /*other parameters that make it last forever*/); seatsTaken++; }}//this is just to give a general idea. it won't actually work. U actually gave me idea what to do thanx for that but how do I get the seat positions?? Link to comment Share on other sites More sharing options...
AHK1221 Posted October 14, 2016 Share Posted October 14, 2016 You need to add more dummys to the model. AFAIK there isn't a way to add any by code InfamousSabre 1 Link to comment Share on other sites More sharing options...
Jitnaught Posted October 16, 2016 Share Posted October 16, 2016 U actually gave me idea what to do thanx for that but how do I get the seat positions?? The only way I know of (which is a sucky way) is to just find the offsets manually for each vehicle you want to have extra seats for. By manually I mean attaching at an offset, check if it looks good, and if it doesn't then change the offset and try again. Link to comment Share on other sites More sharing options...
Aquamarina Posted August 28, 2018 Share Posted August 28, 2018 any idea for Bicycle 2 seats????, i wait for this seen Gta SA Link to comment Share on other sites More sharing options...
MrGTAmodsgerman Posted December 28, 2018 Share Posted December 28, 2018 On 10/14/2016 at 5:41 PM, AHK1221 said: You need to add more dummys to the model. AFAIK there isn't a way to add any by code Thats not all. You have to define new seat places in the to the car linked vehicles layout file. Link to comment Share on other sites More sharing options...
YurlleyZiN Posted January 18, 2021 Share Posted January 18, 2021 Alguém pode me ensinar a fazer isso ? Eu não tenho a menor capacidade de fazer isso sozinho, mas preciso fazer. Pode me ajudar alguém ? Can anyone teach me how to do this? I have no ability to do this alone, but I need to do it. Can someone help me? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now