London Studios Documentation
Our StoreSupport PanelYouTube Channel
  • General
    • Documentation
    • Resource Support
    • Downloading Resources
    • Installing Resources
    • Resource Transfers
    • Common Errors
    • Translating Resources
    • Inventory Icons
    • Resource Ideas
    • Integration Requests
  • Vehicles
    • American Rearmount Ladder
      • Setting up
      • Anticheat Issues
    • Advanced Recovery Truck
      • Setting up
      • Anticheat Issues
    • SWAT Vehicle
      • Setting up
      • Anticheat Issues
    • Police Water Cannon
      • Setting up
      • Anticheat Issues
    • British Ladder Truck
      • Setting up
      • Anticheat Issues
    • Tiller Ladder Truck
      • Setting up
      • Anticheat Issues
    • Scissor Lift
      • Setting up
      • Anticheat Issues
    • Car Transporter
      • Setting up
      • Anticheat Issues
    • Water Carrier & Command Unit
      • Setting up
      • Anticheat Issues
    • Water Spray Unit
      • Setting up
      • Anticheat Issues
    • Snow Loader Pack
      • Setting up
      • Anticheat Issues
  • Resources
    • Bike Hire
      • Using the resource
      • Configuring the resource
      • Configuring locations
    • Bomb Disposal Robot (EOD)
      • EOD - How to use
      • EOD - Permissions Check
      • OX_Inventory Integration
      • Other Integrations
    • Car Sale Sign
      • Installation Video
      • Using the resource
      • Configuring the resource
      • Configuring permissions
      • Item Support
    • Congestion Charge
      • Configuring the resource
      • Modifying Zones & Adding Cameras
    • Custom Vinewood Sign
      • Installation Video
      • Sign Setup
    • Decontamination Tent
      • Using the resource
      • Configuring the resource
      • OX_Inventory Integration
      • Other Integrations
    • Directional Spikes
      • Using the resource
      • Configuring the resource
    • Emergency Call Points
      • Using the resource
      • Configuring the resource
    • Fire Supply Line [v2]
      • Using the resource
      • Configuring Fire Supply Line
    • Fire Tools [v2]
      • Using the resource
      • Configuration
      • Permissions, Notifications and Items
      • Item Support
    • Helicopter Rescue
      • Using the resource
      • Configuring the resource
      • Configuring the permissions
      • Configuring locations
    • Mobile Spike
      • Setting up vehicles
      • Misc Configuration Values
      • Permission Checks
      • OX_Inventory Integration
      • Other Integrations
    • Police Grappler
      • Setting up vehicles
      • Misc Configuration Values
      • Permissions, Notifications & Items
      • Item Support
    • Police Shields
      • Using the resource
      • Permissions, Notifications & Items
      • Item Support
    • Rope Rescue Tripod & Basket
      • Using the resource
      • Configuring the resource
      • OX_Inventory Integration
      • Other Integrations
    • Rescue Cushion
      • Using the resource
      • Permissions, Notifications & Items
      • Other Integrations
    • Smart Speed Signs
      • Configuring the resource
      • Adding new locations
    • Smart Airbags
      • Using this resource
      • Permissions & Notifications
    • Smart Bollards
      • Installation Video
      • Configuring the resource
      • Setting up a new set
    • Smart Clamp
      • Permissions, Notifications and Items
      • Item Support
      • Exports and Events
    • Smart Defib
      • Using the resource
      • Defib locations
      • Framework support
      • Setting up blips
      • Chance of success
      • Sound settings
      • Keybind configuration
      • Automatic reset
      • Custom Death Scripts
      • OX_Inventory Integration
      • Other Integrations
    • Smart Drone
      • Using the resource
      • Permission Checks, Notifications & Items
      • Keybinds
      • Item Support
      • Other Integrations
    • Smart Fires
      • Installation Video
      • Putting out fires
      • Fire Alerts
      • Remove Fires Automatically
      • Custom Notifications
      • Automatic Fires
        • Enabling automatic fires
        • Job / Permission Check
        • Adding locations
        • Automatic Fire Chances
        • Other automatic fire settings
      • Commands
      • Command permission checks
      • Editing fire types
      • Editing smoke types
      • Misc configuration values
      • Setting up weapons
      • Area of patrol settings
      • Clock on system
      • Lighter Item & Command
      • Server exports and events
      • Discord logging
      • Society Payments
    • Smart Hose [v2]
      • Using the resource
      • Configuring Smart Hose
    • Smart Matrix
      • Install & Configuration Video
      • OX_Inventory Integration
      • Other Integrations
    • Smart Motorways
      • Using the resource
      • Configuring the resource
    • Smart Signs
      • Configuring the resource
      • Configuring the permissions
    • Smart Speed Cameras
      • Configuring the resource
      • Adding new cameras
    • Smart Taser
      • Using the resource
      • Configuration
      • OX_Inventory Integration
      • Other Integrations
    • Smart Vehicle
      • Compatible Vehicles
      • Free Developer Copy
      • Permission Checks
      • Using a Smart Vehicle
      • Informations for Developers
      • Vehicle Control Menus
    • Police Tracker
      • Setting up vehicles
      • Resource Configuration & Usage
      • Item Support
    • Throw Bag
      • Resource Usage
      • OX_Inventory Integration
      • Other Integrations
    • Vehicle Rescue
      • Using the Resource
      • Permissions, Notifications & Items
      • Copy of Item Support
    • Water Monitor
      • Using the resource
      • Copy of Permissions, Notifications & Items
      • Copy of Item Support
    • Weapon Lanyard
      • Setting up weapons
      • Using the resource
      • Setting up clothing / EUP
Powered by GitBook
On this page
  • Resource Settings
  • Resource Dock Settings
  • Configuring locations
  • Configuring translations
  • Bike Rent Price
  • Framework permissions

Was this helpful?

  1. Resources
  2. Bike Hire

Configuring the resource

Resource Settings

-- Distance to load the bike stations in from
    loadDistance = 200.0,

    accessMachineDistance = 3,

    -- The distance between docks in metres
    distanceBetweenDocks = 2.0,

    useMachineKey = {0, 191},

    -- Key to return the bikes at the end of the rent
    returnBikeKey = {0, 38},

    -- Length of cooldown in seconds
    cooldownLength = 300,

When configuring the resource you will start with the above lines.

Starting with the LoadDistance this is the distance the bike station will load in for on people, and 200.0 is the default value for how far this resource will load in.

The accessMachineDistance = 3, is how far away you can be from the bike terminal to be able to access it to purchase a bike.

distanceBetweenDocks = 2.0, which allows you to choose how far each bike dock will be from one another, by default the docks are 2 meters apart from one another, moving this up will make it further away while making the number smaller will make it smaller.

returnBikeKey = {0, 38}, 38 is the E keybind, which allows you to return the bike to the dock.

cooldownLength = 300, this is how long the resource will wait before allowing the user to reuse the bike terminal.

Resource Dock Settings

-- If a dock is empty for this long, it will automatically recreate a new bike (minute)
replenishAfter = 10,
blipName = "Available Bikes: ", -- This shows how many bikes available at each dock
blipsEnabled = true, -- Global option
blip = 226,
blipShortRange = true,
blipScale = 1.0,
blipColour = 1,
blipDisplay = 6,
animation = true, -- Set to true to have animation when entering machine.

replenishAfter = 10. This indicates how long it will take to restock the docks with bikes. This duration is in minutes, so after 10 minutes, the dock will be automatically recreated, refilling it.

blipName = "Available Bikes: ", this is what the name of the blip on the map will be called.

blipsEnabled = true, this will allow you to enable blips to the docks this is a global option.

blipShortRange = true, this allows you to make it so the blip only shows if you're near the station.

blipScale = 1.0, this allows you to edit the size of the blip on the map.

animation = true, gives you the ability to enable or disable the animation a player plays when entering the bike hire terminal. To disable the animations change the value of true to false.

Configuring locations

Configuring translations

If you need to change the text of any prompts within this resource we have made it easy for you to change this.

    translations = {
        press = "Press",
        machineKey = "INPUT_FRONTEND_RDOWN",
        returnKey = "INPUT_PICKUP",
        toHire = "to hire a bike",
        toReturn = "to return this bike",
        noFree = "~y~Alert~w~: There are no free docks to return this vehicle.",
        noneLeft = "~y~Alert~w~: There are no bikes left.the",
        bikeHired = "~g~Success~w~: You've hired a bike, it is unlocked and you can start using it.",
        bikeReturned = "~g~Success~w~: You've returned the bike, thanks.",
        cooldown = "~y~Alert~w~: You must wait before hiring another bike.",
        insufficientFunds = "~y~Alert~w~: You have insufficient funds.",
        onCooldown = "Cannot rent bike currently."

    },

When changing the translations please only change the text within the quote marks, changing the values will break this script.

Bike Rent Price

After reaching the bottom of the config file you will see a config line saying "costToRent" This allows you to change the price of the bikes. To change the price please change 100 to the value you wish.

Framework permissions

The bike hire resource comes with some default frameworks including vRP, ESX, and QBcore to enable any of these frameworks to change the value of false to true. For example,

    framework = {
        usevRP = false,
        useESX = false,
        useQBcore = false,
    }

If you want to enable QBcore, change 'useQBcore = false' to true. This will activate the QBcore framework. You can also add your code to the sv_utils.lua file if you do not use the base framework money system.

PreviousUsing the resourceNextConfiguring locations

Last updated 1 year ago

Was this helpful?

useMachineKey = {0, 191}, 191 is the enter keybind you can change this to the key you wish. You can use this website

bip = 226, this is the ID of the sprite. You can change this to alter the icon on the game map. You can find the IDs

blipColour = 1, which allows you to change the colour of the blip to configure this you can view the fivem docs

blipDisplay = 6, allows you to change the style of display for the blips. To see the different options you can view the fivem natives by clicking

To configure the locations for new bike hire locations or configure already pre-existing locations please view the page of this resource.

here
here
here
here
Configuring Locations