CIT Forum Index

Ingame Community => News and Updates => Topic started by: Chique on 05 05, 2012, 09:55:00 am

Title: [Resolved] Fuel by Chique
Post by: Chique on 05 05, 2012, 09:55:00 am
Topics regarding this subject earlier was only suggestions, without any actual script. I have been working on this script and testing it for nearly1 month, and finally making this topic to re-appear again. Since I am done making the script. Yes its original, by me.

Quick preface : In the last Fuel suggestion, JR10, Arran and Caz pointed out an issue that the script should not burn the bandwidth, and if it works fine, it could be added.

Testers : [CIT]Rick, [CIT]Pretface, UniOn, Fin_Jape, Vladimir, [CIT]ab-47, HellStunter, SmileFTW, DUDE, Lelouch, Timtso, gen.olo, Amon, Som3a, etc
and they reported it worked apparently fine. Thanks to JR10, since he proposed the semi-encryption and server side protocols to make the script quite invisible client-side, in case of cheating.



Idea :
Simple and straight, to implement a fuel system in our CIT.

Script is done and ready.



Features :

Simple and easy to tweak, as I have ensured that Fuel price, Specs, Fuel station locations can be changed with ease later on if needed. All tweak parameters are located at starting of the "server" type lua file.



How does it work IG?

Player gets in a car. Immediately the fuel level meter shows up.
He drives to a nearby fuel station, enters inside the pump markers.
Turns off engine, presses and holds space bar, the fuel is refilled gradually upto 100% again.
he drives away.
After sometime...
Player : Oh no! I am out of fuel, and the car shut down in middle of the valley, how to get this thing moving? Shall I have to sell the car?
-- No, just walk into any fuel station, buy fuel in can, once you bought fuel you will get instructions on how to use the fuel in case of emergency.
Player buys some fuel in can using /buyfuel quantity.
He returns to his car and enters as driver, types /showfuel to check how much fuel he has in can.
He again turns off his engine , types /usefuel quantity again to refill the car from his can.



This explains nearly everything about the script I made.
Well from "Read Me", I am aware that I have to send the download script link, but where should I add it?
should include here? I should rather wait for Arran to approve this suggestion, and once approved I will send the download link to Arran.

To anyone who would like to test the script : Join "www.Chique" temporary server, to have a look at the CIT Fuel script and help in testing.
Title: Re: Fuel
Post by: Twist on 05 05, 2012, 10:12:50 am
wow Boss you really really did a great jop I agree with you that this should be added, some other people suggest this just saying "Add fuel to CIT", but you explained it all,so +1
Title: Re: Fuel
Post by: Smile^ on 05 05, 2012, 10:33:56 am
This idea is very nice and I think i'll be needed I was a people testing it and it very awesome xd so +1 from me.
Title: Re: Fuel
Post by: pretface on 05 05, 2012, 10:50:56 am
I tested this script, works good. Awesome script imo.
Title: Re: Fuel
Post by: Chique on 05 05, 2012, 10:55:17 am
I tested this script, works good. Awesome script imo.

Appreciated, thanks.
Title: Re: Fuel
Post by: Timtso on 05 05, 2012, 11:04:13 am
I support this, you had some hardwork put into this script.

This way the criminals can't escape forever  >:D
Title: Re: Fuel
Post by: the_perfect_mostafa on 05 05, 2012, 11:08:16 am
I think CIT doesn't need a fuel system.
And this suggestion got rejected manytimes before.
Title: Re: Fuel
Post by: Timtso on 05 05, 2012, 11:09:14 am
I think CIT doesn't need a fuel system.
And this suggestion got rejected manytimes before.

The suggestions then was like this: "I suggest to have fuel in CIT"
Title: Re: Fuel
Post by: Chique on 05 05, 2012, 11:15:02 am
I think CIT doesn't need a fuel system.
And this suggestion got rejected manytimes before.

Exactly this is the reply.

The suggestions then was like this: "I suggest to have fuel in CIT"

I am not suggesting, earlier suggestions were removed, since no optimized code was scripted, but public strongly opined in having the fuel system, even last fuel suggestion had +50 around votes.
I have tried my best to cook the code, and look at its features, and also solved various public opinions regarding don't want to pay for fuel, etc.
Title: Re: Fuel
Post by: Genkis on 05 05, 2012, 12:22:20 pm
Very nice idea! Finally someone who specifies his Idea! I hate it when there are
probably nice Ideas but you can not decide to vote on them because you can not
know in which way they really want to change things.

I have a additional idea for the fuel can. I think the way with all the commands is a bit
to complicated. If your car is empty on fuel, it should just be refilled by the 5% when
entering the car.
Even further I think mechanics should be able to refill your car also by 5% for a higher
price, but anyway I am planning to suggest some changes in mechanic job.

  ;D +1
Title: Re: Fuel
Post by: Chique on 05 05, 2012, 12:31:35 pm
Very nice idea! Finally someone who specifies his Idea! I hate it when there are
probably nice Ideas but you can not decide to vote on them because you can not
know in which way they really want to change things.

I have a additional idea for the fuel can. I think the way with all the commands is a bit
to complicated. If your car is empty on fuel, it should just be refilled by the 5% when
entering the car.
Even further I think mechanics should be able to refill your car also by 5% for a higher
price, but anyway I am planning to suggest some changes in mechanic job.

  ;D

Commands are not at all complicated, since personally I hate commands too, I like GUI buttons more than just commands ;), but I strongly oversaw so that it would appear simple and easy to use, trust me, if you want to test, you can test it yourself as a demo too.

P.S. Don't forget to +1 or -1 on first post.
Title: Re: Fuel
Post by: Genkis on 05 05, 2012, 12:36:17 pm
If you say so I think you are right. you seem to have really thought out this
idea. how can I test it? but anyway I voted +1 the second after I read your
suggestion. ^^
Title: Re: Fuel
Post by: Chique on 05 05, 2012, 12:39:46 pm
If you say so I think you are right. you seem to have really thought out this
idea. how can I test it? but anyway I voted +1 the second after I read your
suggestion. ^^

Join "www.Chique" server right now, to have a look at the CIT Fuel script and help in testing.
Title: Re: Fuel
Post by: Genkis on 05 05, 2012, 01:05:59 pm
this will be great. I think it will really add to the gameplay.
And it works great too. With good instructions and everything.
I tested it and say: This must go on CIT!
Title: Re: Fuel
Post by: FloTheBo on 05 05, 2012, 01:12:41 pm
A great script. Tested it now too. And if it is for me, this should go on the server. It is well thought over and works good. +1!
Title: Re: Fuel
Post by: randy-mathews on 05 05, 2012, 02:45:59 pm
Well Nice work but no cars cost a lot as it is with the whole pay and spray thing.
Oh there are other fuel  scripts on www.mtasa.com (http://www.mtasa.com) if you did not know.
Title: Re: Fuel
Post by: Steve on 05 05, 2012, 02:53:13 pm
I really don't want a fuel script.
I like to idle in my car, sometimes I even go afk for like 10 minutes or so.

I mostly just drive around SA pointlessly though. I don't want to "run out of fuel". I have experience with fuel systems in the past, and I hate them.
Title: Re: Fuel
Post by: Timtso on 05 05, 2012, 03:00:53 pm
I tested the script now and I love it!

I like to idle in my car, sometimes I even go afk for like 10 minutes or so.

If you turn the motor off, it wont use any fuel.

Title: Re: Fuel
Post by: cmkilla on 05 05, 2012, 03:04:22 pm
I really don't want a fuel script.
I like to idle in my car, sometimes I even go afk for like 10 minutes or so.

I mostly just drive around SA pointlessly though. I don't want to "run out of fuel". I have experience with fuel systems in the past, and I hate them.
I agree here plus its another  way to loose money, if you want fuel get a car irl and waste your money on fuel and don't give silly escuse like to improve 'RP', to hell with that
Just a small example of this messin up your day
You start a race you winning and near finish line and bam no fuel you fail race, you finish DS you driving around and bam out of fuel forever alone in jail >muted<  its a great script works well but not for cit alot of good things have been removed this will just make more complaints
Title: Re: Fuel
Post by: Timtso on 05 05, 2012, 03:08:52 pm
I agree here plus its another  way to loose money, if you want fuel get a car irl and waste your money on fuel and don't give silly escuse like to improve 'RP', to hell with that
Just a small example of this messin up your day
You start a race you winning and near finish line and bam no fuel you fail race, you finish DS you driving around and bam out of fuel forever alone in jail >muted<  its a great script works well but not for cit alot of good things have been removed this will just make more complaints

If you run out of fuel you can always use the can. It gives you 10% fuel, that means you can drive to nearest fuel station.
Title: Re: Fuel
Post by: Chique on 05 05, 2012, 03:13:13 pm
Hmm there are negative points too, as said by Stevie and cmkilla, the point was what if you run out of fuel?

Well let me tell you in humble note, a mere 10% fuel is enough to complete a trip right from Southmost point of SA to Northmost. So you won't be out of fuel in a race if you have over 10% fuel. Or rather if you participate in race just as it fixes damage in your car scripts can add a 5% fuel if you start a race too.

cmkilla and while going into DS can't you just go to a fuel station and refill some fuel? or atleast buy a can and store fuel in your pocket? and use it if you are out of fuel? is it so hard? :|
infact, the problem you stated is somewhat similar to this - "What if I go to DS and have no ammo? forever jailed >.<".

Also Steve, if you go idle, just turn off engine, won't deplete any fuel at all, also idle driving? we all do that, and love that. So I ensured the fun doesn't go down, so you can drive an infernus at full speed around 60minutes given at ideal conditions... so 60minutes driving at full speed is enough, for idle driving we don't even go full speed, so in that case, if you drive slow, your 100% fuel will take up 2-3 hours to go down to 0%. So is it still too much expensive? :|

If you still want fuel to deplete at lesser rate, its very easy to change the values of loss in the script ;)
so you can also opt for making 10hour drive for 100% fuel. Also can change cost of fuel. Can tweak anything as per people's choice.
Title: Re: Fuel, Scripted
Post by: cmkilla on 05 05, 2012, 03:38:32 pm
lol going ds with no ammo XD I always go with little ammo and always be come top bank robber
But just 1 thing is this panned to air crafts? Cause I love hights and I spend hours flying and hate stopping for every little thing
Also I drive randomly for hours and I log out in the most random places and look at this I log out at 5% fuel I log see that a robbery is in say 10 minutes and im at bayside and by the time I reach there (such a hassle) and its say 2% by the time I leave DS im outa fuel xD only thing I could say you have a little gui for say extra fuel (are you trying to say its possible if so good) that gives you 10% fuel that will be indeed good but still on the negative for it reason I don't need another bar to look at
Its just an opinion but that 2 hours of fuel kinda kills it unless your runnin it at cit gta time
Because as I said its gonna have alot of complaints especially old players who like the server the way it is
Title: Re: Fuel, Scripted
Post by: randy-mathews on 05 05, 2012, 03:48:29 pm
I have to agree with cmkilla the fuel system is too much of a hassle.
Title: Re: Fuel, Scripted
Post by: Pl@y on 05 05, 2012, 04:41:00 pm
I too agree with you Chique. +1
Title: Re: Fuel, Scripted
Post by: HeatBlast on 05 05, 2012, 06:13:01 pm
nice Bro  :D :D
Title: Re: Fuel, Scripted
Post by: DanLad77 on 05 05, 2012, 06:17:43 pm
+1 Great idea this will boost the fun of Cops and Robbers as the criminal will eventually run out of fuel.
Title: Re: Fuel, Scripted
Post by: Chique on 05 05, 2012, 07:19:30 pm
lol going ds with no ammo XD I always go with little ammo and always be come top bank robber
But just 1 thing is this panned to air crafts? Cause I love hights and I spend hours flying and hate stopping for every little thing
Also I drive randomly for hours and I log out in the most random places and look at this I log out at 5% fuel I log see that a robbery is in say 10 minutes and im at bayside and by the time I reach there (such a hassle) and its say 2% by the time I leave DS im outa fuel xD only thing I could say you have a little gui for say extra fuel (are you trying to say its possible if so good) that gives you 10% fuel that will be indeed good but still on the negative for it reason I don't need another bar to look at
Its just an opinion but that 2 hours of fuel kinda kills it unless your runnin it at cit gta time
Because as I said its gonna have alot of complaints especially old players who like the server the way it is

Trust me cmkilla, xD you didn't read my whole damn long first post, did you?
I clearly wrote except aircrafts, and boats...
So why are you adding negative points without reading the whole thing? T.T
I spent a month making this thing since I saw a 50+ upvotes in all of the earlier Fuel suggestions, and this would achieve the same upvote too, adding to that, script is already made.

Also it is not aimed at any personal use, its just making server having an extra feature which works great and looks realistic, and also adds fun rather than killing the fun. It will add fun, trust me. There would be people lolling around if they have 0% fuel xD, but frankly there won't be such situations, as a 100% fuel for 100$ would be enough to run your car for 1 IG hour and more. Also as I said, if all of you want fuel to decrease much less, i.e. if you all want to drive a 100% fuel for 100hours that can be made also. But only isn't realistic.

Also in real life, criminals / cops, everyone has to refuel isn't it? It won't do harm to the fun... it will be fun.
Title: Re: Fuel, Scripted
Post by: loser on 05 05, 2012, 07:31:01 pm
Totally support the idea. A question: different cars have a different fuel consumption?
Title: Re: Fuel, Scripted
Post by: Chique on 05 05, 2012, 07:43:59 pm
Totally support the idea. A question: different cars have a different fuel consumption?

Nope if you all want that, I can do that part too, but would make the script a little bit complex, not too much complex but would only add a single more variable array containing model name of all cars.
Everyone want that? different cars should consume differently?
But that arises another complication... who would tell me which car would consume less and which more? :D

Well as for now, let it be even, like same consumption for all cars and bikes.
Title: Re: Fuel
Post by: Steve on 05 05, 2012, 07:45:53 pm
Don't call me stevie. my name is Steve. stevie is a completely different person. It isn't solved with cans. I still run out. My problem is that on top of fixing my car, ill have to refuel it too. waste of money. I don't want to spend money fuel, I want to drive forever without stopping :)
Title: Re: Fuel, Scripted
Post by: Kilro on 05 05, 2012, 07:47:07 pm
Don't screw up the car system anymore. Get out with your fuel.
Title: Re: Fuel
Post by: Chique on 05 05, 2012, 07:48:07 pm
Don't call me stevie. my name is Steve. stevie is a completely different person. It isn't solved with cans. I still run out. My problem us that on top of fixing my car, ill have to refueling it too. waste of money. I don't want to spend money fuel, I want to drive forever without stopping :)

Who called you Stevie, not me ofc! :O omg I know both of you for a long time. Whatever thats not the point,
well yeah I respect your opinion too ;) but only if you have seen it as a demo... you would have maybe changed the mind. Anyways, thanks for opinion. ;)



Don't screw up the car system anymore. Get out with your fuel.

I didn't!
I made this script since community wanted it, last Fuel suggestion had +50 upvotes as I have been saying... so its pretty much and enough that people wants it... , thats why I made the script, I didn't suggested something on my own, I just pointed out I made the script for a suggestion already being made and up-voted and acknowledged, only no one earlier submitted such script.
Title: Re: Fuel, Scripted
Post by: Som3a on 05 05, 2012, 07:57:53 pm
Great idea Boss I am always against these fuel systems but this time it sounds more organized
Quote
  • Engine turn on / off with "z" key (key can be changed), or using "/engine" command. The engine must be turned off at time of refuelling like in real life.
Makes great RP
Quote
  • Fuel is consumed when engine is turned on, and the car is travelling, and also even if the car is at idle mode it will consume the fuel as long as engine is turned on. Fuel consumption depends on : Engine state, Distance covered, Speed of vehicle. A 100% fuel will run your car for 1 hour approx at full speed (with default values of loss in script).
And this is really good, we won't need fuel like every 5 minutes.
A pure Yes/+1 from me
Title: Re: Fuel, Scripted
Post by: FasT on 05 05, 2012, 08:17:36 pm
really nice job chique you did a great work and this shouldn't be wasted ! I hope to see fuel working on CIT and we know all of cit wanted this , so big up  :)
Title: Re: Fuel, Scripted
Post by: Salma on 05 05, 2012, 08:22:40 pm
This job that Chique has done is impressive it's pretty good and will increase more RP in CIT.

It is also special and nice. +1 for sure.
Title: Re: Fuel, Scripted
Post by: StevieFFS on 05 05, 2012, 08:26:26 pm
Really good job chique! have done its impressive, and like snowkitten saiid will increase more RP.
Its so nice really like it. +1 for sure.
Title: Re: Fuel, Scripted
Post by: GoodMaster on 05 05, 2012, 08:35:31 pm
Good job,Tested too,but what about if u left and u'r not near gas station?We can add suggestion:Calling mechanic to refuel it.it would be good.For now I wont say - or + .
Title: Re: Fuel, Scripted
Post by: Chique on 05 05, 2012, 08:36:32 pm
Good job,Tested too,but what about if u left and u'r not near gas station?We can add suggestion:Calling mechanic to refuel it.it would be good.For now I wont say - or + .

Read the whole suggestion, if you are out of fuel, you can buy fuel in can, and get back to your car and refuel.
Title: Re: Fuel, Scripted
Post by: Smith on 05 05, 2012, 09:01:08 pm
I support this, its realistic makes sever to looks even better.
Title: Re: Fuel, Scripted
Post by: Zsolti_HUN on 05 05, 2012, 09:10:59 pm
I really hope this will be added, because you spent a lot of time and hassle in it, and it's the only big thing what CIT's missing.
If this happans I'll be the transporter.  8)
(If you didn't see the movie google or youtube it.)
Title: Re: Fuel, Scripted
Post by: GoodMaster on 05 05, 2012, 09:11:12 pm
Read the whole suggestion, if you are out of fuel, you can buy fuel in can, and get back to your car and refuel.
Yes,didnt had all time to read all this semi text LoL btw now I know so u got my +1.
Title: Re: Fuel, Scripted
Post by: Screen on 05 05, 2012, 09:20:16 pm
Wow, +1 from me. You probably killed your ass working on this, didn't you?
This is awesome tho.
Title: Re: Fuel, Scripted
Post by: Slayer on 05 05, 2012, 09:53:00 pm
OMG! Awesome  :D , 1+ but I have a little suggeestion. The ability of store fuel cans in the trunk of car, just for emergency cases.

Edit: Derp, recently noticed fuel cans saves in player.
Title: Re: Fuel, Scripted
Post by: super_sour on 05 05, 2012, 10:10:38 pm
really cool idea, would love to see this implemented. Although, I hope that at 100% fuel, it would last around atleast 25mins.
Title: Re: Fuel, Scripted
Post by: Chique on 05 05, 2012, 10:23:13 pm
Wow, +1 from me. You probably killed your ass working on this, didn't you?
This is awesome tho.

Yes exactly... hard work.
Title: Re: Fuel, Scripted
Post by: Chique on 05 05, 2012, 10:23:36 pm
really cool idea, would love to see this implemented. Although, I hope that at 100% fuel, it would last around atleast 25mins.

it would last 60 mins or more depending on speed and distance covered
Title: Re: Fuel, Scripted
Post by: Hidde on 06 05, 2012, 01:37:16 pm
I love the idea, because it makes the server a bit more roleplay, and maybe later, people can become fuel employees, so that they can buy a fuel 'point' and make it their own, and people have to pay them, to take fuel., it is just an idea.

but I love this suggestion and it is worked out carefully, so I say: YES
Title: Re: Fuel, Scripted
Post by: pragu on 06 05, 2012, 05:35:32 pm
Awesome one....chique super cool job....want to see it implemented in the server soon
Title: Re: Fuel, Scripted
Post by: armis on 06 05, 2012, 06:21:06 pm
I love this idea and this need be added to server...
plz add it and all be happy :)
Title: Re: Fuel, Scripted
Post by: DIABLO1996 on 06 05, 2012, 07:12:44 pm
Yep. It would be cool to have the fuel system in CIT cz it would increase RP and make the server more real.
Title: Re: Fuel, Scripted
Post by: vallejo on 06 05, 2012, 08:35:25 pm
I do not like the idea
spending more money
and then complain that have no money
Title: Re: Fuel, Scripted
Post by: Zsolti_HUN on 07 05, 2012, 12:42:56 am
It would be very nice if this would be finally added, it would give much more reality and fun to driving. At first it's not neccessary to add this permanently, just to see how it works out on CIT. And it doesn't need much hassle since it's scripted already.
Title: Re: Fuel, Scripted
Post by: vallejo on 07 05, 2012, 01:29:37 am
I understand it would look more RPG
as driver's license
Title: Re: Fuel, Scripted
Post by: Kilro on 07 05, 2012, 09:17:47 am
I think all + voters will regret their vote.

Ps nothing against your hard work Chique. Respect for that
Title: Re: Fuel, Scripted
Post by: Chique on 07 05, 2012, 09:58:41 am
I think all + voters will regret their vote.

Ps nothing against your hard work Chique. Respect for that
Thanks,
No my hard work isnt the point, since programming is my passion. Also its not my suggestion Kilro, multiple times fuel has got so much + votes, thats why I decided to make a script this time which works fine and seamlessly. Also, Kilro, fuel consumption as I made is very low, so it won't hamper you to go to fuel station often, as I stated, a 100% fuel will run your car for enough time... so you won't regret.
Because I ensured that Fuel system should not damage the fun of car driving which we all love :)
I only made some use of the fuel stations located all around SA.
Title: Re: Fuel, Scripted
Post by: vince013 on 07 05, 2012, 11:13:26 am
I wish this would be implemented, nuff said.
Title: Re: Fuel, Scripted
Post by: harshraj jadeja on 07 05, 2012, 12:05:21 pm
+1 fromme I liked it tooooooo much and gooooooood work chiq
Title: Re: Fuel, Scripted
Post by: Terminator on 07 05, 2012, 12:13:49 pm
Cool Chique, good skills you got there. Hope it will be added to CIT :D RPish :D
Title: Re: Fuel, Scripted
Post by: Chique on 07 05, 2012, 01:27:57 pm
Cool Chique, good skills you got there. Hope it will be added to CIT :D RPish :D

Its not really RP, since I dont want CITs fun to get ruined with heavy RP, but its just a feature that I worked upon and the community longed for.
Title: Re: Fuel, Scripted
Post by: reduxo on 07 05, 2012, 02:23:42 pm
If the fuel system last long, why would should we have it at all?

This would be more of a hassle than cool feature. -1.

It would be more RP to pretend to fill your car with gas. Rather than going to a gas station to get rammed/shot/grenade spammed while being there. Most pay and spray's are this way, especially in LS. 
Title: Re: Fuel, Scripted
Post by: pragu on 07 05, 2012, 03:19:50 pm
Gee a annoying question :| what was the programming language u used, LUA?
Title: Re: Fuel, Scripted
Post by: Chique on 07 05, 2012, 03:26:29 pm
Gee a annoying question :| what was the programming language u used, LUA?

for your information its Lua not LUA!
Yes ofcourse its Lua, derp. MTA is based on Lua language.




If the fuel system last long, why would should we have it at all?

This would be more of a hassle than cool feature. -1.

It would be more RP to pretend to fill your car with gas. Rather than going to a gas station to get rammed/shot/grenade spammed while being there. Most pay and spray's are this way, especially in LS.

Hmm, I can guess that. But you wouldn't need to go to fuel stations so often as you would go to a repair shop. Cars are damaged much easily. But apparently I have tested it with so many details and collected the data, average drivers would need 3 hours of IG driving to consume the whole 100% fuel, so won't be a problem trust me.
Title: Re: Fuel, Scripted
Post by: pragu on 07 05, 2012, 05:00:49 pm
chique, could u pls send me the mod too...just want to try it out...cant wait till its implemented :|
Title: Re: Fuel, Scripted
Post by: Genzo on 08 05, 2012, 04:56:44 am
this will not be liked by Cit ppl fuel sucks and isnt it enogh the pay and spray for repairing now fuel to no way
Title: Re: Fuel, Scripted
Post by: kagali1991 on 08 05, 2012, 08:25:53 am
I like this your idea so very very nice and awesome :) +1
Title: Re: Fuel, Scripted
Post by: Chique on 08 05, 2012, 07:13:22 pm
Scripted as per requirement.

- Added Damage meter,
- GPS Location
- Speedometer with analog and digital mix.
- Stacked in 3 boxes.
Title: Re: Fuel, Scripted
Post by: Genzo on 08 05, 2012, 07:21:37 pm
so is realy will be added or what ....i dont think this will get the liked realy
Title: Re: Fuel, Scripted
Post by: Chique on 08 05, 2012, 07:25:09 pm
so is realy will be added or what ....i dont think this will get the liked realy

Trust me you won't regret if it works fine.
Title: Re: Fuel, Scripted
Post by: Genzo on 08 05, 2012, 07:27:23 pm
ffs...ok if u say so and u sure it will be good ok why not im just think it will get annoying when we in no where and the fuel end that will be sucks so...btw nice work
Title: Re: Fuel, Scripted
Post by: Chique on 08 05, 2012, 08:15:34 pm
ffs...ok if u say so and u sure it will be good ok why not im just think it will get annoying when we in no where and the fuel end that will be sucks so...btw nice work

I think you are posting irrelevant comments without reading the whole thing. When no fuel in car and you are stuck, there are fuel cans, you can buy fuel in cans and come back to your car and refill it.
Title: Re: Fuel, Scripted
Post by: Genzo on 08 05, 2012, 08:21:13 pm
dude I know it just enough for us to spend money in pay and spray so now we need to buy fuel that I think will not be cheap as the fuel can and u say that if we dont have fuel can and we middel of no where we should leave our car and go to the nearest Fuel Station and buy it what if the nearest one is to far that what I meant but it seem's good for RP
Title: Re: Fuel, Scripted
Post by: Victor on 08 05, 2012, 08:28:06 pm
Since its client sided script, what happens if I leave my car in middle of nowhere without fuel, and someone with fuel gets it, what happens?
Title: Re: Fuel, Scripted
Post by: Genzo on 08 05, 2012, 08:41:42 pm
Since its client sided script, what happens if I leave my car in middle of nowhere without fuel, and someone with fuel gets it, what happens?
dude u can hide it and when u get back to it show it
Title: Re: Fuel, Scripted
Post by: mectus11 on 08 05, 2012, 09:06:25 pm
Well, I wonder if my car is in the middle of the LV desert with 0% fuel, what to do then? I may suggest adding fuel galons that we can buy from any 24/7 shop that cost like 150$ the galon which refills 5% fuel.
Title: Re: Fuel, Scripted
Post by: Genzo on 08 05, 2012, 09:34:08 pm
Well, I wonder if my car is in the middle of the LV desert with 0% fuel, what to do then? I may suggest adding fuel galons that we can buy from any 24/7 shop that cost like 150$ the galon which refills 5% fuel.
150$ for 5% only this to much what we will pay like 2-3k to get 100% from it
Title: Re: Fuel, Scripted
Post by: Chique on 08 05, 2012, 09:59:59 pm
150$ for 5% only this to much what we will pay like 2-3k to get 100% from it

What?

1% fuel costs $1, and thats not much! :o
Title: Re: Fuel, Scripted
Post by: Will on 08 05, 2012, 10:02:20 pm
I say -1 unless your fuel lasts at least 1 hour of constant driving
Title: Re: Fuel, Scripted
Post by: Game on 08 05, 2012, 10:05:39 pm
I say -1 unless your fuel lasts at least 1 hour of constant driving

Who will spend a whole hours driving non-stop, lol. And even if you do that there are still plenty of gas stations where you can buy more fuel.

I like this idea so +1 from me.
Title: Re: Fuel, Scripted
Post by: FasT on 09 05, 2012, 09:40:09 am
for all who said ''what I should do when my car run out of fuel in the middle of the road , well if you read the post well , you will find this ....
Quote
What if you are out of fuel in middle of road and the car engine stops? Just walk into a fuel station and buy fuel in can, can will hold maximum of 10%. Return to your car and use the fuel from can into your vehicle, and your car will make it to the nearest fuel station.
and 1$ for 1% fuel isn't that much because 100% of fuel will cost you just 100$ ! is that a big deal ???
Title: Re: Fuel, Scripted
Post by: kagali1991 on 09 05, 2012, 01:25:34 pm
I like this idea from chique

becuase its good and fun :) +1
Title: Re: Fuel, Scripted
Post by: BangOlufsen on 09 05, 2012, 03:33:03 pm
I like this idea.
+1
Title: Re: Fuel, Scripted
Post by: Chique on 09 05, 2012, 03:39:44 pm
Who will spend a whole hours driving non-stop, lol. And even if you do that there are still plenty of gas stations where you can buy more fuel.

I like this idea so +1 from me.

Exactly, while doing the script, I had to add 102 fuel markers... spread all accross SA, and nearly 30-40 fuel station locations... so is it too hard for those who did a -1 on this?
Title: Re: Fuel, Scripted
Post by: SpongeFin on 09 05, 2012, 03:54:40 pm
I like this idea, not just because it adds new factor to car driving, but also makes players think more about their routines etc. Fuel price could be like dynamical if possible? So it would change every now and then.

Also, cheaper fuel for vips?
Title: Re: Fuel, Scripted
Post by: Chique on 09 05, 2012, 04:37:26 pm
I like this idea, not just because it adds new factor to car driving, but also makes players think more about their routines etc. Fuel price could be like dynamical if possible? So it would change every now and then.

Also, cheaper fuel for vips?

yes already Arran, Dusty and I were discussing about dynamic fuel price, yeah would implement that too, soon. Lets just first test if it works fine. Updates can be made later on easily. Also cheaper fuels for VIP, yeah, could be done as an add-on later, thanks for feedback.


Edit, this is how it would look like, with a pre-release image.


(http://desmond.imageshack.us/Himg443/scaled.php?server=443&filename=fuel1x.jpg&res=landing)

Descriptions updated on First Topic.
Title: Re: Fuel, Scripted
Post by: Perry on 09 05, 2012, 04:42:46 pm
Honestly I don't really care as long as staff get infinite fuel, because I rarely play properly any more and get fucking bored after 10 minutes of anything but staff work. Also when I'm doing reports/mutes/support I like to drive around in my Bullet.
Title: Re: Fuel, Scripted
Post by: dunga007 on 09 05, 2012, 04:58:14 pm
veerY nice idea,agreed
Title: Re: Fuel, Scripted
Post by: Arran on 09 05, 2012, 04:58:36 pm
Script lacks indentation consistency, many lines do not have correct indentation.

Some functions are inefficient, very strange thing to do:
Code: [Select]
function excludeTeam()
 --Exclude Teams (Those who won't deplete their fuel) | Default : Staff
local xcludeTeam={["Staff"]=true,}
return xcludeTeam
end

Why are you creating variables and tables every single time the functions are called? It's silly.

Code: [Select]
--Exclude Teams (Those who won't deplete their fuel) | Default : Staff
local xcludeTeam={["Staff"]=true}

function excludeTeam()
return xcludeTeam
end
Title: Re: Fuel, Scripted
Post by: Astobix on 09 05, 2012, 04:59:57 pm
I agreed on this idea since I think it brings more RP.
Title: Re: Fuel, Scripted
Post by: Chique on 09 05, 2012, 05:08:54 pm
Quote
Why are you creating variables and tables every single time the functions are called? It's silly.

Code: [Select]
--Exclude Teams (Those who won't deplete their fuel) | Default : Staff
local xcludeTeam={["Staff"]=true}

function excludeTeam()
return xcludeTeam
end



Everytime? No!
The table variable is set and saved on first start or restart.
From the next time the excludeTeam function is just called once, when a new client starts, hence, only the variable excludeTeam would be passed into the Client only once a new client joins.


Its triggered via triggerServerEvent when a client joins -

Code: [Select]
function presetParameters()
if not(theEngineKey=="nil") then
bindKey (source, theEngineKey, "down", toggleEngine )
end
triggerClientEvent(source,"fuelOnJoin",getRootElement(),fuelCost(),ecoRate(),idleLoss(),speedLoss(),excludeTeam(),excludeVehicle(),whatKey(),initFuel())
end

and this function just passes the parameters once from server to client.

Title: Re: Fuel, Scripted
Post by: kagali1991 on 10 05, 2012, 09:19:14 am
(http://desmond.imageshack.us/Himg443/scaled.php?server=443&filename=fuel1x.jpg&res=landing)

i like this
Title: Re: Fuel, Scripted
Post by: srbija97 on 10 05, 2012, 12:45:23 pm
+1,good idea,but I think some newbies are going to crash at FuelStation and maybe DM some1.
Title: Re: Fuel, Scripted
Post by: pragu on 10 05, 2012, 06:34:27 pm
totally agree with knight.....and are the fuel stations still going to be explodable :o? because if it is explodable u noe it would lead to extreme DMing by the noobs >:(
Title: Re: Fuel, Scripted
Post by: Victor on 10 05, 2012, 06:36:02 pm
Is it already in game?
Because I really want to see it there
Title: Re: Fuel, Scripted
Post by: Chique on 10 05, 2012, 06:58:54 pm
totally agree with knight.....and are the fuel stations still going to be explodable :o? because if it is explodable u noe it would lead to extreme DMing by the noobs >:(

No, do you think Ill make them explodable? Hell no... they arent destroyable!!
Title: Re: Fuel, Scripted
Post by: srbija97 on 10 05, 2012, 09:06:10 pm
No, do you think Ill make them explodable? Hell no... they arent destroyable!!
Everything is awesome if you are able to make them undestroyable
Title: Re: Fuel, Scripted
Post by: Zsolti_HUN on 10 05, 2012, 09:15:40 pm
Quote
He returns to his car and enters as driver, types /showfuel to check how much fuel he has in can.
He again turns off his engine , types /usefuel quantity again to refill the car from his can.

What about adding these to the existing "X" gui for easier access?
Title: Re: Fuel, Scripted
Post by: Closer. on 10 05, 2012, 10:48:15 pm
I've posted +1. because Chique maked a perfect script with all the stuff, and it's totally worth for in CIT
Title: Re: Fuel, Scripted
Post by: Hermann_Edel on 10 05, 2012, 11:20:42 pm
Ahh, a very nice Idea! Looking forward to see this on the server. Would be awesome
Title: Re: Fuel, Scripted
Post by: Chique on 11 05, 2012, 05:18:34 am
What about adding these to the existing "X" gui for easier access?

What? Go to a fuel station and press x > then click refuel my car > etc etc?
No would be more complicated.

But I would try an x gui integration later on, but as for now, it is really very simple to use as I have made it.
Title: Re: Fuel, Scripted
Post by: Genzo on 11 05, 2012, 10:04:12 am
so when this will be added Chique
Title: Re: Fuel, Scripted
Post by: Chique on 11 05, 2012, 01:40:35 pm
so when this will be added Chique

Very soon, just optimizing it, and doing final checks regarding syncing fuels and HUD.
Title: Re: Fuel, Scripted
Post by: pragu on 11 05, 2012, 06:05:21 pm
Chique, How about adding a 911 service in CIT phone in case if someone is stuck without Fuel.....it goes like this

Player cruises with his car and finally finds he has no Fuel
then hits B and brings up the phone and calls the 911 service
then his car is credited with X amount of emergency fuel for a higher cost... :P
Title: Re: Fuel, Scripted
Post by: Genzo on 11 05, 2012, 07:32:16 pm
nah mech refuel it will be bad mapy they do a job like fuel man and there will be fuel can's so
Title: Re: Fuel, Scripted
Post by: Chique on 11 05, 2012, 09:41:25 pm
nah mech refuel it will be bad mapy they do a job like fuel man and there will be fuel can's so

Arran also asked for mechanic refuel, but personally and for my logical reason's I dont support that. So lets see what I can script about that.
Title: Re: Fuel, Scripted
Post by: mectus11 on 11 05, 2012, 09:45:19 pm
Arran also asked for mechanic refuel, but personally and for my logical reason's I dont support that. So lets see what I can script about that.
Maybe Fuel galons that can be in the trunk of the car, maybe having a car inventory to store stuff?
Title: Re: Fuel, Scripted
Post by: Zsolti_HUN on 11 05, 2012, 10:17:05 pm
What? Go to a fuel station and press x > then click refuel my car > etc etc?
No would be more complicated.

But I would try an x gui integration later on, but as for now, it is really very simple to use as I have made it.

No I mean if you have bought a can of fuel, that will appear in the "X" gui, so you don't have to type all those commands.
Title: Re: Fuel, Scripted
Post by: cactus on 11 05, 2012, 10:45:56 pm
I hope that the fuel save when member Quit.
Title: Re: Fuel, Scripted
Post by: Chique on 12 05, 2012, 07:55:15 am
I hope that the fuel save when member Quit.

Ofcourse, the fuel is saved. Or what?
Title: Re: Fuel, Scripted
Post by: Arran on 12 05, 2012, 08:17:21 pm
I don't see why mechanics can't be the ones that have fuel to refill vehicles.
Title: Re: Fuel, Scripted
Post by: Chique on 12 05, 2012, 08:23:45 pm
I don't see why mechanics can't be the ones that have fuel to refill vehicles.

Need to alter Mechanic's aim function over vehicles then, with GUI, 1 - To fix, 2 - to Refill.
But I don't have access to mechanic's job script. So?

But more practical would be, if players can carry their own fuel can as I have suggested.
Title: Re: Fuel, Scripted
Post by: Slayer on 12 05, 2012, 08:56:25 pm
Need to alter Mechanic's aim function over vehicles then, with GUI, 1 - To fix, 2 - to Refill.
But I don't have access to mechanic's job script. So?

But more practical would be, if players can carry their own fuel can as I have suggested.

Or use the X interface so click in the driver (while he's in the car) and he selects how much fuel he wants
Title: Re: Fuel, Scripted
Post by: Chique on 12 05, 2012, 09:34:42 pm
Or use the X interface so click in the driver (while he's in the car) and he selects how much fuel he wants

Bad Idea, :D I did the script to work even better than what you can think, you would have to use space bar to gradual refill the fuel :)


EDIT - Mechanics will be able to refuel... upto 10% :)
Title: Re: Fuel, Scripted
Post by: DragonNoir on 12 05, 2012, 10:36:21 pm
this not good -1