RawHideMapObject and HideMapObject

Started by BeckzyBoi, Jun 27, 2018, 08:21 AM

Previous topic - Next topic

BeckzyBoi

What's the different between these functions? Which do I use to remove an object from the map? (I.E. what RemoveBuildingForPlayer does in SA-MP) . wiki.vc-mp.org doesn't give me any information on these functions other than the syntax. Also, about the syntax - where do I find the x, y, z positions for the map object? Thanks

P.S. If you can also help me with this, that's be great. - https://forum.vc-mp.org/?topic=5920.0

rww

Join to Irrelevant Club Discord: https://discord.gg/MsPPZ5uV4X

BeckzyBoi

So for the coordinates I must use integers? Also no-where in that topic tells me the difference between the 2 functions.

ysc3839

https://bitbucket.org/stormeus/0.4-squirrel/src/cdeaf615b61b5c94d79f4a1e342d911b168c3cb3/FunctionHandler.cpp#lines-400
RawHideMapObject calls HideMapObject function in VCMP SDK.
HideMapObject converts float position to integer then call HideMapObject function in VCMP SDK.

If you want to hide an object. You can use this.
You can use Moo Mapper to find an object.

BeckzyBoi

I don't need a convertor, but thanks for explaining the difference between the two functions. I will use HideMapObject.