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

Recommended Comments

 

Above is 404 eror 
Which command do I have to enter that is?
Which key do I have to press

Share this comment


Link to comment
Share on other sites

there is a Error in 

let speedo = mp.browsers.new("package://Vehicles/speedometer/CEF/speedometer.html");
 
to like
 
let speedo = mp.browsers.new("package://speedometer/CEF/speedometer.html");
 
Cange it to your speedometer folder (other Resource) -> 

Share this comment


Link to comment
Share on other sites

If your files don't load and don't want to change folder's name, load this script in Client Side index.js first line:

let speedo = mp.browsers.new("package://basicVehSystem/CEF/speedometer.html");

Share this comment


Link to comment
Share on other sites

Create an account or sign in to comment

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

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