SA-MP Forums

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

Thread Tools Display Modes
Old 03/10/2017, 07:34 PM   #1
Huge Clucker
Join Date: Aug 2017
Posts: 290
Reputation: 6
Default Tint object ground

I wanted to change the color on weapons dropped on ground, how to do?

I've tried this, but the objects are invisible:

DropObject[i] = CreateDynamicObject(GetGunObjectID(GunID), X, Y, Z-1, 80.0, 0.0, 0.0, world);
if(DropInfo[i][DropGunColor] == 2) SetDynamicObjectMaterial(DropObject[i], 0, GetGunObjectID(GunID), "none", "none", WPCOLOR_LSPD);
else if(DropInfo[i][DropGunColor] == 3) SetDynamicObjectMaterial(DropObject[i], 0, GetGunObjectID(GunID), "none", "none", WPCOLOR_ARMY);
else if(DropInfo[i][DropGunColor] == 4) SetDynamicObjectMaterial(DropObject[i], 0, GetGunObjectID(GunID), "none", "none", WPCOLOR_PINK);
else if(DropInfo[i][DropGunColor] == 5) SetDynamicObjectMaterial(DropObject[i], 0, GetGunObjectID(GunID), "none", "none", WPCOLOR_RED);
binnyl is offline   Reply With Quote

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
How to make it create object on Ground? GTLS Scripting Help 13 24/05/2015 06:44 AM
Object[Ground] Glad2BeHere Scripting Help 3 07/12/2012 04:07 PM
Ground object Norhy General 2 15/10/2012 10:51 AM
Detect if an object hits the ground DaneAMattie Help Archive 1 04/03/2011 07:58 PM

All times are GMT. The time now is 05:02 PM.

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