Basic Vehicle System 1.0.0

   (1 review)

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest

HankSteiner

· Edited by HankSteiner

   2 of 2 members found this review helpful 2 / 2 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 1

Share this review


Link to review