thers / FRFuel

Basic fuel system for FiveM
https://forum.fivem.net/t/release-frfuel-v1-1-0/5467
MIT License
71 stars 30 forks source link

New dynamic gas station locations by using a json file to load them on runtime. #25

Closed TomGrobbe closed 6 years ago

TomGrobbe commented 6 years ago

This update changes the way gas stations are created. They are now being loaded from a json file. For each gas station, 1 blip will be created, and you can specify unlimited gas stations and pumps per gas station.

Example json snippet for 1 gas station:

    {
      "coordinates": {
        "X": 263.8948974609375,
        "Y": 2606.462890625,
        "Z": 44.983390808105469
      },
      "pumps": [
        {
          "X": 263.17318725585938,
          "Y": 2606.514892578125,
          "Z": 44.9852409362793
        },
        {
          "X": 265.07391357421875,
          "Y": 2606.89990234375,
          "Z": 44.9852409362793
        }
      ]
    },

The "coordinates" section will decide where the blip should be created (the center of your gas station). and the "pumps" section, can have as many pumps as you want, each having their own x/y/z coordinates.