SA-MP Forums Archive
GetDynamicObjectMaterial - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetDynamicObjectMaterial (/showthread.php?tid=529662)



GetDynamicObjectMaterial - Banditukas - 03.08.2014

Hi,

I want to ask. This function will be only working if i wil be set a SetDynamicObjectMaterial ?


Re: GetDynamicObjectMaterial - [XST]O_x - 03.08.2014

Quote:

Originally Posted by Incognito View Post
http://code.******.com/p/samp-stream...ads/list?can=1

I've fixed a pretty major bug with pickups that sometimes caused them to stop streaming. Thanks to SPAWN_METAL for reporting this.

Added some new natives:

pawn Code:
native GetDynamicObjectMaterial(objectid, materialindex, &modelid, txdname[], texturename[], &materialcolor, maxtxdname = sizeof txdname, maxtexturename = sizeof texturename);
native GetDynamic3DTextLabelText(Text3D:id, text[], maxlength = sizeof text);

Since there can be multiple material indexes per object, you need to specify which one you want to use in GetDynamicObjectMaterial. (Also, note that this only retrieves what you've set with SetDynamicObjectMaterial.)
Found this