Quantcast

Jump to content

» «
Photo

Help with car modifications

3 replies to this topic
Tramadol200
  • Tramadol200

    Player Hater

  • Members
  • Joined: 14 Nov 2017
  • Australia

#1

Posted 14 November 2017 - 01:06 PM

Can anybody say me,in which file writed numbers(indexes) of car modifications

I want to edit mod MaxUpgrades,but i dont which file contains numbers of mods.

Example VEHICLE.SET_VEHICLE_MOD(veh,2, 1,....

2-is the number of mod,but i dont understand where search other numbers

 


ikt
  • ikt

    _

  • Members
  • Joined: 02 Oct 2006
  • None

#2

Posted 14 November 2017 - 02:04 PM

eVehicleMod? These are in enums.h

enum eVehicleMod
{
	VehicleModSpoilers = 0,
	VehicleModFrontBumper = 1,
	VehicleModRearBumper = 2,
	VehicleModSideSkirt = 3,
	VehicleModExhaust = 4,
	VehicleModFrame = 5,
	VehicleModGrille = 6,
	VehicleModHood = 7,
	VehicleModFender = 8,
	VehicleModRightFender = 9,
	VehicleModRoof = 10,
	VehicleModEngine = 11,
	VehicleModBrakes = 12,
	VehicleModTransmission = 13,
	VehicleModHorns = 14,
	VehicleModSuspension = 15,
	VehicleModArmor = 16,
	VehicleModFrontWheels = 23,
	VehicleModBackWheels = 24 // only for motocycles
};

enum eVehicleToggleMod
{
	VehicleToggleModTurbo = 18,
	VehicleToggleModTireSmoke = 20,
	VehicleToggleModXenonHeadlights = 22
};
  • Tramadol200 likes this

Tramadol200
  • Tramadol200

    Player Hater

  • Members
  • Joined: 14 Nov 2017
  • Australia

#3

Posted 14 November 2017 - 08:28 PM Edited by Tramadol200, 14 November 2017 - 08:29 PM.

eVehicleMod? These are in enums.h
 

enum eVehicleMod
{
	VehicleModSpoilers = 0,
	VehicleModFrontBumper = 1,
	VehicleModRearBumper = 2,
	VehicleModSideSkirt = 3,
	VehicleModExhaust = 4,
	VehicleModFrame = 5,
	VehicleModGrille = 6,
	VehicleModHood = 7,
	VehicleModFender = 8,
	VehicleModRightFender = 9,
	VehicleModRoof = 10,
	VehicleModEngine = 11,
	VehicleModBrakes = 12,
	VehicleModTransmission = 13,
	VehicleModHorns = 14,
	VehicleModSuspension = 15,
	VehicleModArmor = 16,
	VehicleModFrontWheels = 23,
	VehicleModBackWheels = 24 // only for motocycles
};

enum eVehicleToggleMod
{
	VehicleToggleModTurbo = 18,
	VehicleToggleModTireSmoke = 20,
	VehicleToggleModXenonHeadlights = 22
};
And please,tell me how command give me dark glasses on car,how to change color of tires smoke and how to apply the mate black as a primary color. Sorry  for my stupidity but i dont understand this

 


Flatracer
  • Flatracer

    Player Hater

  • Members
  • Joined: 15 Jun 2017
  • Germany

#4

Posted 25 November 2017 - 05:28 PM

To set the windows tint use this native

void SET_VEHICLE_WINDOW_TINT(Vehicle vehicle, int tint) // 0x57C51E6BAD752696

Tire smoke color can be changed with this native

void SET_VEHICLE_TYRE_SMOKE_COLOR(Vehicle vehicle, int r, int g, int b) // 0xB5BA80F839791C0F

Use these natives to change the color type
Primary:

void SET_VEHICLE_MOD_COLOR_1(Vehicle vehicle, int paintType, int color, int p3) // 0x43FEB945EE7F85B8

Secondary:

void SET_VEHICLE_MOD_COLOR_2(Vehicle vehicle, int paintType, int color) // 0x816562BADFDEC83E

Color Types:

0: Normal
1: Metallic
2: Pearl
3: Matte
4: Metal
5: Chrome

and this to change the color itself

void SET_VEHICLE_COLOURS(Vehicle vehicle, int colorPrimary, int colorSecondary) // 0x4F1D4BE3A7F24601




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users