Sane-Hosting Posted October 9, 2013 Share Posted October 9, 2013 Does anyone have a simple distance counter for taxi's which can do value per meter or mile, or anything such or like? Link to comment
myonlake Posted October 9, 2013 Share Posted October 9, 2013 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
Sane-Hosting Posted October 9, 2013 Author Share Posted October 9, 2013 Thanks for this. I cannot thank you enough. Link to comment
myonlake Posted October 9, 2013 Share Posted October 9, 2013 Thanks for this. I cannot thank you enough. You're welcome. Link to comment
Sane-Hosting Posted October 10, 2013 Author Share Posted October 10, 2013 I found a few bugs, with the script. -> The counter can't be reset. -> The counter vanisishes, and have to leave for it to work again. Link to comment
myonlake Posted October 10, 2013 Share Posted October 10, 2013 Uploaded a new version, which should fix both of them. Link to comment
tosfera Posted October 10, 2013 Share Posted October 10, 2013 Imma have a look at it, mind if I rewrite it and use it for some other projects? Link to comment
myonlake Posted October 10, 2013 Share Posted October 10, 2013 If you wanted to rewrite it you wouldn't have to use my resource. It's a very simple script. But go ahead. If you're using major parts of the code, leave the copyrights. Link to comment
tosfera Posted October 10, 2013 Share Posted October 10, 2013 Just wanted to look into the converter to the distance in meters. Link to comment
Sane-Hosting Posted October 10, 2013 Author Share Posted October 10, 2013 It work's for all vehicles, it's showing for every car, could you limit the vehicle's to then cabbie and taxi? Link to comment
tosfera Posted October 10, 2013 Share Posted October 10, 2013 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 Link to comment
myonlake Posted October 10, 2013 Share Posted October 10, 2013 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
tosfera Posted October 10, 2013 Share Posted October 10, 2013 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
Sane-Hosting Posted October 10, 2013 Author Share Posted October 10, 2013 That makes no sense as there is no event for that in the script. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now