mockba.the.borg Posted May 10, 2016 Share Posted May 10, 2016 Hi there, I have always been wondering how can multiple people be using the same garages simultaneously while not seeing, colliding or interfering with each other. I suspect this is related to the INTERIOR natives, but not sure how to make it happen. Does anyone have an usage example? I believe an interior has to be allocated based on its coordinates, but what then? Should I teleport into it? Would I get teleported automatically into it when it is allocated? What about cars and other props inside the garage? How can I spawn then associated to that interior? Any insight on this matter would be much appreciated. Thanks all, Mockba. Link to comment Share on other sites More sharing options...
mockba.the.borg Posted May 12, 2016 Author Share Posted May 12, 2016 Hi All, I did this sequence: if not natives.INTERIOR.IS_VALID_INTERIOR(_GarageInterior) then _GarageInterior = natives.INTERIOR.GET_INTERIOR_AT_COORDS_WITH_TYPE(405.45, -955.75, -99, "v_winningroom") end if natives.INTERIOR.IS_INTERIOR_DISABLED(_GarageInterior) then natives.INTERIOR.DISABLE_INTERIOR(_GarageInterior, false) end natives.INTERIOR._0x2CA429C029CCF247(_GarageInterior) As seen on the race winning garage controller (and other garages as well) but it didn't seem to have an effect. I am able to obtain an interior ID, but then I am not sure how to use it. If anyone knows how to use interiors (or how to obtain the effect of multiple people using the same garage simultaneously without interfering with each other), please share. Thanks a lot, Mockba. Link to comment Share on other sites More sharing options...
mockba.the.borg Posted May 12, 2016 Author Share Posted May 12, 2016 (edited) I am starting to think that the "multiple players on the same physical space" solution has to do instead with the SET_PLAYER_INVISIBLE_LOCALLY and SET_ENTITY_LOCALLY_VISIBLE natives (and its peers). However I was not able to make it work. Theoretically one should be able to make himself invisible (and no collision, among other things) to others, while still being visible locally. Same thing with the vehicles inside the garage, all would be invisible (and no collision) to others while visible locally. I have tried making a vehicle invisible, then visible locally, but it doesn't seem to have effect. Does anyone has any experience with these natives? The code I used was: natives.ENTITY.SET_ENTITY_VISIBLE(ent.ID, false, true) natives.VEHICLE.SET_VEHICLE_CAN_BE_TARGETTED(ent.ID, false) natives.ENTITY.SET_ENTITY_COLLISION(ent.ID, false, true) natives.ENTITY.SET_ENTITY_INVINCIBLE(ent.ID, true) natives.NETWORK.SET_ENTITY_LOCALLY_VISIBLE(ent.ID) I was expecting that the last line would make the car visible to me again, but it doesn't. Thanks, Marcelo. Edited May 12, 2016 by mockba.the.borg Link to comment Share on other sites More sharing options...
mockba.the.borg Posted May 16, 2016 Author Share Posted May 16, 2016 After some more research I am now more convinced that the garage behavior (and the apartments as well) is more related to things and people being selectively invisible to each other. Now I am not sure if it is related to the INTERIOR natives or not. (not sure yet about the usage of those) Maybe someone has experience with it and could share some hints? I think I will open a different thread about the usage of the locally visible natives, as is seems not to be related to Interiors. Thanks in advance for any help. Cheers, Mockba. Link to comment Share on other sites More sharing options...
mockba.the.borg Posted May 23, 2016 Author Share Posted May 23, 2016 Anyone? Link to comment Share on other sites More sharing options...
nkjellman Posted May 24, 2016 Share Posted May 24, 2016 It looks to me the stuff you found is how Rockstar allows multiple players to own the same apartment. So if two players own Eclipse 40 and their each in that apartment, they won't see each other. I can't think of any application of this. You may be able to find something in the decompiled scripts. It should be in something like mpapartment. However, it is possible that these natives are used to make other players and their vehicles transparent and non solid for things like passive mode and non contact races. I don't think anyone has used these before as most of the mods on here are for single player, so they wouldn't have any application. Maybe that GTA V Multiplayer mod can use them, but I don't know. Regarding the hiding of players and vehicles natives though. Rockstar should have considered having natives that will keep props spawned by the player invisible. In GTA Online, if you eat a snack in your garage, when your character drops the wrapper on the ground, it shows up in everyone's garage. lol Not sure if they have fixed this though. ins1de and mockba.the.borg 2 Link to comment Share on other sites More sharing options...
mockba.the.borg Posted May 27, 2016 Author Share Posted May 27, 2016 Yes ... it seems to be indeed what R* uses to make things selectively invisible. I was able to make everything work, and I don't see any useful functionality other than online. But as I said on another message, it is there, so I need to know it. It is very sensitive information though, because it could create mayhem online if explored by hackers, so I will leave it alone and won't post any examples on it. Cheers, Mockba. 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