Giter Site home page Giter Site logo

ejiy / jl-laptop Goto Github PK

View Code? Open in Web Editor NEW
101.0 7.0 61.0 10.04 MB

Laptop script for fivem, that has boosting, darkweb, and bennys shop apps

Home Page: https://justlazzy.gitbook.io/home/free-resources/jl-laptop

License: GNU Lesser General Public License v2.1

Lua 55.91% CSS 0.41% HTML 0.54% JavaScript 0.08% Svelte 37.27% TypeScript 5.79%
fivem fivem-script qbcore fivem-carboosting

jl-laptop's Introduction

Will be back

jl-laptop's People

Contributors

alivemonstor avatar ansljeremy avatar antsuplarts avatar darkets avatar dhawgy avatar ejiy avatar fjamzoo avatar fourztl avatar godyfromdiscord avatar imxirvin avatar itshyper avatar justlazzy avatar justlyy avatar parthxd7 avatar s1lentcodes avatar tonybynmp4 avatar troublenz avatar ushifty avatar xblackattack avatar xviperag 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

jl-laptop's Issues

[SUGGESTION] - Darkweb

Allow some kind of local blip to be displayed for the player who ordered something off the darkweb since there is multiple locations, it allows then to know where to go to get there things. Maybe allow this to be toggled in the config to allow DEVS to choose if they want this to be displayed for the player or not?

attempt to compare nil with number

Hi im trying to start contract but show me this error
image
I check the line and this is code:
image

My RenewPhone is false because im using other phone.

If can be fixed will be perfect <3

Non Accurate Blips Going to Vinewood / Cant Peek At Crate

So when my players order something on the darkweb , it puts a blip in vinewood rather than the actual spot and when the person who bought it goes up to the crate they cant peek at it and seldom that someone else can peek at it rather than the purchaser.

can't get it to work

the moment i add more items, it stops working

Config.DarkWeb.Items = {
    ["laptop"] = {
        name = "laptop",
        price = 100,
        stock = 100,
        category = "hacking",
    },
    ["weapon_assaultrifle"] = {
        name = "AK-47",
        price = 8500,
        stock = 50,
        category = "guns",
    },
    ["armor"] = {
        name = "Body Armor",
        price = "1500",
        stock = 50,
        category = "drugs",
    }
}```

Nil table

the script will not fetch the information i vehicles.lua so i don't get any boosing contracts. will i have to hard code it or can i get the script to read the vehicles.lua????

Add compatibility

Hello, your work on this script is impeccable,
however would it be possible to add compatibility with Qs-inventory?
(Quasar inventory)

Cancel Boost

th laptop needs to have an option to cancel the current contract

Nothing happens after finding and lockpicking the car.

After fixing the date issue with the information found in comments here. I was happy to think I finally had this script working. Was able to join the queue, get a contract, find the car, lockpick the door, lockpick or hotwire the ignition, and then .... nothing. The red circle stays marked where the car was found, I can't run the tracker remover, and it never updates where I am supposed to drop the car off. There are no errors in the server console or logs anywhere.

I don't know if it is related issue but the benny's garage vendor dude never spawns either. I feel like there may be a connection but I don't see anything in the code that would actually suggest it. I can only assume that the script is never triggering the RegisterNetEvent('lockpicks:UseLockpick', function() section in jl-laptop\client\boosting.lua or that maybe since it isn't spawning peds properly it never updates the script with the drop of location? I'm not sure but I have been trying to get this script working for 3 days now and I am at my wits end.

I should add that when I cancel the contract it properly removes it and removes the car from the server even if I'm driving it.

BUG - Tracker Disabler

when pick locking vehicle to take away when I try to use the Tracker Disabler nothing happens :(

Cant get contracts

So ive got no errors in the F8, Also if i give myself a boost todo it works with the command, Just doesnt show up.
ive put the cars in qb-core/shared/vehicles and in local car area.

For example:
local cars = {
["D"] = {
{['model'] = 'asbo',
['name'] = 'Asbo',
['brand'] = 'Maxwell',
['price'] = 4000,
['categoryLabel'] = 'Compacts',
['shop'] = 'pdm',
["tier"] = "D",},

	{['model'] = 'blista',        
	['name'] = 'Blista',                        
	['brand'] = 'Dinka',           
	['price'] = 13000,   
	['categoryLabel'] = 'Compacts',        
	['shop'] = 'pdm',
	["tier"] = "D",},
	
	{['model'] = 'dilettante',    
	['name'] = 'Dilettante',                    
	['brand'] = 'Karin',           
	['price'] = 9000,    
	['categoryLabel'] = 'Compacts',        
	['shop'] = 'pdm',
	["tier"] = "D",},
},

I just don't know what i've done wrong.

Employment and management

Hi, if i compile the website, can i see in my browser employment and management "apps". But not in game. any can help with that?

Gun info is not being added

local function AddItems(stash, Items)
local items = {}

for k, v in pairs(Items) do
    local itemInfo = QBCore.Shared.Items[k:lower()]
	print(itemInfo.info)
    items[#items + 1] = {
        name = itemInfo["name"],
        amount = tonumber(v),
        info = "", -- We need To Add Something here For Weapon Please Help
        label = itemInfo["label"],
        description = itemInfo["description"] ~= nil and itemInfo["description"] or "",
        weight = itemInfo["weight"],
        type = itemInfo["type"],
        unique = itemInfo["unique"],
        useable = itemInfo["useable"],
        image = itemInfo["image"],
        slot = #items + 1,
    }
end

MySQL.Async.insert('INSERT INTO stashitems (stash, items) VALUES (:stash, :items) ON DUPLICATE KEY UPDATE items = :items'
    , {
    ['stash'] = stash,
    ['items'] = json.encode(items)
})

end

Make a check for allowed app

    ['boosting'] = {
        app = 'boosting',
        name = 'Boosting',
        icon = 'boosting',
        useimage = true,
        color = '#f44336',
        background = '#f44336',
        items = 'vpn',
        job = {},
        gang = false, -- it can be boolean or a table {'ballas'}
    },

[SUGGESTIONS]

could be cool i guess?

  • locales for the HTML/JS/svelte part (qb multicharacter did it so why not jl labtop huh)
  • delete the darkweb's crate when it's emptied
  • dynamically add / remove shop's categories depending on the content
    • (basically if you didn't set anything in the config for x or y category just don't show it, and maybe expand that by creating the categories using the names in the config so you just create the ones configured(if that makes sense?))

fetchNui not working

I've created a new app using the documentations instructions and also using the YouTube video, and I still get this error and it's not printing nothing.

CrBrowserMain/ Uncaught (in promise) TypeError: Failed to fetch (@jl-laptop-main/html/js/index.js:4)

image

No contracts after joining queue.

On a fresh qb-core server. Have the laptop itself functioning, and am able to join the Boost queue, however I never receive a contract. I've added 2 cars to each tier and have used a print statement to confirm the "queue loop" is indeed running. the /giveboost command doesnt work either when I do:

/giveboost 1 D blista boosting

Wrong placed ","

Wrong line:
['vpn'] = { ['name'] = 'vpn', ['label'] = 'VPN', ['weight'] = 100, ['type'] = 'item', ['image'] = 'vpn.png',['unique'] = true, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = "Hmm", } <- missing "," at the end

Fixed Line:
['vpn'] = { ['name'] = 'vpn', ['label'] = 'VPN', ['weight'] = 100, ['type'] = 'item', ['image'] = 'vpn.png',['unique'] = true, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = "Hmm" }, <-

Invalid Date Issue - Boosting [v1.0.0][Windows]

Just grabbed the latest release, saw that there were some time fixes pushed already but I am currently getting the following when I join queue on the boosting.

Expires: Invalid date

This shows on all contracts in my queue after updating. No client or server errors posted (although there is a TypeError being posted now that I grabbed screenshots and noticed it). It is running on a windows pc and linux config setting is set to false.

https://cdn.puppetzmedia.com/FPhMd7LC.png
https://cdn.puppetzmedia.com/UfRaRGCX.png
https://cdn.puppetzmedia.com/DQMShYBQ.png

Disabling Tracker Error

When I complete the scrambler hack successful nothing happens expect I get the following error in console

[ script:jl-laptop] SCRIPT ERROR: @jl-laptop/server/boosting.lua:365: attempt to index a nil value

this is line 365

notepad++_c1pSF68qNI

Any suggestions/help would be welcome. thanks

Items are being duplicated in the shops...

The items ordered in the Darkweb or Benny's shop remain in the stash where we retrieved them, and when I take them to my own inventory, I can duplicate the items. Does anyone know the reason for this issue?

Note: I'm using qb-inventory

No contract generating

I am struggling to get the contracts to generate when I join the queue. I have read the recent advice posted on the problems and changed the time and added the cars into the local cars section, but getting this error

image

Which seems to reference this section of code

image

Wondered if anyone else had this issue or has an idea on how to get past it. Currently, I can only manually assign a boost.

[BUG] Known bug

  • It seems like every time the svelte do transition, it will create new empty style on the head tag
  • When you close the boosting app while you joined the queue and you have received 1-2 contracts , it doesn't completely remove the component, it stays there but invisible, idk if its only on my side or no?. Fixed (2fec2fd)

Note: You can comment the bug you've found here, or you can make new issue

Darkweb

I tried to change items in the darkweb config but that doesn't seem to change anything as I'm only getting "sussy items" in the game. When I looked at the code the only thing I found with "sussy items" was in the index.js.

Thank you in advance!

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.