CIT Forum Index
Ingame Community => News and Updates => Topic started 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.
- GUI as well as Fuel Depletion and Monitoring are Client-sided, to ensure bandwidth. (http://desmond.imageshack.us/Himg443/scaled.php?server=443&filename=fuel1x.jpg&res=landing) The topmost stack is speedometer, with a mix of sci-fi digital and analog combination. The needle turns white > sky > blue gradient with proportional to speed. The next stack consists of damage meter on left, which changes color as green > yellow > orange > red, whereas the right bar is the fuel meter. And the bottom most stack displays current zone name via GPS, and also shows if Engine is Off or On.
- Fuel meter at the bottom of the screen. Indicates current fuel level of the vehicle. (Excludes planes, boats, etc). Also Staffs don't consume fuel. (to edit which teams don't consume, see server type file > "Exclude Team" array).
- Initial fuel on buy a car is 10% so players can't abuse fuel system by selling a car and buying new one to get free fuel.
- Fuel stations located evenly around the map, also blipped with a wheel (probably it resembles music CD) icon. Apart from existing fuel stations around SA, I have added a function which adds custom Fuel stations in places where there isn't a fuel station nearby. Example code -
[92]={1282,1422,11,true,90}
it means a fuel station is added at the coordinate 1282,1422,11 and "true" means it would be blipped on map, and "90" means a fuel station (includes a car-shed type object and 2 non destroy-able pump objects) will be created at 90 rotation. if the 5th parameter is present, it will create the fuel station object, otherwise it will only create the fuel marker, i.e. in case of places where fuel station is already there.
- 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.
- Fuel costs reasonable, at 5$ per 1% fuel, can be changed of course. (to be made dynamic later).
- 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).
- 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.
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.
-
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
-
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.
-
I tested this script, works good. Awesome script imo.
-
I tested this script, works good. Awesome script imo.
Appreciated, thanks.
-
I support this, you had some hardwork put into this script.
This way the criminals can't escape forever >:D
-
I think CIT doesn't need a fuel system.
And this suggestion got rejected manytimes before.
-
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"
-
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.
-
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
-
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.
-
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. ^^
-
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.
-
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!
-
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!
-
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.
-
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 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.
-
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
-
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.
-
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.
-
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
-
I have to agree with cmkilla the fuel system is too much of a hassle.
-
I too agree with you Chique. +1
-
nice Bro :D :D
-
+1 Great idea this will boost the fun of Cops and Robbers as the criminal will eventually run out of fuel.
-
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.
-
Totally support the idea. A question: different cars have a different fuel consumption?
-
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.
-
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 :)
-
Don't screw up the car system anymore. Get out with your fuel.
-
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.
-
Great idea Boss I am always against these fuel systems but this time it sounds more organized
- 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
- 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
-
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 :)
-
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.
-
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.
-
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 + .
-
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.
-
I support this, its realistic makes sever to looks even better.
-
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.)
-
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.
-
Wow, +1 from me. You probably killed your ass working on this, didn't you?
This is awesome tho.
-
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.
-
really cool idea, would love to see this implemented. Although, I hope that at 100% fuel, it would last around atleast 25mins.
-
Wow, +1 from me. You probably killed your ass working on this, didn't you?
This is awesome tho.
Yes exactly... hard work.
-
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
-
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
-
Awesome one....chique super cool job....want to see it implemented in the server soon
-
I love this idea and this need be added to server...
plz add it and all be happy :)
-
Yep. It would be cool to have the fuel system in CIT cz it would increase RP and make the server more real.
-
I do not like the idea
spending more money
and then complain that have no money
-
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.
-
I understand it would look more RPG
as driver's license
-
I think all + voters will regret their vote.
Ps nothing against your hard work Chique. Respect for that
-
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.
-
I wish this would be implemented, nuff said.
-
+1 fromme I liked it tooooooo much and gooooooood work chiq
-
Cool Chique, good skills you got there. Hope it will be added to CIT :D RPish :D
-
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.
-
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.
-
Gee a annoying question :| what was the programming language u used, LUA?
-
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.
-
chique, could u pls send me the mod too...just want to try it out...cant wait till its implemented :|
-
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
-
I like this your idea so very very nice and awesome :) +1
-
Scripted as per requirement.
- Added Damage meter,
- GPS Location
- Speedometer with analog and digital mix.
- Stacked in 3 boxes.
-
so is realy will be added or what ....i dont think this will get the liked realy
-
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.
-
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
-
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.
-
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
-
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?
-
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
-
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.
-
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
-
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
-
I say -1 unless your fuel lasts at least 1 hour of constant driving
-
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.
-
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 ....
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 ???
-
I like this idea from chique
becuase its good and fun :) +1
-
I like this idea.
+1
-
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?
-
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?
-
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.
-
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.
-
veerY nice idea,agreed
-
Script lacks indentation consistency, many lines do not have correct indentation.
Some functions are inefficient, very strange thing to do:
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.
--Exclude Teams (Those who won't deplete their fuel) | Default : Staff
local xcludeTeam={["Staff"]=true}
function excludeTeam()
return xcludeTeam
end
-
I agreed on this idea since I think it brings more RP.
-
Why are you creating variables and tables every single time the functions are called? It's silly.
--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 -
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.
-
(http://desmond.imageshack.us/Himg443/scaled.php?server=443&filename=fuel1x.jpg&res=landing)
i like this
-
+1,good idea,but I think some newbies are going to crash at FuelStation and maybe DM some1.
-
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 >:(
-
Is it already in game?
Because I really want to see it there
-
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!!
-
No, do you think Ill make them explodable? Hell no... they arent destroyable!!
Everything is awesome if you are able to make them undestroyable
-
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?
-
I've posted +1. because Chique maked a perfect script with all the stuff, and it's totally worth for in CIT
-
Ahh, a very nice Idea! Looking forward to see this on the server. Would be awesome
-
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.
-
so when this will be added Chique
-
so when this will be added Chique
Very soon, just optimizing it, and doing final checks regarding syncing fuels and HUD.
-
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
-
nah mech refuel it will be bad mapy they do a job like fuel man and there will be fuel can's so
-
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.
-
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?
-
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.
-
I hope that the fuel save when member Quit.
-
I hope that the fuel save when member Quit.
Ofcourse, the fuel is saved. Or what?
-
I don't see why mechanics can't be the ones that have fuel to refill vehicles.
-
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.
-
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
-
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% :)
-
this not good -1