IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Post mod/code requests in the Mod Requests topic

Post mod releases in the Mod Showroom

Read the Modding Rules BEFORE posting!

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Spawn vehicles inside interiors

 
FaTony  
Posted: Monday, Apr 30 2012, 19:53
Quote Post


C++ guy
Group Icon
Group: Members
Joined: Aug 12, 2011

XXXXX



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:
CODE
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.

This post has been edited by FaTony on Monday, Apr 30 2012, 20:25
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG