[RELEASE][FREE] RY-RENT | Vehicle Rental with UI, Timer and more

UPDATE - 31/07/2022

  • Timer Added - Image.
    Can be possible to disabled this option in config.

Download - Github

As always! regular Updates!!! Thank you so much for that.!!!

1 Like

hey is there a way to set the automatic vehicle despawn so that it counts the time when he gets out of the car?

1 Like

Hello NotSoSmart,
currently the script works like this:

When the rental time runs out and if the player is in the rented vehicle, the vehicle will be eliminated x time after the time expires, configurable in the config
['delete_time'] = 25000, -- time in MS that vehicle will be deleted if delete function is active and after time is finished. Default 25000MS | 25Seconds.

If the time runs out and the player is not in the vehicle, the vehicle will be eliminated as soon as the time is up.

But yes, in the next update I can put an option for your idea!

2 Likes

can’t we add more then one rent point ?

i tried with your example and it gets errors

Hello hasidu,
yes it is possible to add more than one! I tested it now, because there could be a bug but everything is working. Can you show me your config?

1 Like

Good release, keep working with awesome scripts :muscle:

1 Like

Its compatible with QBcore ??

Not at this moment. But in the future maybe! :smiley:

1 Like

dam, nice script, can you make this standalone? im using VRP, thanks anyway.

1 Like

Sure! Next update will be standalone, which will be released today probably

1 Like

Hello bro! This looks very nice! But i think the script will be little more real if you dont have a time and the car crash, It should be cool if it cost money in every more minute you drive the car and then you can write like /stop in chat and the car will be gone

1 Like

I pointed out the suggestion, and thanks for the feedback!

1 Like

nice one ,

but HOW TO add multi markers and blips ?

1 Like

Hello,
You have a example in config “Other Example”

Config.Locations = {
    ['lossantosavenue'] = { -- name of the location, you can put whatever you like.
        coords = vector3(-1027.47,-2743.46,20.16), -- coord for the menu.
        spawn_coords = {x =-1024.80, y =-2734.81, z=20.09, h=243.77}, -- coord where vehicle will spawn.
        return_coords = vector3(-1032.65,-2732.00,20.16), -- coord for return the vehicle.
        markers = {
            spawn = {
                key = 38, -- key to open the menu. Default E
                type = 2, -- type of marker.
                size  = {x = 0.3, y = 0.3, z = 0.3},  -- size of marker.
                color = {r = 255, g = 255, b = 255},  -- color of marker.
                text = '[ ~g~E~w~ ] Rent Vehicle', -- text of marker.
                text = '[ ~g~E~w~ ] Rent Vehicle' -- text of marker.
            },
            return_spot = {
                key = 47, -- key to open the menu. Default G
                type = 2, -- type of marker.
                size  = {x = 0.3, y = 0.3, z = 0.3},  -- size of marker.
                color = {r = 255, g = 0, b = 0},  -- color of marker.
                text = '[ ~r~G~w~ ] Return Vehicle' -- text of marker.
            }
        },
        blips = {
            spawn = {
                name = 'Rent Vehicle', -- name of the blip in map.
                sprite = 523, -- sprite of the blip.
                scale = 0.8, -- scale of the.
                color = 2 -- color of the. 
            },
            return_spot = {
                name = 'Return rented Vehicle', -- name of the return blip in map.
                sprite = 523, -- sprite of the return blip.
                scale = 0.8, -- scale of the return blip.
                color = 4 -- color of the return blip. 
            }
            
        }
    },
    -- Other Example --
    -- ['location2'] = { -- name of the location, you can put whatever you like.
        -- coords = vector3(244.65,-1569.90,29.12), -- coord for the menu.
        -- spawn_coords = {x =234.39, y =-1575.83, z=29.12, h=113.38}, -- coord where vehicle will spawn.
        -- return_coords = vector3(221.32,-1583.36,29.14), -- coord for return the vehicle.
        -- markers = {
          --   spawn = {
           --      key = 38, -- key to open the menu. Default E
            --     type = 2, -- type of marker.
            --     size  = {x = 0.3, y = 0.3, z = 0.3},  -- size of marker.
            --     color = {r = 255, g = 255, b = 255},  -- color of marker.
             --    text = '[ ~g~E~w~ ] Rent Vehicle' -- text of marker.
            -- },
            -- return_spot = {
             --    key = 47, -- key to open the menu. Default G
             --    type = 2, -- type of marker.
             --    size  = {x = 0.3, y = 0.3, z = 0.3},  -- size of marker.
              --   color = {r = 255, g = 0, b = 0},  -- color of marker.
              --   text = '[ ~r~G~w~ ] Return Vehicle' -- text of marker.
            -- }
        -- },
        -- blip = {
          --   name = 'Rent Vehicle', -- name of the blip in map.
          --   sprite = 523, -- sprite of the blip.
          --   scale = 0.8, -- scale of the.
          --   color = 2 -- color of the. 
       --  }
    -- },
}

can u make update for giveback money after giveback vehicle?

1 Like

Yes! A new version is coming in a few days with many new things

UPDATE - 01/11/2022

  • Improved code and easier to read and understand.
  • Added option to choose vehicle color.
    The colors can be configured in “html/js/config.js” and each one has its price and with a maximum of 10 colors.
  • Now each location has its vehicles.
  • Added option to refund when delivering the vehicle on time.
    in config “refundMoneyWhenDelivered” default true (Thank you kevinindy2k for the suggestion)

Need Help? Join my Discord Server

adding timeRent for each vehicle

1 Like