[Feature Request] FiveM Enhanced: room IDs / interior info for interiors built without an MLO

Hi,

custom MLOs crash the Enhanced client at the moment (that’s already tracked in citizenfx/rfc#457, we see the same crash), so we’re building our interiors from normal entities instead. Own models, base archetypes, a separate ybn. That part works fine, it looks right and has collision.

The problem is everything an interior normally gives you.
No room ID, no portals, no timecycle. GetInteriorAtCoords gives back 0 for our buildings. So rain and ambient sound come through the walls, the lighting looks wrong, and any script that cares about “is the player inside” doesn’t work.

For a roleplay server that’s a big deal, half of our scripts depend on it.

So a few questions:

  1. Is there a way to give a plain-entity interior a room ID, so the game treats it as an interior?
  2. Any natives or API to create rooms/portals at runtime for resource content?
  3. Is there anything written down about interior limits on Enhanced (interiors, rooms, portal nodes)? There’s a pool size thread about too many MLOs but I can’t tell if it’s related.

If it’s not possible right now, even a “not planned” or “wait for the MLO fix” would help us decide how to build. Happy to test things on our side.

Thanks!

Why would they spend time building out a workaround when the problem is known and tracked to be resolved. Would you rather them spend time fixing the issue instead of duplicating workload for a temporary feature?

Enhanced is stated as early access for a reason. It’s not intended for production ready servers because of issues like this not to mention other missing features like escrow and Steam auth.

Fair point, and I’d much rather have the crash fixed than a workaround, that’s why I linked citizenfx/rfc#457 and didn’t open a second bug report.

My question is a bit different though. It’s not “build a workaround”, it’s whether there’s any way at all to get room IDs / interior info for content that isn’t an MLO, and if not, whether that’s planned. Even a “no” helps us decide how to build in the meantime.

And yes, we know Enhanced is early access. Our server is a test server for exactly that reason, we’re just trying to find out what’s possible.

We ran into the same thing building a walk-in interior out of plain entities (own models, own ybn, no MLO, no teleport), so for what it is worth, here is where we landed.

We could not find any way to give plain entities a room ID. GetInteriorAtCoords returns 0 for ours too, and there is no native we know of to create rooms or portals at runtime.

What we ended up doing was dropping GetInteriorAtCoords entirely and keeping our own inside state:

  • The interior volume is a box in the config. A cheap coordinate check gives the inside/outside boolean, and that boolean drives everything else.
  • Timecycle: SetTimecycleModifier on entering the volume, cleared on leaving. Not as good as a real room timecycle, but it fixes most of the lighting.
  • Audio: our sounds are placed in 3D and we attenuate them ourselves by distance plus the inside/outside flag.
  • Anything that asks “is the player inside” uses our flag instead of the native.

What we could not solve that way is rain and ambient weather coming through, same as you describe. As far as we know that needs a real interior.

So from our side the answer to your first two questions looks like no, but a confirmation from the team would help everybody, we are building around the same gap.