gta-chaos-mod / ChaosModV

Chaos Mod for Grand Theft Auto V
https://gta5-mods.com/scripts/chaos-mod-v-beta
GNU General Public License v3.0
251 stars 90 forks source link

Expose "CreateHostilePed" to Lua Runtime #3556

Open Rylxnd opened 10 months ago

Regynate commented 10 months ago

Why not use https://github.com/gta-chaos-mod/ChaosModV/blob/406031f148b60e1862d2b64b6d1cdff90fb7f0c6/ChaosMod/Util/Peds.h#L7? 🤔

Rylxnd commented 10 months ago

You got me f'd up. I looked for that but couldn't find it lol. I just assumed it got removed

pongo1231 commented 10 months ago

That won't work as that function takes a different Vector3 object to the one used by the Lua runtime. It was also implemented and afterwards removed before, though since the function does quite a lot I wouldn't be opposed to exposing it to the runtime again.

Rylxnd commented 10 months ago

I'll have to wrap it then, like TeleportPlayer

Rylxnd commented 10 months ago

It would make it a lot easier for LUA. Since you don't have to type out all natives and can just use the built in function.

pongo1231 commented 9 months ago

Any progress with this?