SA-MP Forums Archive
SetObjectMaterial = Invisible - 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: SetObjectMaterial = Invisible (/showthread.php?tid=484230)



SetObjectMaterial = Invisible - Calvin96 - 29.12.2013

Hello SA-MP.com, here I'm again asking for help this time no error's nothing, except that err.. my textured objects are invisible!?
I put texture code under OnPlayerConnect
Okay I won't post whole code here, but here is the part of it:
Код:
new tmpobjid;
tmpobjid = CreateObject(19401,-1680.893,671.764,25.628,0.000,0.000,90.000,500.000);
SetObjectMaterial(tmpobjid, 0, 4552, "ammu_lan2", "sl_lavicdtwall1", 0);
And when I compile I get no error's everything seems fine, here's what I get instead...


Re: SetObjectMaterial = Invisible - Tamer - 29.12.2013

Try putting it under gamemodeinit.


Re: SetObjectMaterial = Invisible - J4mmyHD - 29.12.2013

It has to go under
pawn Код:
public OnGamemodeInit



Re: SetObjectMaterial = Invisible - Calvin96 - 29.12.2013

Thank you for pointing this out guys