Git Product home page Git Product logo

frfuel's People

Contributors

a-sith avatar disquse avatar plunkettscott avatar themonthofjune avatar thers avatar tomgrobbe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

frfuel's Issues

Fuel Not Leaking

I've noticed that this mod does not respect fuel leaks... Fuel starts leaking from (at least a car) vehicle when the tank's health is below 700.

Reduce the number of gas station ?

Hey there, I look at your script which is amazing and I ask myself how can I reduce the number of gas station on the map because it's make too much blips and I want something more clean ! @thers

Ultra Wide Monitor support

Hi!

When using an ultra wide monitor (21:9), GTA will keep the radar in the old (16:9) location. Could you create support for the same thing in this script?

#Example:
image

Thanks

Manual refuel seems to not trigger event "addedFuel"

Hello mate,

When using AddEventHandler("frfuel:addedFuel") , it works in a vehicle but it doesnt work with manual refuel (with petrol can).
Can you confirm and if it's possible, fix it ?

Thanks a lot for your work !

problem with exports..

when i trying to do

local fuelLevel = exports.frfuel:getCurrentFuelLevel()
exports.frfuel:addFuel(42.5)
exports.frfuel:setFuel(65)

i get an error no such export

Unable to use built DLL

Hey @ridersx,

First, thanks for sharing your code! I didn't realize we could even use C# until you posted the to teh forums.

I'm having issues using a DLL I've built locally. The GTA V client, when connecting to the server fires off a not calling parent constructor .ctor() error (Sorry for not having the exact error message, I'm on another machine at the moment).

Would it be possible for you to elaborate a bit more in the README with info on how you've setup VS to work? Where did you get the nativeui.net.dll dll?

Thanks again for this. <3

--mark

Comet5 Fuel Consumption (Maybe others)

Comet5 Fuel consumption is insanely high! The Comet2 is more reasonable but for some reason the Comet5 appears to consume 1% per Tick even when idling and it acts like it has a 1 liter tank.

I would imagine that even with the calculations the tank size of the two vehicles would be similar. The Comet5 actually appears to be a less powerful vehicle than the Comet2 which makes this more confusing.

Compatibility with VehicleControl

Since the last FiveM update, FRFfuel needs to be restarted when connected to run, the error is :

fx::TestScriptHost::InvokeNative: execution failed: Error executing native 0x5a039bb0bca604b6 at address 0x1409ccfd2.
Failed to instantiate instance of script FRFuel.FRFuel: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Value does not fall within the expected range.

When vehicle get out of gaz it doesn't stop

When tank fuel is empty, the vehicles can be driven, fuel tank management has no impact on speed when it becomes low, and no imapct on driveable aspect when it get empty.

[Suggestion] Add Sputter Config Option

The engine sputtering at low fuel levels is way to excessive in my opinion, since it literally locks the wheels and can make the vehicle drive backwards... I'd like an option in the config to simply disable this feature.

How can I translate?

Hello,

How can I translate the mod, I do not understand much of C #, I opened the project in visual studio but I can not compile!

Modified code:
` public static PointF GetSafezoneBounds()
{
float t = Function.Call(Hash.GET_SAFE_ZONE_SIZE);

        return new PointF(
          (int) Math.Round((1280 - (1280 * t)) / 2),
          (int) Math.Round((720 - (720 * t)) / 2)
        );
    }

    /// <summary>
    /// Change instructions for engine cut off
    /// </summary>
    public void InstructTurnOffEngine()
    {
        buttons.CallFunction("CLEAR_ALL");
        buttons.CallFunction("TOGGLE_MOUSE_BUTTONS", 0);
        buttons.CallFunction("CREATE_CONTAINER");

        buttons.CallFunction("SET_DATA_SLOT", 0, Function.Call<string>((Hash) 0x0499D7B09FC9B407, 2, (int) Control.VehicleHorn, 0), "Desligar motor");

        buttons.CallFunction("DRAW_INSTRUCTIONAL_BUTTONS", -1);
    }

    /// <summary>
    /// Change instructions for refueling and engine spin up
    /// </summary>
    public void InstructRefuelOrTurnOnEngine()
    {
        buttons.CallFunction("CLEAR_ALL");
        buttons.CallFunction("TOGGLE_MOUSE_BUTTONS", 0);
        buttons.CallFunction("CREATE_CONTAINER");

        buttons.CallFunction("SET_DATA_SLOT", 0, Function.Call<string>((Hash) 0x0499D7B09FC9B407, 2, (int) Control.Jump, 0), "Reabastecer");
        buttons.CallFunction("SET_DATA_SLOT", 1, Function.Call<string>((Hash) 0x0499D7B09FC9B407, 2, (int) Control.VehicleHorn, 0), "Ligar motor");

        buttons.CallFunction("DRAW_INSTRUCTIONAL_BUTTONS", -1);
    }`

fuel not syncing when players inside vehicle

Sometimes it happens that when i go to refuel vehicle to gas stations and other players are inside my vehicle while i refuel it.. when i get back into vehicle, fuel is reset to the players state and not the refueled state..
it's like that it doesn't refuel when other players are inside vehicle during refuel

Allow control from other resources

I apologize if this is not the place for feature requests.

I would like to see a couple additional events that would allow access from other custom scripts. I am writing a roadside assistance script and we use frfuel. I would like to have an AI Ped drive out to the player and fill their vehicle with fuel if they ran out. Please let me know if you need some additional information.

frfuel:currentfuel -> (amount: float) - Checks current fuel level.
frfuel:addfuel -> (amount: float) - Allows adding fuel.

Missing frfuel.net.dll

Hello, there seems to be a file missing "frfuel.net.dll".
As stated in the __resource.lua below:
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' files { "config.ini", "Newtonsoft.Json.dll", "GasStations.json" } client_script "frfuel.net.dll"

I am unable to find "frfuel.net.dll".
Which causes an error upon trying to join the server.

Installing issues.

Hey, I'm having some installing issues with this script. it won't work. I'll show some screenshots of my
screenshot_15
screenshot_16
screenshot_14

installation.

Move gas stations locations to JSON config

As in, now they all are hard-coded into source code. JSON was chosen as we have gas stations and they have refuel locations in it, so kinda nested structure and we can't support it nicely with our current ini-like config thing.

P.S.: This is just to make it clear we're working on it as we dicussed it with @TomGrobbe privately later.

Errors FRFuel.cs compiling

I have many error on compiling with Visual Studio Pro 2015:

Erreur CS1043 { ou ; attendu FRFuel.cs 51 Actif
Erreur CS1513 } attendue FRFuel.cs 51 Actif
Erreur CS0161 'FRFuel.LastVehicle.get'ย : les chemins de code ne retournent pas tous une valeur FRFuel.cs 51 Actif

Line 51 : protected Vehicle LastVehicle { get => lastVehicle; set => lastVehicle = value; }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.