25.12.2017, 15:24
There is no native function to return the vehicle's interior and from a quick search I can't find any plugin/extensions that claim to do so.
As RogueDrifter stated you need to store the interior variable when you use LinkVehicleToInterior and use that variable later.
By default when you create a vehicle it is set to interior 0, so unless you specify otherwise you can assume that the interior is always 0. If you add a variable to your vehicle enumerator that stores the interior ID even if it is 0 you can just retrieve that value to compare the interior.
As RogueDrifter stated you need to store the interior variable when you use LinkVehicleToInterior and use that variable later.
By default when you create a vehicle it is set to interior 0, so unless you specify otherwise you can assume that the interior is always 0. If you add a variable to your vehicle enumerator that stores the interior ID even if it is 0 you can just retrieve that value to compare the interior.