can any body tell me how to load only a single texture file ? ( to modify the building colors )
Search for TXD Workshop software and tutorials.
What it can do? Opens .txd and .img files, shows you textures, imports/exports textures.
So all you have to do is to get that building's .txd file, open it with the software, export the texture you wanna change then import it back when it's ready.
Good luck!
Quote from: sseebbyy on Sep 01, 2016, 08:50 PMSearch for TXD Workshop software and tutorials.
What it can do? Opens .txd and .img files, shows you textures, imports/exports textures.
So all you have to do is to get that building's .txd file, open it with the software, export the texture you wanna change then import it back when it's ready.
Good luck!
Thanks for your reply sseebbyy
see this link its a modified taxi building
http://www.gtainside.com/en/vicecity/mods/14981-amizing-cabs/
i want to tell the server to load that txd file instead of the original ( not in vice city only for my server )
(https://s17.postimg.io/4tgmifz0v/Untitled.png)
Use HideMapObject and create the custom object on the same pos.
This topic might help you i have edited the texture you can use same method to add your texture http://forum.vc-mp.org/?topic=1034.0
Quote from: MacTavish on Sep 03, 2016, 12:12 PMThis topic might help you i have edited the texture you can use same method to add your texture http://forum.vc-mp.org/?topic=1034.0
i'll check it Thanks
Quote from: Xmair on Sep 02, 2016, 07:22 AMUse HideMapObject and create the custom object on the same pos.
i acted upon your advice but dude object is not removing even i used Hideobject function
QuoteHideMapObject(1620,-992.949, 201.774 ,18.7424);
CreateObject(6000,0,Vector(-992.949, 201.774 ,18.7424),255);
If I'm wrong correct me, but all I understood from several advices and topics (I even made one (http://forum.vc-mp.org/?topic=3277.0) myself) in VC:MP you just can't simply change a .txd without replacing the model as well.
here's the bug
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi65.tinypic.com%2Fwbrixi.png&hash=26214b2c5b99d1230f46db9280768eae0a5a9e0b)
World, and after pos x
try it
Quote from: Kewun on Sep 03, 2016, 05:45 PMWorld, and after pos x
try it
Like this
RawHideMapObject(1620, 1,-992.949, 201.774 ,18.7424);
not work
What would world have to do with that?
void RawHideMapObject( int nModelId, int x, int y, int z )
{
functions->HideMapObject( nModelId, x, y, z );
}
That's from the squirrel plugin. As you can see, to use RawHideMapObject, you need to pass 3 integers, not floats. So get rid of the floats, like this:
RawHideMapObject(1620, -992, 201, 18);
Thanks for reply shadow but its work i tried your code but the object not removing from that place
Its weird i try to remove this car using iplhide32 its successfully removed from there
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi66.tinypic.com%2Fb8trba.png&hash=c72af863e7bb1bfcdb3366d80e042b3757f12220)
but why the taxi house not removing ?
Some objects can't be hidden. It has been reported since the function was implemented.
The only way is to hidevicecity.txt then re-add the default map but without that object.
There will be plenty map bugs though.
so its mean there's no way to remove that taxi house OR update the texture
Quote from: Shadow on Sep 03, 2016, 10:57 PMWhat would world have to do with that?
void RawHideMapObject( int nModelId, int x, int y, int z )
{
functions->HideMapObject( nModelId, x, y, z );
}
That's from the squirrel plugin. As you can see, to use RawHideMapObject, you need to pass 3 integers, not floats. So get rid of the floats, like this:
RawHideMapObject(1620, -992, 201, 18);
Don't use RawHideMapObject.
void HideMapObject( int nModelId, float x, float y, float z )
{
int x2 = (int)(floor( x * 10.0f ) + 0.5f);
int y2 = (int)(floor( y * 10.0f ) + 0.5f);
int z2 = (int)(floor( z * 10.0f ) + 0.5f);
functions->HideMapObject( nModelId, x2, y2, z2 );
}
void HideMapObject( int nModelId, float x, float y, float z )
{
int x2 = (int)(floor( x * 10.0f ) + 0.5f);
int y2 = (int)(floor( y * 10.0f ) + 0.5f);
int z2 = (int)(floor( z * 10.0f ) + 0.5f);
functions->HideMapObject( nModelId, x2, y2, z2 );
}
how do i use it ?
Pass 3 floats to it. It's the same way you would've originally called RawHideMapObject..
RawHideMapObject(1620, -992.949, 201.774, 18.7424);