Documentation
Resources
Electric
Charger Positions

Charger Positions

Long term support for this resource has ceased. Please upgrade to the new Playlolly Drive (opens in a new tab) resource.

To change the EV charger postitions you can edit the .ymap file in Codewalker the file is located here: playlolly-tesla-core/stream/charger/playlolly-tesla-supercharger-map.ymap

You can download CodeWalker here (opens in a new tab).

We would suggest to copy one of our EV Charger locations and adjust the position. You may need to restart your game and fine adjust the location multiple times until you have the desired position. The new file has to be the same name otherwise it wont be loaded.

Adjust the Config

After you saved your new .ymap they should appear in the GTA world, but you will figure out that there is no blip on the map and that it is not able to charge the vehicle.

Thats because you need to adjust the core config file aswell. Located here playlolly-tesla-core/shared/config.lua

First up the Blips: if you want to set a Blip on the map you can add the vector3 coordinates to the list. E.g. if you have a stall with 6 EV Chargers you can create only one blip for it.

config.lua
mapBlipVectors = {vector3(-598.74, -2166.83, 5.99), vector3(-1006.07, -1641.55, 4.56),
                          vector3(-2077.59, -298.51, 13.28), vector3(-50.87, -1764.61, 29.09)},

Now that you have the Blip set up we need to set up the charging logic. You can do that under the mapSuperchargerVectors section here you have to add every single EV charger so that it can charge your vehicle. Also if you wish to remove any EV charger you have to remove them here. You can also add them by adding the vector3 from CodeWalker.

config.lua
mapSuperchargerVectors = {vector3(-1011.788, -1648.002, 3.459426), vector3(2660.593, 3264.599, 54.24057),
                                  vector3(2664.354, 3262.566, 54.24057), vector3(-2539.343, 2349.581, 32.05991)},