Author Topic: Liberty Unleashed Speedo Script  (Read 13307 times)

Juppi

  • Developer
  • Jr. Member
  • *****
  • Posts: 86
  • Karma: +3/-1
    • View Profile
    • Kuslahden alaste GTA:MP clan
Liberty Unleashed Speedo Script
« on: October 24, 2010, 11: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.


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


Previous versions might be available at a later date, however they need some modifying to work with current LU scripting.
« Last Edit: February 12, 2011, 12:08:03 am by Juppi »

KilleR

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
  • i r teh biggest n00b
    • View Profile
    • Hunting-Arena
Re: Liberty Unleashed Speedo Script
« Reply #1 on: October 26, 2010, 01:27:07 pm »
nice speedo juppi  :)
Regards,
Kill3R

BooMario

  • Newbie
  • *
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Re: Liberty Unleashed Speedo Script
« Reply #2 on: October 26, 2010, 04:39:41 pm »
its possible create skins for speedo?

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: Liberty Unleashed Speedo Script
« Reply #3 on: October 26, 2010, 08: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

Juppi

  • Developer
  • Jr. Member
  • *****
  • Posts: 86
  • Karma: +3/-1
    • View Profile
    • Kuslahden alaste GTA:MP clan
Re: Liberty Unleashed Speedo Script
« Reply #4 on: October 27, 2010, 06:34:08 pm »
Update: Added a command to enable/disable the speedo (/speedo on/off).

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: Liberty Unleashed Speedo Script
« Reply #5 on: October 27, 2010, 07:28:16 pm »
Update: Added a command to enable/disable the speedo (/speedo on/off).
about time! *runs fast*

Juppi

  • Developer
  • Jr. Member
  • *****
  • Posts: 86
  • Karma: +3/-1
    • View Profile
    • Kuslahden alaste GTA:MP clan
Re: Liberty Unleashed Speedo Script
« Reply #6 on: October 27, 2010, 08:11:42 pm »
Shh poverty res nab!

 :P

_GHT_MarK445

  • Jr. Member
  • **
  • Posts: 52
  • Karma: +0/-1
    • View Profile
Re: Liberty Unleashed Speedo Script
« Reply #7 on: October 27, 2010, 08:12:58 pm »
good

tmavs4

  • Jr. Member
  • **
  • Posts: 52
  • Karma: +0/-0
  • Vice City Ladder Referee
    • View Profile
Re: Liberty Unleashed Speedo Script
« Reply #8 on: October 28, 2010, 05:14:26 am »
NICE BRO! Question, how did you lower your text so small + your speedometer?
http://img218.imageshack.us/img218/8776/defaultcaw0am0e.jpg[/img][/URL]




V-Rocker = Administrator / Scriptor of GTA:LU +10

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: Liberty Unleashed Speedo Script
« Reply #9 on: October 28, 2010, 08: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.

_GHT_MarK445

  • Jr. Member
  • **
  • Posts: 52
  • Karma: +0/-1
    • View Profile
Re: Liberty Unleashed Speedo Script
« Reply #10 on: November 04, 2010, 10:34:10 pm »
good

Jancis71

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Liberty Unleashed Speedo Script
« Reply #11 on: November 08, 2010, 08:13:24 pm »
This speedometer is just AWESOME!!

himselfe

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Liberty Unleashed Speedo Script
« Reply #12 on: November 11, 2010, 02: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 );

Juppi

  • Developer
  • Jr. Member
  • *****
  • Posts: 86
  • Karma: +3/-1
    • View Profile
    • Kuslahden alaste GTA:MP clan
Re: Liberty Unleashed Speedo Script
« Reply #13 on: November 11, 2010, 11:53:09 am »
Ah thanks for fixing it :)

Uploaded version should also have this fix now

D4RiFT

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Liberty Unleashed Speedo Script
« Reply #14 on: February 26, 2011, 03: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

 

© Liberty Unleashed Team.