Giter Site home page Giter Site logo

qb-busjob's Introduction

qb-busjob

Bus Job For QB-Core

License

QBCore Framework
Copyright (C) 2021 Joshua Eger

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>

qb-busjob's People

Contributors

aj-devs avatar ansljeremy avatar demo4889 avatar dexter9006 avatar fanttomas avatar fpaiva36834 avatar ggfto avatar ghzgarage avatar i-kulgu avatar iboss21 avatar idrisdose avatar jay-fivem avatar los823ki avatar newtonzz avatar notaestheticallyducko avatar s33g avatar stoneop avatar suelthedev avatar theilleniumstudios avatar tom-osborne avatar tomboru avatar tonybynmp4 avatar z3rio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qb-busjob's Issues

qb-busjob after the first mission dont work more

So after you do the job of Bus, you deliver the bus and when u take him back the busjob dont work anymore, the npc missions dont show anymore, and gets an error on qb-busjob/client/main.lua:188 attempt to index a nil value (field '?' )

not working

the ped's don't get in, and it pays when you get to the stop not the drop off.

Attempted Exploit

i downloaded your busjob, added it to my qb folder in my test server and no errors at all. but everytime i try go city services and apply for bus job it kicks me from my own server and says attempted exploit. no errors in console either.

all my core etc are updated

[BUG]

When finished all the blips, it gives an error and no locations are added, even if I take another bus.
The error is this one:
image

f8 error with qb-busjob with fresh install?

doens't make any sense i didnt edit anything :/

SCRIPT ERROR: @qb-busjob/client/main.lua:278 attempt to index a nil value (field 'job')

CreateThread(function() local inRange = false local PolyZone = CircleZone:Create(vector3(Config.Location.x, Config.Location.y, Config.Location.z), 5, { name="busMain", useZ=true, debugPoly=false }) PolyZone:onPlayerInOut(function(isPointInside) local Player = QBCore.Functions.GetPlayerData() local inVeh = whitelistedVehicle() if Player.job.name == "bus" then if isPointInside then inRange = true CreateThread(function() repeat Wait(0) if not inVeh then exports["qb-core"]:DrawText(Lang:t('info.busstop_text'), 'left') if IsControlJustReleased(0, 38) then BusGarage() exports["qb-core"]:HideText() break end else exports["qb-core"]:DrawText(Lang:t('info.bus_stop_work'), 'left') if IsControlJustReleased(0, 38) then if (not NpcData.Active or NpcData.Active and NpcData.NpcTaken == false) then if IsPedInAnyVehicle(PlayerPedId(), false) then BusData.Active = false; DeleteVehicle(GetVehiclePedIsIn(PlayerPedId())) RemoveBlip(NpcData.NpcBlip) exports["qb-core"]:HideText() break end else QBCore.Functions.Notify(Lang:t('error.drop_off_passengers'), 'error') end end end until not inRange end) else exports["qb-core"]:HideText() inRange = false end end

Bus Already Out Issue

After returning the bus and taking another one out, it states I already have a bus out (duh) and the route doesn't load. Issue still happens even after returning the newly spawned bus.

feature request

is it possible to return the bus mid-route and if possible could i suggest/request that feature

[BUG] Attempt to index a nil value (field 'job')

When i restart the server and try to go in the server i get the error below.
Without restarting the script i cant take a bus out or enter the menu.

If i restart the script with restart qb-busjob everything looks fine and works fine without any errors

Screenshots
Schermafbeelding 2022-07-21 210005

Questions (please complete the following information):

  • When you last updated: Today
  • Are you using custom resource? which ones? qb-target
  • Have you renamed qb- to something custom? no

Trying to return bus

When trying to return a bus I get a notification telling me that I must drop everyone off. I've gone to multiple stops making sure I dropped everyone off and it still will not let me return the bus.

[BUG]

When i try to spawn in the bus, it doesn't spawn at all. No errors

qb-busjob will not start

When we try to go to the bus depot to start the job, the menu never appears where it supposed to. F8 shows this error:
if Player.job.name == "bus" then

Shared/jobs.lua shows "bus" established as a job. /job for player shows "Bus grade driver duty true". I just can't figure out what is causing this error. Thanks.

JOB ISSUES

when you log in if you have the garbage job, the npc does not show up unless you go and get the job again or restart the script, also getting a attempt o index nil value (field 'job') this is with updated qb-core
unknown

[Suggestion]

players can take an infinite number of cars without collateral, as on garbage trucks, in practice 7-10 players completely blocked traffic in the city, if players have such an opportunity, they will definitely take advantage of it
screenshot40

I can convert it to QB

I've noticed it's been here for a while. I don't mind using this as my first full conversion script - I need the experience anyway. Does anyone have any plans for it otherwise?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.