FaTony Posted April 30, 2012 Share Posted April 30, 2012 (edited) When I call CreateCar, spawned vehicle gets assigned default interior. If player is inside interior, spawned vehicle is invisible. I can't find native function to set interior of the vehicle. Any help? EDIT: And again I didn't search hard enough. I was searching for "interior" before, after I changed that to "room" I quickly found SET_ROOM_FOR_CAR_BY_KEY. Here's C++ function: static void SetRoomForCarByKey(Vehicle vehicle, eInteriorRoomKey key){NativeInvoke::Invoke<NATIVE_SET_ROOM_FOR_CAR_BY_KEY, ScriptVoid>(vehicle, key);} You can find key using GetKeyForCharInRoom for example. Edited April 30, 2012 by FaTony 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