[Release] ESX Bike Rental v5

Same for me. No visible marker somehow. And a error calling a nil statement in the client.lua

On this rule:

DrawMarker(Config.TypeMarker, Config.MarkerZones[k].x, Config.MarkerZones[k].y, Config.MarkerZones[k].z, 0, 0, 0, 0, 0, 0, Config.MarkerScale[k].x, Config.MarkerScale[k].y, Config.MarkerScale[k].z, Config.MarkerColor[k].r, Config.MarkerColor[k].g, Config.MarkerColor[k].b, 100, 0, 0, 0, 0)

Have you already found a fix for the invisible marker? I have the same problem.

Hi AfroSjaak

What i did was:

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        for k in pairs(Config.MarkerZones) do
			DrawMarker(27, -246.980, -339.820, 29.98, 0, 0, 0, 0, 0, 0, 2.000, 2.000, 0.500, 0, 255, 255, 100, 0, 0, 0, 0)
			DrawMarker(27, -1085.78, -263.01, 36.80, 0, 0, 0, 0, 0, 0, 2.000, 2.000, 0.500, 0, 255, 255, 100, 0, 0, 0, 0)
			DrawMarker(27, -1262.36, -1438.98, 3.45, 0, 0, 0, 0, 0, 0, 2.000, 2.000, 0.500, 0, 255, 255, 100, 0, 0, 0, 0)
			DrawMarker(27, 317.37, -215.00, 53.18, 0, 0, 0, 0, 0, 0, 2.000, 2.000, 0.500, 0, 255, 255, 100, 0, 0, 0, 0)
			DrawMarker(27, 1854.41, 2614.73, 45.07, 0, 0, 0, 0, 0, 0, 2.000, 2.000, 0.500, 0, 255, 255, 100, 0, 0, 0, 0)
			DrawMarker(27, 192.45, -860.06, 30.59, 0, 0, 0, 0, 0, 0, 2.000, 2.000, 0.500, 0, 255, 255, 100, 0, 0, 0, 0)
			DrawMarker(27, -62.14, -1098.9, 25.52, 0, 0, 0, 0, 0, 0, 2.000, 2.000, 0.500, 0, 255, 255, 100, 0, 0, 0, 0)
			DrawMarker(27, 223.38, -1395.12, 29.6, 0, 0, 0, 0, 0, 0, 2.000, 2.000, 0.500, 0, 255, 255, 100, 0, 0, 0, 0)
		end
    end
end)

In the Client.lua instead of their draw marker. Please note that you have to configure the markerzone, and the zone of entering the rental zone differently in server.lua and in client.lua

Thats a bad method tho you dont check if they are in range, and you ruin the performance that way :slight_smile:

Hello everyone,. as I disable or remove the option that you necessarily need to return the bicycle to be able to rent / buy another one.

Hi i have an error in the console :


And with this error i cant see the markers, please someone know why this error appears ?

How to add chat command to spawn bikes?

@ XxFri3ndlyxX Can you send me that version you released?

Yeah, same issue…

For anyone else this may help. For some reason, the script didn’t like the callbacks to the config file for MarkerScale[k] and MarkerColor[k] and I’m not sure why. It call matched up.

I just manually replaced the values with the respective numerical values and it works great.

Replaced:

DrawMarker(Config.TypeMarker, Config.MarkerZones[k].x, Config.MarkerZones[k].y, Config.MarkerZones[k].z, 0, 0, 0, 0, 0, 0, Config.MarkerScale[k].x, Config.MarkerScale[k].y, Config.MarkerScale[k].z, Config.MarkerColor[k].r, Config.MarkerColor[k].g, Config.MarkerColor[k].b, 100, 0, 0, 0, 0)

With:

DrawMarker(1, Config.MarkerZones[k].x, Config.MarkerZones[k].y, Config.MarkerZones[k].z, 0, 0, 0, 0, 0, 0, 1.001, 1.0001, 0.300, 0, 0, 255, 200, 0, 0, 0, 0)

3 Likes

cant find it, removed?

I can’t see the marker why?

This fixed my issue, thanks!

1 Like

use my version if you want, i fixed all bugs and added more features

https://github.com/GMA950/esx_bike-rental

2 Likes

I keep getting this error and the circle is not showing

It does allow me to open the menu though

Modify these lines in config.lua
image

Modify this line in client.lua

I dont see the circle

how to set prices and have them stick ? in the warmenu?

how i can add custom bikes