Jitnaught Posted June 11, 2014 Share Posted June 11, 2014 whoa.. that isn't playable.. Most likely not, but you could try it. That's the only way I see this being done. Link to comment Share on other sites More sharing options...
LordOfTheBongs Posted June 11, 2014 Share Posted June 11, 2014 Nope nothing happends... Model is a property of GTA objects (peds, vehicles, objects) so no... u can spawn an object with a specific model But you can't do that with a building.. right ? Or am I completely wrong here ? oh ok, maybe ill see why later when i have a chance, id like to see if this native produces any results also i know of no way to spawn a building like an object Link to comment Share on other sites More sharing options...
AgentWD40 Posted June 11, 2014 Share Posted June 11, 2014 (edited) this might be an alternative for you.. you're able to drive through walls while not falling off the map if(collision){ if(IS_CHAR_IN_ANY_CAR(pPlayer)){ if((!IS_CHAR_IN_ANY_BOAT(pPlayer)) && (!IS_CHAR_IN_ANY_HELI(pPlayer))){ GET_CAR_CHAR_IS_USING(pPlayer,&pveh); SET_CAR_ON_GROUND_PROPERLY(pveh); SET_CAR_COLLISION(pveh, false); } else{ GET_CAR_CHAR_IS_USING(pPlayer,&pveh); SET_CAR_COLLISION(pveh, false); } } } Edited June 11, 2014 by hardsty1e Link to comment Share on other sites More sharing options...
LordOfTheBongs Posted June 11, 2014 Share Posted June 11, 2014 (edited) Nope nothing happends... Model is a property of GTA objects (peds, vehicles, objects) so no... u can spawn an object with a specific model But you can't do that with a building.. right ? Or am I completely wrong here ? ok this is a working script to test the native... though i didnt see any results with a few values i tested but here is a script for someone who would like to test more values namespace BuildingSwapTest{ using System.Windows.Forms; using GTA; public class Main : Script { public Main() { BindKey(Keys.Insert, delegate { Vector3 p = Game.LocalPlayer.Character.Position; uint maxValueToCheck = 1000;//use whatever u like float radius = 100f;//go near some building for (uint x = 0; x <= maxValueToCheck; x++) { bool exit = false; for (uint y = 0; y <= maxValueToCheck; y++) { if (Game.isKeyPressed(Keys.End)) { Game.DisplayText("Exiting Building Swap Test..."); exit = true; break; } while (!Game.isKeyPressed(Keys.Enter)) { Game.DisplayText("Calling SWAP_NEAREST_BUILDING_MODEL Native With Params:\nPosition: " + p.ToString() + "\nRadius: " + radius.ToString() + "\nModel From: " + x.ToString() + "\nModel To: " + y.ToString() + "\n\nPress Enter To Test!!"); Wait(0); } Wait(250); GTA.Native.Function.Call("SWAP_NEAREST_BUILDING_MODEL", p.X, p.Y, p.Z, radius, x, y); Wait(0); while (!Game.isKeyPressed(Keys.Enter)) { Game.DisplayText("Did anything happen?? Press Enter To Continue!!"); Wait(0); } Wait(250); } if (exit) break; } }); } }} Edited June 11, 2014 by LordOfTheBongs Link to comment Share on other sites More sharing options...
InfamousSabre Posted June 11, 2014 Share Posted June 11, 2014 (edited) since that uint is likely a hash code, the for loops may not be much help.will have to get the models hash code from gtamodding or something http://www.gtamodding.com/index.php?title=List_of_static_models_hashes_0http://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Ahttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Bhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Chttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Dhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Ehttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Fhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Ghttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Hhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Ihttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Jhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Khttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Lhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Mhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Nhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Ohttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Phttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Qhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Rhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Shttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Thttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Uhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Vhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Whttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Xhttp://www.gtamodding.com/index.php?title=List_of_static_models_hashes_Y Edited June 12, 2014 by InfamousSabre Link to comment Share on other sites More sharing options...
LordOfTheBongs Posted June 11, 2014 Share Posted June 11, 2014 ah didnt think of that, i guess i assumed they assigned bulding some type of model id good point Link to comment Share on other sites More sharing options...
stef538 Posted June 13, 2014 Author Share Posted June 13, 2014 well, i spawned the building as an object and made some kind of object spawner so i can move it around etc etc. but now there i can't enable collision :@ there is always something 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