SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 03/02/2016, 09:09 PM   #1
sofien25
Little Clucker
 
Join Date: Jan 2016
Posts: 6
Reputation: 0
Default (Mapping) retexturing GTA sa objectes

Hi.
How can i change the texture of an object (with SetMaterialObject ) without making a CreatObject.
For exemple : i want to change all roads il San Andréas ,so i 'm not going to creatobject all roads , i'm just loking for retuxturing thème with setmaterialobject without creating an object .
sofien25 is offline   Reply With Quote
Old 03/02/2016, 09:12 PM   #2
Rufio
Huge Clucker
 
Join Date: May 2011
Location: Turkey
Posts: 415
Reputation: 40
Default Re: (Mapping) retexturing GTA sa objectes

So what you are asking for is the ability to retexture all of the existant GTA San Andreas roads? That means you have to mod your game, it doesn't have anything to do with pawn.
Rufio is offline   Reply With Quote
Old 03/02/2016, 09:12 PM   #3
BiosMarcel
Banned
 
Join Date: Jul 2012
Location: Germany
Posts: 1,224
Reputation: 234
Default Re: (Mapping) retexturing GTA sa objectes

Not possible

*edit at least not serverside ^^
BiosMarcel is offline   Reply With Quote
Old 03/02/2016, 09:28 PM   #4
Tamer
High-roller
 
Tamer's Avatar
 
Join Date: Nov 2011
Location: Turkey
Posts: 1,103
Reputation: 172
Default Re: (Mapping) retexturing GTA sa objectes

This is not possible. It is impossible even if you create the objects server sided. You can't remove all the roads from the game, because there is a limit for RemoveBuildingForPlayer as well.

But, if you are certain that your players will not travel the whole map in one game session, then you can only remove the roads that the player will be driving through / visiting, rather than everything.
__________________
The three stages of truth:

- Ridicule.
- Violent opposition.
- Acceptance.


Quote:
The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.
Tamer is offline   Reply With Quote
Old 03/02/2016, 10:24 PM   #5
PrO.GameR
Gangsta
 
PrO.GameR's Avatar
 
Join Date: Oct 2012
Posts: 694
Reputation: 121
Default Re: (Mapping) retexturing GTA sa objectes

Quote:
Originally Posted by Tamer View Post
This is not possible. It is impossible even if you create the objects server sided. You can't remove all the roads from the game, because there is a limit for RemoveBuildingForPlayer as well.

But, if you are certain that your players will not travel the whole map in one game session, then you can only remove the roads that the player will be driving through / visiting, rather than everything.
Actually it's quite possible to remove all roads from the map, recreate them with createobject and retexture them, however I wouldn't suggest it just because of the problems it will create for low speed internets

And nope, it's not possible to retexture anything you haven't created serversided.
__________________
Blueberry Prison Roleplay will be back soon!
Follow the forums for more information about opening day.

Forums
PrO.GameR is offline   Reply With Quote
Old 04/02/2016, 02:58 PM   #6
Tamer
High-roller
 
Tamer's Avatar
 
Join Date: Nov 2011
Location: Turkey
Posts: 1,103
Reputation: 172
Default Re: (Mapping) retexturing GTA sa objectes

Quote:
Originally Posted by PrO.GameR View Post
Actually it's quite possible to remove all roads from the map, recreate them with createobject and retexture them, however I wouldn't suggest it just because of the problems it will create for low speed internets

And nope, it's not possible to retexture anything you haven't created serversided.

You can't remove all the roads. The client will crash.
__________________
The three stages of truth:

- Ridicule.
- Violent opposition.
- Acceptance.


Quote:
The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.
Tamer is offline   Reply With Quote
Old 04/02/2016, 03:16 PM   #7
ikey07
High-roller
 
ikey07's Avatar
 
Join Date: Jul 2010
Location: Latvia,Riga
Posts: 1,167
Reputation: 180
Default Re: (Mapping) retexturing GTA sa objectes

in Map Editor duplicate all roads, move them 0.01 above original and set texture - done.
__________________
ikey07 is offline   Reply With Quote
Old 04/02/2016, 03:18 PM   #8
Rufio
Huge Clucker
 
Join Date: May 2011
Location: Turkey
Posts: 415
Reputation: 40
Default Re: (Mapping) retexturing GTA sa objectes

Quote:
Originally Posted by ikey07 View Post
in Map Editor duplicate all roads, move them 0.01 above original and set texture - done.
This is incredibly bad for your server though, it'd turn your server into an unoptimized server with massive lag.
Rufio is offline   Reply With Quote
Old 04/02/2016, 10:47 PM   #9
Tamer
High-roller
 
Tamer's Avatar
 
Join Date: Nov 2011
Location: Turkey
Posts: 1,103
Reputation: 172
Default Re: (Mapping) retexturing GTA sa objectes

Quote:
Originally Posted by Rufio View Post
This is incredibly bad for your server though, it'd turn your server into an unoptimized server with massive lag.
If your concern is object count, It won't matter. Because there are scripters here which have like 100,000 objects and those servers run with no issue. Also, I don't think there are more than 5000 road objects at SA-MP.
__________________
The three stages of truth:

- Ridicule.
- Violent opposition.
- Acceptance.


Quote:
The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.

Last edited by Tamer; 05/02/2016 at 06:52 PM.
Tamer is offline   Reply With Quote
Old 04/02/2016, 11:55 PM   #10
Rufio
Huge Clucker
 
Join Date: May 2011
Location: Turkey
Posts: 415
Reputation: 40
Default Re: (Mapping) retexturing GTA sa objectes

Quote:
Originally Posted by Tamer View Post
If your concern is object count, It won't be matter. Because there are scripters here which have like 100,000 objects and those servers run with no issue. Also, I don't think there are more than 5000 road objects at SA-MP.
Yep but then again what about players with low internet speeds? They will most likely fall off the map.

Edit: The point I am trying to make is there will be A LOT of objects for a player to stream whenever he/she moves hence the massive lag for players with low internet speeds.
Rufio is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retexturing maps? Snuuus Scripting Help 2 19/03/2015 08:03 PM
Retexturing Default Logo(s) Zmith Scripting Help 8 04/02/2015 07:55 AM
problems with retexturing. HeLiOn_PrImE Scripting Help 1 22/06/2014 03:18 AM
how to remove objectes InTeL_cOrE_i7 Scripting Help 3 14/06/2013 06:25 PM
[Map] International Gaming Mapping Team (Project:#2) [Mapping:Roleplay][Location:LSPD] sampmapping Maps 4 24/05/2011 06:32 AM


All times are GMT. The time now is 01:35 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.