Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssAutorepair (autorepair)

Category:script
Author(s):Hitori
Downloads:4705
Rate:You need to be logged in to vote
Rating:3.3 (3 Votes)
Description:
This script allows to create a special markers on the map to repair vehicles.

You can manually add positions of markers in garages.xml file or you can use exported function createGarage() to create marker in the current position of player.

For every registered garage there is an icon on the map. You can show or hide icons with exported function showGarageBlips() or setup "show_blips" flag in settings.

This script contains only four garages from single player located in the Los Santos. They are linked with id field. This link allows you to open or close gates of garages
with exported function openGarages().

But you can add as many garages as you like and anywhere you like. It's not necessary to link garage with id.

When vehicle hits the marker script triggers autorepairMarkerHit event. In handler you can check if this vehicle needs to be repaired and f.e.
does a driver of vehicle have enough money for repair. So you can cancel repair operation with cancelEvent().

If event returns true then script fixes vehicle and triggers vehicleRepaired event. In handler you can add custom operations like withdrawing money for repair f.e.
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
1.0.0 2012-08-26 22:26:32 First public release Download