leihebi Posted February 19, 2021 Share Posted February 19, 2021 (edited) how to open the door of the car, my code does not work. if (hoodOpened == false) { playerPed.LastVehicle.OpenDoor(VehicleDoor.Hood, false, false); } Edited February 19, 2021 by leihebi Link to comment Share on other sites More sharing options...
LeeC22 Posted February 19, 2021 Share Posted February 19, 2021 13 minutes ago, leihebi said: I just want to open the hood of the carrier, do not know how my code, and does not work if (hoodOpened == false) { playerPed.LastVehicle.OpenDoor(VehicleDoor.Hood, false, false); } What Carrier? Link to comment Share on other sites More sharing options...
leihebi Posted February 19, 2021 Author Share Posted February 19, 2021 15 minutes ago, LeeC22 said: What Carrier? Hermes Link to comment Share on other sites More sharing options...
LeeC22 Posted February 19, 2021 Share Posted February 19, 2021 1 hour ago, leihebi said: Hermes The aircraft carrier in the game is a map, not a vehicle... it doesn't have doors that you can open like that. Link to comment Share on other sites More sharing options...
leihebi Posted February 19, 2021 Author Share Posted February 19, 2021 12 minutes ago, LeeC22 said: The aircraft carrier in the game is a map, not a vehicle... it doesn't have doors that you can open like that. vehicle = World.CreateVehicle(VehicleHash.Hermes, new Vector3(1487.9425f, -2197.579f, 76.7122f)); vehicle.Heading = 180; if (hoodOpened == false) { playerPed.LastVehicle.OpenDoor(VehicleDoor.Hood, false, false); } Link to comment Share on other sites More sharing options...
leihebi Posted February 19, 2021 Author Share Posted February 19, 2021 51 minutes ago, LeeC22 said: The aircraft carrier in the game is a map, not a vehicle... it doesn't have doors that you can open like that. My friend, I think you misunderstood my meaning. I was trying to express that how to open the door of the car, my code does not work. Link to comment Share on other sites More sharing options...
LeeC22 Posted February 19, 2021 Share Posted February 19, 2021 2 minutes ago, leihebi said: My friend, I think you misunderstood my meaning. I was trying to express that how to open the door of the car, my code does not work. What does the Albany Hermes have to do with a carrier? It's a muscle car and your post title is "How to open the door of the carrier". Please explain how a muscle car is a carrier, because I don't understand how the two can be connected. Link to comment Share on other sites More sharing options...
leihebi Posted February 19, 2021 Author Share Posted February 19, 2021 14 minutes ago, LeeC22 said: What does the Albany Hermes have to do with a carrier? It's a muscle car and your post title is "How to open the door of the carrier". Please explain how a muscle car is a carrier, because I don't understand how the two can be connected. Sorry I didn't express myself clearly, I just want to know now why my code doesn't work, I never figured out the problem 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