Jump to content

Taxi Meter


Recommended Posts

GTA III+ 3D map is measured in units. As far as I know, each unit is understood as one meter but in-game one unit looks like 0.5 meters or even less. I have made this script today just for fun as you asked for it and released it in the community. It's not precise, you can make your own algorithm to work over it and please do so. It calculates the meters each 1500 ms, and you can change that in the c_taximeter.lua if you want to.

https://community.multitheftauto.com/in ... ls&id=7999

Link to comment
look for the;
addEventHandler("onVehicleEnter", ... 

under the function (...) place;

local model = getPedOccupiedVehicle ( thePlayer ); 
if ( model == or model == ) then 
-- the function which shows the gui etc 
end 

That makes no sense as there is no event for that in the script, and there is no 'thePlayer' defined neither. Second of all, there is already a check for the vehicle model, but apparently I've done it wrong accidentally. There is no need to guide me, though, since I have been scripting for around 15 years.

Link to comment
look for the;
addEventHandler("onVehicleEnter", ... 

under the function (...) place;

local model = getPedOccupiedVehicle ( thePlayer ); 
if ( model == or model == ) then 
-- the function which shows the gui etc 
end 

That makes no sense as there is no event for that in the script, and there is no 'thePlayer' defined neither. Second of all, there is already a check for the vehicle model, but apparently I've done it wrong accidentally. There is no need to guide me, though, since I have been scripting for around 15 years.

Didn't want to guide you, but I wanted to guide Sane-Hosting haha. :)

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...