Jump to content

1 Screenshot

About This File

First Credits for @valdirdd for the Speedometer that i Edited....

And a big thank for @CommanderDonkey

 

for that fancy design of the speedometer.

FEATURES : 
Fuel System,
Distance Calculation


And a Notice to all that would use it... its a german version so... u must be change it if u want another type.

INSTALL :
Put the files in the served folders...
add clientside in ur index.js

require('basicVehSystem');




to change to MPH use the following Tutorial...

I Hope u enjoy the files... Bugs please send me...

NOTICE:
to change the gas mileage edit line 30 in ur index.js in packages/basicVehSystem/index.js
 

let rest = (Veh_data*10);

change the Multicator '10' to another value.... it calculate ur driven distance at the moment... with this multiplicator

 

Spoiler

TUTORIAL:

1. Change in the /basicVehSystem/CEF/speedometer.html line 21


document.getElementById("tacho").dataset.valueText =  kilometerstandt.toFixed(1) + " KM";

to
 


document.getElementById("tacho").dataset.valueText =  kilometerstandt.toFixed(1) + " M";


and Line 74 from
 


data-units="Km/h"

to
 


data-units="Miles/h"


and the last one is line 95 from
 


data-value-text="0km"

to
 


data-value-text="0M"



 

  • Like 3
  • Confused 2

User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

HankSteiner

· Edited by HankSteiner

   3 of 4 members found this review helpful 3 / 4 members

Exactly what i was looking for! thanks!

Bugfix:

in ServerSide packages/basicVehSystem/index.js change line 37 so the message gets shown correctly:

}else if (newtank < 16 && newtank > 0){
  • Like 2
×
×
  • Create New...