SA-MP Forums Archive
How do I make SetObjectMaterial new texture on old object??? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: How do I make SetObjectMaterial new texture on old object??? (/showthread.php?tid=654195)



How do I make SetObjectMaterial new texture on old object??? - RazorGuigo - 23.05.2018

Is it possible?
PHP код:
hook OnGameModeInit()
{
    
TV_OBJ CreateDynamicObject(19786xyzaxayazINTERIOR<_PREF_LS>);
    return 
1;

PHP код:
function_timer LoadTV()
{
    new 
string[5];    
    
TV_COUNT++;
    if(
TV_COUNT >= TV_SCREENS)
        
TV_COUNT 0;
    
format(stringsizeof(string), "%d"TV_COUNT);
    
SetDynamicObjectMaterial(TV_OBJ1, -5006"ann_tv"string,0xFFFFFFFF);
    return 
1;

Quote:
OBJECTIVE:

(merely illustrative image)