Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- THIS FILE IS A MODDED VERSION OF A FILE PART OF GTA V SCRIPT HOOK SDK
- http://dev-c.com
- (C) Alexander Blade 2015
- */
- #include "script.h"
- int red, green, blue;
- void updateConfigValues(){
- red = GetPrivateProfileInt("Vehicle_Color", "red", -1, ".\\VehicleColor.ini");
- green = GetPrivateProfileInt("Vehicle_Color", "green", -1, ".\\VehicleColor.ini");
- blue = GetPrivateProfileInt("Vehicle_Color", "blue", -1, ".\\VehicleColor.ini");
- }
- void update_features()
- {
- while (ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID()) || PLAYER::IS_PLAYER_BEING_ARRESTED(PLAYER::PLAYER_ID(), TRUE))
- WAIT(0);
- Ped playerPed = PLAYER::PLAYER_PED_ID();
- BOOL bPlayerExists = ENTITY::DOES_ENTITY_EXIST(playerPed);
- if (bPlayerExists){
- if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true)){
- Vehicle playerVeh = PED::GET_VEHICLE_PED_IS_IN(playerPed, true);
- VEHICLE::SET_VEHICLE_CUSTOM_PRIMARY_COLOUR(playerVeh, red, green, blue);
- VEHICLE::SET_VEHICLE_CUSTOM_SECONDARY_COLOUR(playerVeh, red, green, blue);
- VEHICLE::SET_VEHICLE_TYRE_SMOKE_COLOR(playerVeh, red, green, blue);
- VEHICLE::_SET_VEHICLE_NEON_LIGHTS_COLOUR(playerVeh, red, green, blue);
- }
- }
- }
- void main()
- {
- while (true)
- {
- updateConfigValues();
- update_features();
- WAIT(2000);
- }
- }
- void ScriptMain()
- {
- srand(GetTickCount());
- main();
- }
Advertisement
Add Comment
Please, Sign In to add comment