SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 19/05/2017, 07:45 PM   #11
Aly
Huge Clucker
 
Join Date: Oct 2012
Posts: 227
Reputation: 11
Default Re: Get Vehicle Color

Can you show us the error you're getting?
Aly is offline   Reply With Quote
Old 20/05/2017, 01:53 AM   #12
CheezIt
Big Clucker
 
CheezIt's Avatar
 
Join Date: Apr 2017
Posts: 185
Reputation: 15
Default Re: Get Vehicle Color

You could hook ChangeVehicleColor and create a function that returns a vehicle's colors (note that you'd have to use the function every time you create a vehicle). Either that, or hook AddStaticVehicle, AddStaticVehicleEx and CreateVehicle (also creating a function that returns a vehicle's colors). The colors would be saved in an array.
__________________


I like to share footage of things I find interesting, cool, funny and anything in between!
CheezIt is offline   Reply With Quote
Old 20/05/2017, 10:41 AM   #13
Antenastyle
Big Clucker
 
Join Date: Apr 2017
Posts: 99
Reputation: 4
Default Re: Get Vehicle Color

Quote:
Originally Posted by Aly View Post
Can you show us the error you're getting?
I've compiled it, thanks.

Quote:
Originally Posted by CheezIt View Post
You could hook ChangeVehicleColor and create a function that returns a vehicle's colors (note that you'd have to use the function every time you create a vehicle). Either that, or hook AddStaticVehicle, AddStaticVehicleEx and CreateVehicle (also creating a function that returns a vehicle's colors). The colors would be saved in an array.
How can I do that?
Antenastyle is offline   Reply With Quote
Old 20/05/2017, 11:00 AM   #14
Sew_Sumi
High-roller
 
Join Date: Jun 2008
Posts: 4,957
Reputation: 369
Default Re: Get Vehicle Color

I think that fixers.inc include actually had this in it somewhere.
Sew_Sumi is offline   Reply With Quote
Old 20/05/2017, 11:37 AM   #15
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,236
Reputation: 310
Default Re: Get Vehicle Color

PHP Code:
GetVehicleColor(vehicleid,&color1,&color2); 
http://forum.sa-mp.com/showthread.php?t=611142
AbyssMorgan is online now   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
Get Player color and change vehicle color to the player color gurmani11 Scripting Help 4 03/07/2015 12:34 PM
Add second color(Vehicle) Onfroi Scripting Help 5 08/08/2013 10:27 PM
Vehicle Color How? Gooday Scripting Help 3 23/08/2012 02:42 PM
Get Vehicle Color Verbal Scripting Help 2 25/05/2012 02:51 PM
Get vehicle color blackwave Help Archive 2 28/11/2010 03:40 PM


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


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