Scale props?

Has anyone discovered a stable way to scale props?
I’m using CreateObject() to create some props, but I want them to have a size different from the default one.

They are not network entities, so syncing it is already handled elsewhere.

My use case is a weed growing script. The current solution is to create a prop_weed_02 below ground, with only the tip sticking out, and move it up as the plant “grows”, so it looks like it gets bigger.
This is sub-optimal for many reasons, chief among them is that if there is a room/interior below ground at the growing location it will think the prop is part of that location and hide it when viewed from the outside. This causes my plants to be invisible until fully grown (…and thus fully above ground).

From Discord:

iridium someone fucked with denormalized quaternions
iridium those have a side effect of scaling if you don’t expect any rotation

That’s the closest I’ve been able to get, I’m afraid.

Does anyone know? Set some flag on the prop and call some yet undocumented native?
Kind wizards of the community, please share your arcane knowledge!

2 Likes

Hi,
I’m looking for the same thing. Were you able to find any answer?

Sorry, not yet.

1 Like

Any answer on this?

Is this related in any kind?
https://runtime.fivem.net/doc/natives/#_0x3C2F9037

Looked promising, but sadly that doesn’t allow me to scale an existing prop.
I can change the object bounds, I think, but that doesn’t change how it looks at all.

Thanks, though!

1 Like