Skip to content

simple bikerental script converted from ESX to QBCore

License

Notifications You must be signed in to change notification settings

shhada/qb-bikerental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qb-bikerental

Rent bikes using qb-target and nh-context/qb-menu, converted from Night_bikes

(first convert ever, pls go easy on me)

Dependencies:

set the price for the bikes in the config (default: $150)

Add to qb-target under Config.Peds (DON'T FORGET TO FILL IN THAT NUMBER):

    [<ADD NUMBER HERE>] = {
        model = 'ig_maryann',
        coords = vector4(-208.46, -1010.08, 29.19, 72.95), -- Alta St
        minusOne = true,
        freeze = true,
        invincible = true,
        blockevents = true,
        scenario = 'WORLD_HUMAN_MUSCLE_FLEX'
        target = {
            options = {
                {
                    type = "client",
                    event = "qb-bikerental:rented",
                    icon = "fas fa-bicycle",
                    label = "Rent a Bike",
                },
            },
            distance = 3.0
        },
    },

If you're using qb-menu instead of nh-context, replace the TriggerEvent to open/create the menu In older versions of nh-context it's 'nh-context:sendMenu', in newer versions it should be 'nh-context:createMenu' In qb-menu it's 'qb-menu:client:openMenu'

TODO

  • add vehicles to config
  • add custom price per vehicle -> tried, breaks a lot of things :/
  • update to latest version of nh-context and qb-menu

About

simple bikerental script converted from ESX to QBCore

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages