Liberty Unleashed

Scripting => Script Releases => Topic started by: Juppi on October 24, 2010, 10:54:58 am

Title: Liberty Unleashed Speedo Script
Post by: Juppi on October 24, 2010, 10:54:58 am
Liberty Unleashed Speedo Script

Description
This is a Squirrel speedometer written for LU. Some of you might have seen older versions of this script using GUI elements during LU betatests, the latest update features a speedometer which is created using GUI sprites.

(http://juppinet.co.uk/pics/lu/luspeedo.jpg) (http://juppinet.co.uk/pics/lu/luspeedo.png)

Features
- An analog speedometer which displays your current speed in KPH
- Automatically switches from GTA hud to the speedo when you enter a vehicle
- Warning lights for vehicle health, handbrake status and vehicle lights
- 'L' key toggles the vehicle lights on/off
- Type '/speedo on/off' to enable/disable the speedo

Installation
Move the contents of the .zip file to your server folder. After that, add the following line to your content.xml:
Quote
<script folder="speedo" />


Version history
- 0.1.0 Initial release
- 0.1.1 Some small fixes and optimisations, added an altometer for dodos
- 0.2.0 Complete redesign using labels, added current gear and LED lights for damage/lights etc, removed altometer
- 0.3.0 Complete redesign, now using sprites instead of other GUI elements
- 1.0.0 Release for public. Basically the 0.3.0 release with small fixes and optimisations (24/10/10)
- 1.0.1 Added a command to enable/disable the speedo (27/10/10)

Download
Latest version: Speedo script 1.0.1 (http://project-apollo.co.uk/files/lu/scripts/speedo/speedo.zip)


Previous versions might be available at a later date, however they need some modifying to work with current LU scripting.
Title: Re: Liberty Unleashed Speedo Script
Post by: KilleR on October 26, 2010, 12:27:07 pm
nice speedo juppi  :)
Title: Re: Liberty Unleashed Speedo Script
Post by: BooMario on October 26, 2010, 03:39:41 pm
its possible create skins for speedo?
Title: Re: Liberty Unleashed Speedo Script
Post by: Thijn on October 26, 2010, 07:09:19 pm
its possible create skins for speedo?
You can edit the images used by the script, So yeh you can.

You can do everything you want with it, adding your server name, nice colors, a pink elephant on it everything :P
Title: Re: Liberty Unleashed Speedo Script
Post by: Juppi on October 27, 2010, 05:34:08 pm
Update: Added a command to enable/disable the speedo (/speedo on/off).
Title: Re: Liberty Unleashed Speedo Script
Post by: Thijn on October 27, 2010, 06:28:16 pm
Update: Added a command to enable/disable the speedo (/speedo on/off).
about time! *runs fast*
Title: Re: Liberty Unleashed Speedo Script
Post by: Juppi on October 27, 2010, 07:11:42 pm
Shh poverty res nab!

 :P
Title: Re: Liberty Unleashed Speedo Script
Post by: _GHT_MarK445 on October 27, 2010, 07:12:58 pm
good
Title: Re: Liberty Unleashed Speedo Script
Post by: tmavs4 on October 28, 2010, 04:14:26 am
NICE BRO! Question, how did you lower your text so small + your speedometer?
Title: Re: Liberty Unleashed Speedo Script
Post by: Thijn on October 28, 2010, 07:08:10 am
NICE BRO! Question, how did you lower your text so small + your speedometer?

He plays on a higher resolution, that's why.
Title: Re: Liberty Unleashed Speedo Script
Post by: _GHT_MarK445 on November 04, 2010, 09:34:10 pm
good
Title: Re: Liberty Unleashed Speedo Script
Post by: Jancis71 on November 08, 2010, 07:13:24 pm
This speedometer is just AWESOME!!
Title: Re: Liberty Unleashed Speedo Script
Post by: himselfe on November 11, 2010, 01:20:26 am
There's a bug in the copy of 1.0.1 currently available, it's missing an else in front of DisplayVehicleGear( 1 ); on line 137.

Fix for anybody who needs it:

Change:
Code: [Select]
// If the vehicle is a car display its current gear
if ( IsVehicleCar( pVehicle.Model ) ) DisplayVehicleGear( pVehicle.Gear );
// Otherwise just show 1 (This is to fix the 'reverse' bug on dodo/boats etc, they only have gear 0)
DisplayVehicleGear( 1 );

To:
Code: [Select]
// If the vehicle is a car display its current gear
if ( IsVehicleCar( pVehicle.Model ) ) DisplayVehicleGear( pVehicle.Gear );
// Otherwise just show 1 (This is to fix the 'reverse' bug on dodo/boats etc, they only have gear 0)
else DisplayVehicleGear( 1 );
Title: Re: Liberty Unleashed Speedo Script
Post by: Juppi on November 11, 2010, 10:53:09 am
Ah thanks for fixing it :)

Uploaded version should also have this fix now
Title: Re: Liberty Unleashed Speedo Script
Post by: D4RiFT on February 26, 2011, 02:48:46 am
hey, err, I have the speedo right, but now it doesn't work, either on my server or other servers, I installed correctly followed all your instructions all works except the speedo doesn't show on screen even when /speedo on nothing. please help regards
Title: Re: Liberty Unleashed Speedo Script
Post by: Orpheus on February 26, 2011, 04:13:41 am
How did you use the /speedo command? 'cause I was mildly confused when I first used it, you have to do /speedo on to make it show.

Regards orpheus
Title: Re: Liberty Unleashed Speedo Script
Post by: D4RiFT on February 26, 2011, 10:52:22 am
yes i did that but nothing shows up. weird  :'(
Title: Re: Liberty Unleashed Speedo Script
Post by: xxxMDjxxx on March 18, 2011, 11:16:16 am
Same problem... The lights on off with "L" work fine :D but i dont see spedometer... i have tryed the /speedo on code (several times) and /speedo off to
Title: Re: Liberty Unleashed Speedo Script
Post by: Juppi on March 18, 2011, 05:36:17 pm
Sorry about that, I had somehow uploaded an old version of the script :x

Re-download the script and it should work now
Title: Re: Liberty Unleashed Speedo Script
Post by: xxxMDjxxx on March 19, 2011, 08:49:04 am
Sorry about that, I had somehow uploaded an old version of the script :x

Re-download the script and it should work now

Yessss, works perfect!
Dude your awesome  ;D
People on my server started a habbit of inviting someone to sit in the car by double flasshing his lights :)