#not-cw-support-fivem-talk

1 messages · Page 1 of 1 (latest)

sonic echo
#

this is for the cw-vending. what am i supposed to change?

stark quail
sonic echo
sonic echo
#

okay soo. I have the qb-adminmenu & when i try to do /admincar or select “buy” from the admin menu on a custom car that i put in, it says “you can’t store this vehicle in your garage”
-All vehicles are in vehicles.luv correctly
-and it worked before we switched over to the newest version of qb (nothing was touched) i think some other people had this issue as well & i’m not sure what to do

thorn spoke
#

So is it for all cars, or just custom cars?

sonic echo
#

Just custom. It worked fine the whole time in the old version, but we switched over to the updated one & it doesn’t work

thorn spoke
#

Does the shop work?

#

like the vehicle shop

sonic echo
#

Yeah, when i buy a custom car from pdm, it sets as owned & allows me to store it in the garage which is weird

thorn spoke
#

in the vehicles.lua do a search for
['hash'] = `

#

and make sure it has the same number as ['name'] = '

#

We had this issue when one of our hashes was a ' instead of a `

sonic echo
#

Kk checking now

#

what do you mean by same number? i'm sorry

#

this is what it looks like

thorn spoke
#

at the top, where you searched it will look like this

#

if the last number there differs you have a hash that's wrong

sonic echo
#

oh okay. yes it does

#

have the same number ^

thorn spoke
#

Oh hmmmm

#

Did you also update qb-adminmenu?

sonic echo
#

yes, but i just removed it and added it again from github. i'll try again

thorn spoke
#

I assume the custom cars are added into the vehicles.lua also?

sonic echo
#

still doesn't work with the updated qb-adminmenu

#

and yes they are added

thorn spoke
#

Could you hop into voice chat? a screenshare might make this easier to debug

#

one sec

sonic echo
#

does anyone know why i can’t see my character in qb-multicharacter. I see all the information when I select it, just not the character. Looks like this:

limber quest
#

No clue about this one honestly, My guess would be some compatibility problem between newest qb-core and this version of multicharacter maybe

thorn spoke
#

My first guess would be to check the vector of the character and the camera

limber quest
#

Oh yea that would be a much more simple thing that could have gone wrong 😄

craggy estuary
#

Does anyone have experience with custom cars and qb-vehicle shop? I added a Bugatti veyron in and while I've added it to share/vehicles.lua end entitylist and am able to spawn it using admin menu. But /admincar returns unable to store vehicle in garage.

craggy estuary
#

Eyyo.

#

car with hash and info along with message from admincar.

humble narwhal
#

have u added it to dealer ship

craggy estuary
#
    ---imports
    ['bugatti'] = {
        ['name'] = 'Veyron',
        ['brand'] = 'Bugatti',
        ['model'] = 'BUGATTI',
        ['price'] = 120000,
        ['category'] = 'import',
        ['hash'] = 'veyron',
        ['shop'] = 'luxury',
    },```
humble narwhal
#

send me the file

craggy estuary
#

[-1444047101] = 'veyron',

#

okay

humble narwhal
#

thanks

#

can u send the car file too

craggy estuary
#

entire thing or just meta like above?

#

and entity hashes

humble narwhal
#

fixed

#

just tryed in my server and works fine now

craggy estuary
#

Alright. Lemme test. What was the error if I can ask

#

This way I know for later

humble narwhal
#

u had VEYRON in wrong place

craggy estuary
#

same error still

humble narwhal
#

thats wired u getting any errors in f8

craggy estuary
#

nada

#
[     52078] [b2699_GTAProce]             MainThrd/ Script initialization finished.
[     52468] [b2699_GTAProce]             MainThrd/ Finished connection logic
[     52765] [b2699_GTAProce]        CrBrowserMain/ Uncaught TypeError: Cannot read property 'focus' of null (@game/ui/root.html:108)
[     71968] [b2699_GTAProce]             MainThrd/ 
[     75437] [b2699_GTAProce]             MainThrd/ 
[     77609] [b2699_GTAProce]             MainThrd/ [Backitems]: Starting Loop
[     95125] [b2699_GTAProce]             MainThrd/ 
[     96078] [b2699_GTAProce]             MainThrd/ 
[     98578] [b2699_GTAProce]             MainThrd/ 
[    115375] [b2699_GTAProce]             MainThrd/ 
[    115593] [b2699_GTAProce]             MainThrd/ 
[    115781] [b2699_GTAProce]             MainThrd/ 
[    115968] [b2699_GTAProce]             MainThrd/ 
[    118250] [b2699_GTAProce]             MainThrd/ ```
#

last few lines of F8 log

#

wonder if its just the car being stupid then.

#

shows up properly under admin spawn

#

just wont let me garage it lol

#

cant do buy in menu either

humble narwhal
#

if that dont work not too sure

craggy estuary
#

Okay lemme try

humble narwhal
#

ok

#

@craggy estuary did u buy the car before u try putting it in garage

craggy estuary
#

isnt that what admincar does? buys the car, same for adminmenu

humble narwhal
#

if u spawn it in the got to vehicle bit in admin menu and click buy

craggy estuary
#

Yeah it gives the same result

humble narwhal
#

will it not let u buy

craggy estuary
#

tbf im realizing im not seeing import category at dealership either now

#

nope wont let me buy

humble narwhal
#

send me the vehicle shop file

craggy estuary
humble narwhal
#

try that

craggy estuary
#

so it wasnt that, it turns out i never had import under the actual luxury shop, i had it under PDM and that screwed it all up

#

still wont give me admincar through command but if i buy it at luxury it stores and works as is

thorn spoke
craggy estuary
thorn spoke
#

Yeah, having any error in the vehicle files breaks it

#

just swap you ticks to ` (or ´ i cant remember) and it should work
for the hash line

craggy estuary
#

ahh makes sense, ill go ahead and configure it tomorrow when i get up then. definitely good to know

thorn spoke
#

You can also fin WHERE it breaks cause it will break FROM the line. So if you dont have the right ticks at one car, any car above that will work

craggy estuary
#

awesome info to know for sure,

#

secondary thing, i posted in raidjob as well but it seems none of the cases are interactable for it

#

i had 3 others testing earlier and even with casekey it wouldnt access it for any of the jobs

crystal pecan
#

Hello, Im testing the script and have changed the coords for the boss ped

#

But nothing is happening

thorn spoke
#

Did you restart the script?

#

the old boss will stick around also, if you don't restart qb-target (or restart the server) after you do restart cw-raidjob

crystal pecan
thorn spoke
#

Also, if you downloaded the script before like 10 minutes ago you should get the new version haha

#

Just fixed a major issue (hopefully)

thorn spoke
crystal pecan
#

So when i restart qb-target the cw-boostjob turns off

crystal pecan
thorn spoke
#

yes

thorn spoke
crystal pecan
#

Not working, No ped

thorn spoke
#

oh wait cw-boostjob

#

sorry

#

hmm

crystal pecan
#

not working

#

no ped

thorn spoke
#

try another pedmodel

#

prefferably one that old

#

and i would also reccomend TPing to the coord, so you know it's the correct one

#

And try to check the z axle if it's spawning them to far down/up

crystal pecan
#

Yes i know all that stuff🙃 Its just super wierd couse what i do its not working

#

Ima try to restart sever

thorn spoke
#

Try using a V4 instead of a V3

crystal pecan
#

Already do

thorn spoke
#

In your image it's a v3

crystal pecan
#

what?

#

vector3 ?

thorn spoke
#

yeah

crystal pecan
#

from default its vecktor4

thorn spoke
#

Yeah default is vector4

#

your image shows a vector3

crystal pecan
#

ohh yes but i changad it

thorn spoke
#

And you're getting no errors in console or server side?

crystal pecan
#

Stil now working

thorn spoke
#

Working fine for me

#

(ignore the wrong name, on our local server the folder still has the working-name)

crystal pecan
#

He is there at the normal coord

thorn spoke
#

normal coord is in the water? whatcat

crystal pecan
#

YEs but i have a map mod🙃

#

But the target dont work on him

thorn spoke
#

do you have a swap token?

crystal pecan
#

Now i have

#

Do work

thorn spoke
#

Can you check under ground if he's placed under something?

#

with your new coords

crystal pecan
#

Yes

thorn spoke
#

the spawn does the -1 already, so you only need to copy the exact coordinates of your character to put him where you want him

crystal pecan
#

No ped under the ground

#

This i so wierd lol

thorn spoke
#

If you open f8 console and do "restart cw-boostjob"

crystal pecan
thorn spoke
crystal pecan
#

at the old coord?

thorn spoke
#

yeah the one thats in the water for you

crystal pecan
#

Yes

thorn spoke
#

Huh

#

Are you sure you're editing the correct file?

limber quest
#

(and saved the changes)

thorn spoke
#

Cause it seems like what you're editing is not being pushed to the server

crystal pecan
#

Yes its so wierd

#

Mabey i have to clear server cache

limber quest
#

god would know both me and coffee and forgotten to press ctrl+s more than once, I also wonder if qb-target:spawnPed takes a vector3 ? can't find it's documentation atm 😄

thorn spoke
#

"WHY ISNT THIS WORKING"

#

"oh i forgot to save 😇 "

thorn spoke
limber quest
#

yea some are just you know.. difficult to work with and needs a heading it seems

#

also, this

thorn spoke
#

(cause lord knows i've done that one so many times)

crystal pecan
#

nop, Not what i can find hehe

#

well omg, hahaha

#

im so fkn dum

thorn spoke
#

hahahaa

crystal pecan
#

JUst remeber that i have tested this script before

limber quest
#

yea no worries.. we have both done that too.. I have 3 resource folders..

thorn spoke
#

I got 5 pepeCool

crystal pecan
#

lol

crystal pecan
limber quest
#

but hey at least it's figured out and hopefully it will work now 😄

thorn spoke
#

also what map mod you using?

crystal pecan
#

I have liberty city bu math and unclejust or what he is called

thorn spoke
#

The one that costs money?

crystal pecan
thorn spoke
#

Is it fixed up yet? I remember back when it was free it was barely playable

#

like you couldnt walk up stairs

crystal pecan
#

Yup. So much stuff is fixed

#

Stairs and everything

#

Interiors

#

mlos etc

#

So wee are making a swedish server with it🙃

thorn spoke
#

Damn. Cool. Really wanted to try it out but now that it costs money it's just uuuugh.

crystal pecan
#

Yes true

#

feal free to join my local if you want to test

thorn spoke
#

I might hit you up later, gotta do some actual work rn haha

crystal pecan
#

Yes

#

BTw

#

what is CivilianPositions?

thorn spoke
#

It's used if you want to randomize positions civilians are placed at

crystal pecan
#

Ahh okay, but what does the Civilian do?

thorn spoke
#

Just what model is used

#

and I think what animation they got

#

so for example, you can have 3 civs and 20 positions

#

and each time you run the job they will have a random location

#

same as guards

crystal pecan
limber quest
#

They just don't have weapons and will flee etc 🙂 so it's just if you wanna set up people that aren't guards 😄

crystal pecan
#

Then i dunderstand

#

thanks for the help!

thorn spoke
limber quest
#

so god damn violent!

crystal pecan
#

What item do i need to get in to the vehicel to steal?

thorn spoke
#

A lockpick

crystal pecan
#

For some reason my lockpick is fucked

#

nothing is happening

thorn spoke
#

Is your qb old?

crystal pecan
#

Nop

#

New

thorn spoke
#

No idea then. That's deffo outside our script that it's broken haha

crystal pecan
#

Yup

crystal pecan
thorn spoke
#

i would assume so yeah

#

I have never messed with it

crystal pecan
#

Ohh. Its wierd couse it should work from the beginning

#

Mabey i have to change export to my lockpick minigame

thorn spoke
#

If you have another lockpicking minigame that could be messign with it yeah

crystal pecan
#

i have something called qb-lockpick

#

but i have never used that

thorn spoke
#

That one seems to be part of Qb-Core

#

so it came with the server set up

crystal pecan
#

Like i have all the code in qb-vehiclekeys and qbcore but nothing is happening

young pelican
#

any of the cute devs around!?

#

i have a QUICK question!

#

The shared lua from the cw-raid is.. off? i could be fucking stupid lmao. But, i am sure, that the meth_cured is cut off?

thorn spoke
#

Cute dev here peepoCute

young pelican
#

hey cutie!
Check it out 🙂

#

feel free to delete

#

after

#

if you're free, i came into general, don't worry, i won't talk ya ear off, i feel it's easier to debug over voice!

thorn spoke
#

Ooh you mean in the readme

#

Yes you are correct

young pelican
#

yas!

thorn spoke
#

Good catch

young pelican
#

im kidding, no worries, anyone could've complained, i am simply more persistent!

#

:p

thorn spoke
#

fixed 🔧

young pelican
#

just saw it, thanks cutie pie! keep up the great work

#

and if you can, pls send me a dono link!

#

ty in advance! !

#

OH!

#

quick query, if you don't mind?

thorn spoke
#

sure

young pelican
#

Is this compatible with qb-target version '5.4.0'

#

all cw assets

thorn spoke
#

You know I'm beginning to wonder if the raidjob is not lol

#

People reporting it's breaking

young pelican
#

I will do some debugging!

#

and let you know what i find.

limber quest
#

We might need to take a day and look more into the raid job Coffee 😛

thorn spoke
#

That would be mighty kind 4775pepepray
it's failing to target the cases... but not if you give it another prop apparently hmmmm

thorn spoke
#

but apparently it didn't work

#

It deffo fixed other issues tho lol

limber quest
#

it's so god damn odd

young pelican
#

lmao, i'm kidding, ill find what i can! :p

thorn spoke
#

but not after

young pelican
#

i will be in general vc, working on it

young pelican
limber quest
#

Would join you but gotta get to bed in a few 😄 gotta get up early to shop for new students introduction day tomorrow - aaah actual work taking away from more fun work

thorn spoke
# young pelican **CASES** meaning briefcase/prop?

yeah, so this was reported in a thread in the qb-core discord (and here). the guy in qb-core said Artjob worked, and if he changed the FetchItemProp to something else than the security case it worked why

#

Yeah I'm off to bed also haha.

young pelican
thorn spoke
#

But please share if you find anything!

young pelican
#

I will brudda!

#

Thanks dudes, btw, keep up the amazing work!!

limber quest
#

Man I'm not used to people talking this nicely to me

young pelican
#

gotta pave the way!

#

get some rest, homie!

limber quest
craggy estuary
#

@young pelican is right, you both are amazing, @thorn spoke sorry i didnt get back to you yesterday my buddy went ahead and put in ps-mdt and ps-dispatch so i was forced to debug and change all that over. ill test today

young pelican
#

thats another thing i was going to ask but, felt like i was coming in to eat all the food all rude & shit. But, are there snippets for these yet

#

dont hit me

#

MDT - dispatch

limber quest
#

I believe there's a tracker that will go off for police with the case, there's a timer in each job that lets you decide how long it goes on for, other than ofc gun shots being fired 😄

thorn spoke
young pelican
#

fuck yeah, i got a whole $3 in my account, it's yours...

thorn spoke
craggy estuary
#

you guys are awesome and have better support than some paid scripts

young pelican
#

^^^^

limber quest
#

Just never give away money to someone online before you're settled in yourself 😄

young pelican
#

i bet you guys give hella smooches too, i like it.

young pelican
limber quest
#

I don't know about that one, with the beard and all it might be itchy

young pelican
#

or some shit

#

idk

#

lmfao

#

thats me

craggy estuary
#

xD

thorn spoke
#

Thank you guys peepoCute

craggy estuary
#

well deserved praise

young pelican
#

listen, if someone is kind to me, ill pay them, not like hundreds. but, if a fucking coffee for you boys gets you through the day, i got it, you feel?

#

i personally dont drink much coffee, but, hey

#

let me know when it's up!

limber quest
#

I feel like "learn how to drink coffee" is the first lecture you get in any engineering degree at our school

young pelican
#

duuude, i really should switch to coffee. I did a redbull tour like eh.. 9 months ago? got this card, right?

#

free redbull for life.

#

so.

craggy estuary
young pelican
#

there's that

craggy estuary
#

i couldnt live without coffee

#

Mmmm coffee

young pelican
craggy estuary
#

i worked at VU on said server. just saying the irony

#

lmao

#

do some /e lapdance4 all day xD male stripper in city

young pelican
#

this was a bad joke. im sorry lmao

limber quest
#

As you probably guessed Coffeelot is also quite the coffee drinker... anytime we gotta do anything "just gonna grab a coffee!"

craggy estuary
#

lmao your good, it was very bad normally, we called new players Gokus and chances are any shift id end up dead like 3 times

#

over 2 hours

young pelican
#

so, i wasn't wrong... haha

#

So question

craggy estuary
craggy estuary
young pelican
craggy estuary
#

xD

young pelican
#

sorry haha

craggy estuary
#

prior city before i made my own.xD

young pelican
#

first thing i see

"no masks

No violence

No illegal sales"

second thing i see... masks, violence, illegal sales

craggy estuary
#

lmao welcome to VU

young pelican
#

WHY IS THERE DEER?!

craggy estuary
#

lmao

#

this event made my f-ing day lmao

young pelican
#

i asked for free passage whats this "turn the fuck around" lmfaoooooooooooooooooooooooooooooooooooooooooo

#

hahahahahaa

craggy estuary
#

lmaoooooo Yeahhhh that cop was a dick, just wait. he made up for it partially

young pelican
#

quick tip, use nvidia broadcast

#

get's rid of your background noise/air

#

it's free and works wonders

stark quail
#

That one dude wearing purple and a green flag lol. Weird flex if it's a lore gang

craggy estuary
#

xD that was actually my family, our primary colors were blackand purple with a weed flag. we were called the belladonnas based after the deadly nightshade plant.

#

unfortunately the city itself is more of a shooter server than a proper RP one as it advertises so althought we had good stuff it was far and few between

young pelican
#

Lucid, yeah, it used to be fun

craggy estuary
#

bahaha you know

young pelican
#

Tea marie, or angel, she's a great friend of mine!

#

adonia, her city is HUGE now

craggy estuary
#

Yep.. only true RPers now are Benny and the berndinos

#

Cosm0 banned me from lucid for using a clown react

#

which inspired me to do this and get into my own development. ive ran WoW servers and such 10 years ago so its mostly a refresher

#

@young pelican Grammy nominated producer? wait what?

crystal pecan
#

Hi!

#

At the playerjob check i want to add so it checks more then just one job

#

somone know how?

#

Example

#

Meby like this😬

woeful carbon
#

Anybody know this prop name?

craggy estuary
#

if your using QBcore type /admin and go into dev mode you can view prop and objectID's easily

craggy estuary
#

this is gonna sound silly but how do i remove these black and white blips lmao

thorn spoke
thorn spoke
craggy estuary
#

yeah i figured it out, some were from QB-garages, some were from qb-customs

#

i was too excited when i asked it seemed lmao only took like 2 min more

craggy estuary
#

@thorn spoke lets switch to general as to not fill the support channel xD any suggestions on a phone alternative? free is preferred as im broke atm but paid can come in time

thorn spoke
#

The only ones apart from the qb one are even worse

#

Maybe we should just rebuild the qb phone hmmmm

craggy estuary
#

You really should. Make it your first paid asset release, I'll beta test. Lol

#

I could believe that's a whole framework rework though

thorn spoke
#

We would never charge for a remake that uses other peoples code honestly

#

I'd certainly hope so cause what they are doing with their CSS is a FUCKING SIN

craggy estuary
#

That's fair lmao I'm not familiar with it enough myself to say I could do it. They definitely need a rework at least for the UI.

#

It's so..... ugly by default.

craggy estuary
#

Oh another side idea using your print script. Polaroid camera maybe using the script from the phone camera and assigning it to an item for use. Can print out momentos

thorn spoke
#

Not as simple as the other ones sadly. But for sure doable. I think we'd have to do some image cropping and shit tho and I dunno how well Lua does that

craggy estuary
#

Ah that's fair. I wasn't sure consider you can view in gallery and such. Just a thought is all. I love brainstorming lol

thorn spoke
#

Yeah, like it MIGHT work

#

I think it'd have to be a separate script based of prints tho

#

cw-polaroids 📸

craggy estuary
#

Yeah that was what I meant haha not something integrated into prints itself

thorn spoke
#

Had to swap from Ko-Fi cause they had some bad stuff going lol. Buy Me A Coffee also allows payment through Google and Apple Pay ✌️

thorn spoke
woeful carbon
#

Because i cant open the shop without this prop

thorn spoke
#

Did it not come with the prop?

woeful carbon
#

I dont think so

thorn spoke
#

You might be able to just change what opens it!

#

It's probably just an Event

woeful carbon
thorn spoke
#

Somewhere in the NP Showroom client theyre should be one named like "OpenShop" or something

#

So, on an old server me and Wuggie worked on, the twat that was running it had NP Showroom. Not sure if it's the same version

#

But on line 195 in client/cl_experience.lua there's this

  exports['qb-target']:AddCircleZone("showroom", vector3(-33.5, -1103.71, 26.42), 0.3, {
    name = "hospitalstash",
    --radius = 0.3
    debugPoly = false,
    --heading=250,
}, {
    options = {
        {
            event = "showrooms:enterExperience",
            icon = "fas fa-car",
            label = "View Catalog"
        },
    },
    job = {"all"},
    distance = 1.5
})
end)```
#

Change that vector to wherever and I i THINK you can access it from wherever you put it

#

no need for an object

woeful carbon
#

Thank you so muchh

#

Mine is without sql is it come without or i need to add?

thorn spoke
#

The one we had didnt have it either

#

It's a hot fucking mess tho

#

if it's the same version we had

#

Like it's so broken it's hard to use LULW

#

Might have been the idiot of our previous server that broke it tho tbf haha

woeful carbon
#

So it comes without 🤣

thorn spoke
#

yeah

woeful carbon
#

From where i can add custom cars to the shop from qb-core/shared/vehicle.lua rught?

#

Just to be sure

thorn spoke
#

Yeah i think it pulls from there

woeful carbon
#

Thanks

craggy estuary
#

Anyone familiar with MLO work? got a luxury car shop i wanna use but its like its not removing the collision from the previous building

pearl sky
#

Did you restart the server after placing the mlo in server file

craggy estuary
#

i got it, i was on a newer game version and it had a place there that was trying to go in the same spot

pearl sky
#

hmm

#

do you use qbcore

#

?

craggy estuary
#

i do

thorn spoke
#

A lil sneak peak of something that's in the works 👀

craggy estuary
#

Hey Wuggie, any chance you can help me with something i hope is nice and basic? trying to unlock a door from a thermite mini game, but the command keeps making it so my character itself unlocks the door (who doesnt have permissions)

#
    if QBCore ~= nil and isLoggedIn then
        local pos = GetEntityCoords(PlayerPedId())
        if #(pos - vector3(Config.JewelLocation["ThermiteSecurity"].x, Config.JewelLocation["ThermiteSecurity"].y,Config.JewelLocation["ThermiteSecurity"].z)) < 5.0 then
            if CurrentCops >= Config.RequiredCops then
                QBCore.Functions.TriggerCallback("qb-jewellery:Callback:Cooldown",function(isCooldown)
                    if not isCooldown then
                        QBCore.Functions.TriggerCallback('QBCore:HasItem', function(hasItem)
                            if hasItem then
                                TriggerEvent('inventory:client:requiredItems', requiredItems, false)
                                TriggerServerEvent("qb-jewellery:server:SetHackSecurityStatus", "isBusy", true)
                                exports["memorygame"]:thermiteminigame(Config.CorrectBlocks, Config.IncorrectBlocks, Config.TimeToShow, Config.TimeToLose,
                                function() -- Successfully Disable Cameras
                                    ThermiteAnimation() 
                                    ThermiteSuccess()
                                    TriggerServerEvent('qb-jewellery:BeginCooldown')

                                    -- Door Dependency (NUI or QB)
                                    if Config.DoorLock == "nui" then
                                    -- Successfully Complete Thermite Game (Open Door)
                                        TriggerServerEvent('ox_doorlock:setState', jewelry, 0)```
limber quest
#

I'll give it a quick look yea 😄 leaving for work in not too long so not sure if I can spot it before I have to leave 😄

#

(if you're admin enabled on the server, I think some servers let you unlock everything btw, not sure if that's the case for you)

craggy estuary
#

Yeah im admin based but i dont have it set to allow myself

#

it works if im set to cop but not to freelancer

#

so im thinking its reading the job permissions of the character, but its meant to be thermite to cut power to vangelico so counter productive for a crim to have door powers for

limber quest
#

It only lets you thermite if you're a cop?

craggy estuary
#

can thermite whenever

#

but door only opens if your a cop

limber quest
#

right

craggy estuary
#

because it has permissions for police to open it to seal the scene after

limber quest
#

ofc 😄 I never got too far into the whole bank robbery scripts before we just started making our own, but I remember there being something like that

#

What is Config.DoorLock ?

craggy estuary
#

bahahaha yeah im still skidding my way through and its mostly my friends and me. so im attempting to learn my own but cant really get there yet

#

jewelry

#

Ohh

#

its nUi

limber quest
#

okay, I'm just looking and its only if that's "nui" that it unlocks the door?

craggy estuary
#

nui**

limber quest
#

but that shouldn't change on your job

craggy estuary
#

its nui because the script was based for either nui_locks or qb-doorlocks

limber quest
#

right okay

craggy estuary
#

but nui upgraded to ox_doorlock so i changed the variables accordingly

#

who knew unlocking a door after an action would be such a pain xD i just want it to server side register boom unlocked

limber quest
#

yea not sure then, and leaving in a few 😄 but I can try look into it later or maybe tomorrow, Don't know if I will have any off time today 🤣

craggy estuary
#

haha your good, i figured i saw you on and it was worth a shot. i appreciate even taking the time you have

limber quest
#

It's always something, after I started doing any kind of programming I've just become a sceptic of the time anything takes

#

"oh this will be an easy fix" - 7 years later you still try figure that easy fix out!

craggy estuary
#

the sad reality in that, and half the time its literally just a left over )

#

xD

limber quest
#

or a ´ that should have been a `

craggy estuary
#

Lemme delete this chunk right here. WHY WONT THIS WORK.... oh, left that

#

i feel that lmao and im only in the starting phases of attempting to re-learn this. last time i touched server stuff was when WoW burning crusade came out. im an old fart

limber quest
#

but! hey I gotta be high energy and only talk UP programming for 2 whole days! to get the new students hooked

craggy estuary
#

i mean tell them the satisfaction when you finally get it working. and wanna do more xD

limber quest
#

oh for sure! and we always tell them, that they WILL feel like an imposter at some point, because we all have felt that

#

our C# tutor always has a slide in his powerpoint named "Will coding kick my ass" and he goes "well, maybe, if you give up.. but if you keep at it, no, it won't"

craggy estuary
#

Any suggestions on free Lua scripting courses or resources? Or a paid one if it's actually worth?

craggy estuary
#

From 0?

hexed sky
#

then add some new features

craggy estuary
# limber quest right okay

turns out i had to setup a new netevent server side that did the call instead of client side, then change the doorlock call to just call the server event. the dumbest thing ever but it works without a hitch

#

i found somebody else who had the script and did the same that i was looking to do ironically.

thorn spoke
#

The server/client stuff can be a real ballache haha

limber quest
#

yeaaa we have had that a couple of times

craggy estuary
#

tbf im sure with more knowledge id of gotten it over time, i definitely questioned why it was a client call vs a server unlock myself but didnt think to transfer it over lmao

#

ima try and do a few lua classes to maybe understand it a bit more xD just need recommendations to not waste my time

smoky glen
#

I just setup the qb-racing edit, love it but was wondering if it can display the position you are in the race?

thorn spoke
#

But we kinda got occupied with the server we worked on before and then our on stuff haha

craggy estuary
#

TaskPlayAnim(ped, animDict, "exit", 3.0, 3.0, -1, 2, 0, 0, 0, 0) currently this just loops an animation for a good while, is there any way to slow it down a bit?

thorn spoke
#

I dont think you can slow down animation play speeds

#

without adding new ones

craggy estuary
#

damn, its from the base qb-jewelry and it smashes the case like 3 times before the progress bar ends lmao

thorn spoke
#

Maybe lower the length of it so it's only once? And trigger it at the end of the progress bar

tacit turtle
#

love the scripts youve been putting out, currently i keep getting this error when trying to start races, i have latest performance and the racing script from in here, if i could get any assistance or a point in the right direction to fix this id really appreciate it

thorn spoke
tacit turtle
#

no just regular base gta cars, no upgrades

thorn spoke
#

ah yeah I see why

#

I think i fucked up a lil change

#

will drop new qb-racing soon

#

a quick fix is to just go to the line and change it to

#

local info, class, perfRating = exports['cw-performance']:getVehicleInfo(GetPlayersLastVehicle())

#

i forgot the exports part

tacit turtle
#

okay, thank you again! i really appreciate the quick response and support!

thorn spoke
#

Np, had a hunch of what it could be Prayge

craggy estuary
#

Hey @thorn spoke I made a script on my own finally xD i know this is probably not a common thing but is there any chance if i send it in DM youd look it over during your free time and tell me where to improve? everything is client side atm and im sure it can be better.

craggy estuary
craggy estuary
#

right now with the current timeout if one person searches the dumpster its locked out entirely. would rather it was client side

thorn spoke
#

So you want it to have a timeout of 5-10 minutes but only for the person who did it?

craggy estuary
#

yeppers

#

thats exactly it

thorn spoke
#

Maybe move the setTrashState to only clientside

craggy estuary
#

ive tried as it has client and server side functions, im prob doing it wrong myself xD

thorn spoke
#

Also, is the idea to have a script where you loot trashcans?

craggy estuary
#

Nah I want this one to be specific zones placed down with a kneel3 emote for digging through bigger bin (area below garbage for stock qb) a junkyard search type thing

#

I got dumpsters and trashcans in place for 3rd eye already this is separate

thorn spoke
#

aah

craggy estuary
#

Yeah add in some harder to get items for crafting that you wouldn't get from a basic dumpster and such. Got some spots near broken down cars and such as well. Basic things like that.

craggy estuary
#

Github is updated if you want to take a look or use it yourself, will probably private it in a bit unless others have interest. considering its mainly ripped code from QB-jewellery

pearl sky
#

While searching for a method for the purchased vehicle to spawn outside the shop , i actually found the best script for it xD

inland blaze
#

yo anyone else having this issue since the new update for qbcore ```
[ script:qb-core] nil triggered QBCore:Server:AddItem by ID 7 for 1 pbeermugfull. This event is deprecated due to exploitation, and will be removed soon. Adjust your events accordingly to do this server side with player functions.
[ script:qb-core] nil triggered QBCore:Server:RemoveItem by ID 7 for 1 pmacncheese. This event is deprecated due to exploitation, and will be removed soon. Adjust your events accordingly to do this server side with player functions.

craggy estuary
#

If It was a script from here I believe coffee updated all scripts. If not then you'll have to update the calls or ask the script maker to do so

inland blaze
#

yeah i think coffee has but just curious if anyone knows how i might do it my self cuz ive had no luck with it

thorn spoke
#

Oh, isn't that used in like a lot of places

#

hmm

pearl sky
thorn spoke
#

Downgrading qb-core

pearl sky
#

It will be a pain

#

Tbh

thorn spoke
#

Yup

#

Probably not gonna be an easy fix, unless the script author fixes it for you

pearl sky
#

True

thorn spoke
#

I think we'll have this issue with cw-tokens at least

#

Otherwise this might be the fix

#

Like... we're either doing it wrong ... or we managed to circumvent the issue before it existed kek

#

I'm wondering if they removed the ability to remove/add by slots?

#

One solution is to find the old QB-core version for the AddItem and RemoveItem and just replace the new ones. Should fix the issue

inland blaze
thorn spoke
#

Oh so it's only for items given client side?

#

Honestly I didn't even know that was possible 😂

wooden gulch
#

I feel like everyone is missing out on this idea

PDM heist with the possibility to get a Vin scratch car as a reward

limber quest
#

You could make the boostjob work like that somewhat, it's just about writing the story right -
You pick up the job somewhere ->
do the whole escape thing, input cool action scene here! ->
deliver it and get told to come back for it later (or something, you kind of decide, you can decide if it adds the car here, you'd need to write some code, but I think you could find it in our vehiclesswap code how to add a car to people directly here, or if you wanna give them a token and use the vehiclesswap script that could also be an option)

#

(This was my initial idea for why the Vehiclesswap script got made, to make it possible to have cool vehicle heists that could be used for gaining cars, legal or illegal depending on what you did with them)

thorn spoke
#

Honestly, we could easily do that by changing the swap slips to tokens (probably should do that anyway) and having a dude who takes tokens and gives out illegal cars as a trade

limber quest
#

yea or add a 3rd option right 😄

thorn spoke
#

Third?

#

We only have option for entry now (money or tokens). My idea was to change the swap slip you get from finishing to a cw token instead 🧠

limber quest
#

Ah right 😛 I thought we actually had money + car, or a Slip 😄 my brain is a little scattered, I can't remember what I thought about vs what is implemented

thorn spoke
#

Nah you only get slips. Would be nice to swap to tokens just to make more use of cw-tokens

limber quest
#

mh fair 😄

inland blaze
thorn spoke
#

Phew, then all our scripts are safe

sonic echo
#

I put cars that are imports into pdm on the display and this pops up. I had them in pdm before in their own category and it all worked fine. Now I am getting this. All of them are in shared vehicles.lua also. is there something i am missing?

thorn spoke
#

All those from multiple tries or opening it once?

sonic echo
#

multiple tries. i walk up to a car, get the "vehicle options" menu, but cannot click on it and the error pops up

thorn spoke
#

Is it like that for all cars?

sonic echo
#

yes the ones that are add ons in pdm on display

thorn spoke
#

So ONLY modded cars?

sonic echo
#

yes

thorn spoke
#

Hmm, you sure your vehicle.lua isn't botched again? hmmmm

sonic echo
#

LOL. i didn't touch anything from the last time we talked and fixed it i believe.

#

does it have something to do with the vehicle brand ?

thorn spoke
#

Certainly seems like it yeah. might just be that it's fetching vehiclebrand first and that is failing

#

unless you have some nil values as brands

#

Are you on the latest qb-vehicleshop?

sonic echo
#

i was missing a brand in my vehicles.lua, just fixed it and restarted. checking now

#

also i am not

#

i haven't updated my core

thorn spoke
sonic echo
#

yeah hopefully. that was the case last time LOL.

#

it lets me open the menu now and buy a car. but when i buy this 1 car, it puts me in a different vehicle that's on display and gives me the same error

thorn spoke
#

maybe more cars with bad values?

#

Might be double hashes that's causing the replacement

#

like one hash being used for 2 cars

#

either the hash or the list name [hash] = { bla bla bla }

sonic echo
#

i'll check again. when i go to buy the first car, it's okay and i get that car. when i buy all other cars it gives me the first car

#

ok seemed like there was 1 hash that was a duplicate. fixed and restarting. hopefully that was the issue

thorn spoke
sonic echo
#

it's doing the same thing:/

thorn spoke
#

You sure there aren't more douplicated values in the file?

#

Note sure how qb-vehicleshop picks it, but I assume it's the listname, or maybe the model name?

sonic echo
#

could it be the brand name? because i think i have a few ford in here

thorn spoke
#

Nah there can be more brand names

#

The ones that I think need to be unique are the list name, model name and hash

sonic echo
#

just checked and they are all okay. the list name, model name, and hash are the same for each car

thorn spoke
#

Can you send the file? And what car is it that all of them end up as?

sonic echo
#

it seems like whichever car i first buy. so i buy a certain car, then go back to buy a different one on display and it gives me the first car i bought

#

my vehicles.lua?

thorn spoke
thorn spoke
sonic echo
#

yes

#

the modded cars start under "utility" i believe

thorn spoke
#

Does it do this if you have a non modded car as the first car also?

sonic echo
#

not sure since i added all the modded cars at once. i'm going to try that now.

#

it's doing the same thing where I cannot open the menu. the menu pops up, but when i click on it, nothing shows

thorn spoke
#

I'd try printing the stuff in the getVehbrand function to see if it's actually getting the variables it needs in there

sonic echo
#

here? i put print ?

thorn spoke
#

Yeah before the return, print insideShop and ClosestVehicle

sonic echo
#

ooo that's so pretty LOL. what a vibe

thorn spoke
#

Getting a Steam Deck was so worth it Prayge

#

Did you get any print outs?

sonic echo
#

when i buy the first car

#

when i buy the second car. same error

thorn spoke
#

Is the number of the closest vehicle different in the first and last?

sonic echo
#

yes in the first one, it's 4. last one is 3

#

now i bought the same vehicle twice. first time: lets me buy it and nothing in f8. second time: picture^ and giving me the second vehicle on config not the first one

thorn spoke
#

That's weird af

#

Try printing some stuff in the function for buying maybe

sonic echo
#

i don't think i did it right bc it just says nil in f8. but could it possibly be because i moved the zone to the shape of gabz pdm instead of the regular one?

thorn spoke
#

Yeah that zoneing thing could be the reason

sonic echo
#

okay so should i just put in the version before i edited stuff? then try putting modded cars in pdm?

thorn spoke
#

yeah try that

sonic echo
#

kk

thorn spoke
#

if that works then it's probably the zoneing

sonic echo
#

kk i'll lyk

#

i reverted it as well as models and this happens:/

#

it let me buy the first car, but when i buy another this error pops up

thorn spoke
#

And you didnt have this error before?

sonic echo
#

no. it was working fine before. i have seen this error, but all i did was restart.

thorn spoke
#

Seems like something in there is nil

#

what is on line 174

sonic echo
thorn spoke
#

is the job field defined in the config?

#

Only thing I can see there that could be nil hmmmm or if the "insideShop" leads to a shop that doesnt exist?

sonic echo
#

job is set to none in the config

thorn spoke
#

Print inside shop before line 174

sonic echo
#

kk

#

it let me buy 2 cars, then when i got to the third it prints this

#

so it's the shop then?

thorn spoke
#

Is the shop name vanilla?

sonic echo
#

shop name is pdm

thorn spoke
#

What does vanilla come from then

#

Oooooh the job

sonic echo
thorn spoke
#

😂

sonic echo
#

LOL

thorn spoke
#

It's saying that Config.Shops.pdm.Job isn't defined

#

No idea why lol

sonic echo
#

is it because i have job=none ? because there isn't a job named none?

thorn spoke
#

Oh shit no

#

Wait

#

On the ones that error it doesn't have an insideshop

#

Imma sleep now tho. Good luck! If I think of anything I'll let you know

sonic echo
#

okay thank you! have a good night. appreciate the help!

craggy estuary
#

Gonna sound silly but anybody got a snippet to spawn a ped inside qb-houserobbery for when people rob houses

limber quest
#

I do not, and I haven't really checked Houserobbery script a lot, but could you maybe use something from the spawnguards function in Raidjob? 🙂 Not the whole thing ofc, but that's my guess that it could be done, I haven't checked into it and I'm making dinner atm and reading the code on my phone is a pain 😄

craggy estuary
#

lmao thats fair enough, its possible but the way houserobberys creates itself is by spawning an interior under the map at a -40 Z offset by default, and everything in the script uses those offsets for Location placement. its probably easier than it seems but it just adds to complexity

tranquil temple
#

Most likely you'll have to place the code back into every house because that is how the code was written.

torpid pecan
#

Hey @thorn spoke which target eye are you using in this image?

thorn spoke
torpid pecan
#

thanks bro

thorn spoke
#

But it's a bit old version of qb target

torpid pecan
#

no issue

#

i want to see html folder only

craggy estuary
thorn spoke
#

lol we don't really do any of that stuff anymore since we don't work on any server haha

craggy estuary
#

xD i loved the theme but forgot how big it all was

#

so much cleaner lol

#

that was one of the first edits i did xD

thorn spoke
#

It was mostly me doing UI stuff and I work on an 3440×1440 UW

#

so im always scared of messing up sizes for people

#

Also, as someone who works with the stuff professionally: I'd NEVER use something like "48.9%" in code LULW

#

Probably better to give margins or padding

#

but QB is so fucking bad with pixelpushing and absolute positioning already 🤮

#

I'm probably gonna just do a quick do-up on some UI stuff cause I've noticed the contrast aint the best with the light blue and white (the color wasn't our choice)

craggy estuary
thorn spoke
#

I like making UI stuff, so maybe I'll do a full qb-target skin someday

craggy estuary
#

id definitely download it xD

thorn spoke
#

Our qb-inventory had a HELL of a redo on layout

craggy estuary
#

i dont mind qb-inventory but i really just want cash on the hud screen >.<

#

and decay

thorn spoke
#

i remade like half the invnentory screen to be responsive

#

rather than pixels

craggy estuary
#

i tried the alternatives like Ljinventory with decay but it just had a lag when opening

#

thats gorgeous lol

thorn spoke
#

qb inventory shows decay tho no?

craggy estuary
#

it only has decay on weapons

#

when fired

#

no item decay sadly.

thorn spoke
#

huh

craggy estuary
#

yeah i mean there are probably snippets out there and integrations possible but by default it doesnt have it.

young pelican
#

Can anyone help me out with this error?

#

none of the weapons are reloading for some reason?

thorn spoke
#

Seems like your weapons file is broken

#

Did you change it? Or maybe update qb-core but not qb-weapons? (no idea if they got patches)

pearl sky
#

Can some one tell me what does this error even mean?

thorn spoke
#

math.random needs two inputs

#

so you probably want it to be math.random(0, #data-#daily)

#

or something

#

math.random will give you a random number in the interval between input one and two

#

so if you input 0, 2 it will be 0, 1 or 2 (iirc)

#

If #data-#daily can be lower than 0 you need to take that into account however

young pelican
craggy estuary
#

whats a good way to make a screen fadeout for like a knockout state?

thorn spoke
#

I think that one just uses a screen effect

#

Same as drugs etc

craggy estuary
#

oh okay, word. i added a knockout state and want it to fade the screen out and come back like your dizzy or knocked out

pearl sky
#

when i add this math.random(0, #data-#daily) it gives me this error Now

thorn spoke
#

and #data-#daily

craggy estuary
#
var str = "Vector3(" + x + ", " + y + ", " + z + ")" + "[h] =" h ;

How can i take this, and put quotes around the H like this without breaking the entire thing. i know in lua its using / before the symbol but i dont know shit in java xD

var str = "Vector3(" + x + ", " + y + ", " + z + ")" + "["h"] =" h ;```
limber quest
#

I believe it's "[\"h\"] = " h

#

the full thing, hopefully it works
var str = "Vector3(" + x + ", " + y + ", " + z + ")" + "[\"h\"] = " h ;

craggy estuary
#

that was it exactly

#

Appreciate you

craggy estuary
#

Another random question, anybody have a snippet where if somebody starts a job nobody else on the server can do so? i figure its probably a few calls back and forth but cant figure it out

-- edit scratch that, went to the ol faithful QB-jewellery and figured it out from the cooldown code

craggy estuary
#

Sooo, Lua is really bad with negative numbers huh?

#

or im stupid lol. -- this was it lmao i forgot to call a source on a server sided call and it responded with native errors, i thought it was due to a cooldown going negative

limber quest
#

aaah 🙂 was just to say, i know it has some weird shit but negative numbers shouldnt be one

craggy estuary
#

Yeahhh xD its always one bugfix to another, i got the cooldown working but for some odd reason now the searching is broken xD

#

which was flawless prior to xD prob due to me switching to combozones

pearl sky
# craggy estuary

What should i do so that i can also see the resources as shown in this picture at the left side?

craggy estuary
#

make sure your on canary and do con_miniconChannels "script:*" -- Edit, forgot the s in channels

pearl sky
#

con_miniconChannel "script:*"

pearl sky
craggy estuary
#

in the F8 window

#

my bad

#

when you wanna turn it off you can do con_miniconChannels "asd"

#

also i forgot the S in the original message, edited to correct

pearl sky
#

Okay thanks 😘

craggy estuary
#

No prob! Its definitely something that makes development 100x easier

pearl sky
#

Yup

craggy estuary
#

Whats an average time% for Qb-Target >.> asking for a friend lmao

thorn spoke
#

Average time?

craggy estuary
#

resource monitor

#

my QB-target seems to be high af

thorn spoke
#

I think qb target generally is a bit high

#

Seems to be slow response times often

craggy estuary
#

okay, i wasnt sure if it was just something i screwed up on or not

#

next highest is boii hunting at .18ms so Target being higher seemed odd. but since it is tied with most things i guess it makes sense

#

on a side note, that shitty mime script was a good stepping stone but i finally have scripts with server and client side calls lmaoo >.> progress

pearl sky
#

How can i make it so that the Parking SIGN appears on every spot
if you get what i mean

thorn spoke
#

You'd have to get a coordinate for all parking spots, put them in a list. Then where it creates the interaction you need to make a loop that goes over all of them.

pearl sky
#

I got the coords but i don't know about the loops on how to set it up?

craggy estuary
#

also has either polyzone 2 setup lots, or individual spaces marked with vector 4's including impound and depot lol

pearl sky
craggy estuary
#

ah im using a version from prob 30 days ago and havent had a single issue with it

pearl sky
#

I want to use default qb garage with multiple arrows to show in parking spot

craggy estuary
#

ah well then yeah what Coffee suggested would be best overall

pearl sky
#

Yeah

craggy estuary
#

prob setting up a table and using a for k, v in pairs(blah blah)

pearl sky
#

Hmm

thorn spoke
#

I think if you look at for example qb-bennys or whatever it's called. The mechanic job scripts

#

They have multiple interaction points

#

that could help you out 👍

pearl sky
#

How do i change the Default Lock pick that has shit animation of Qbcore to this one?

thorn spoke
#

You can find that one in PS-UI

#

so just find where it calls the lockpicking minigame and chane ti to the PS-UI one

#

(example would be in cw-raidjob where we do the minigames - just search ps-ui in the client file)

pearl sky
#

Thanks

craggy estuary
#

Anybody know a good way to test out or see the particle effects?

craggy estuary
#

Sooooo, lets say i stole your spawning code from Raidjob, what would be the best way to Unactivate the NPC's and set them as un-needed anymore. @thorn spoke 😛 or even delete them

thorn spoke
#

We do exactly that in cleanup() in boostjob!

#

its a bit more advanced than raidjob i think

#

with enemy spawns

craggy estuary
#

appreciate you, ill take a look!

thorn spoke
#

The way the npcs are spawned in raidjob (and boostjob) will clean them up after they are "activated" and their world cell is left tho iirc

craggy estuary
#

fair enough, yeah im using it for a thing on Cayo atm, so even half way across the island when i come back to the air strip they are still active lmao.

thorn spoke
#

oh

#

that might be a thing in raidjob also then

craggy estuary
#

tbf for one of the steps i currently have it spawning 27 guards lmao its really optimized so props on that

#

lowered the spawn wait to 200 and still works flawlessly

thorn spoke
#

Flawlessly syncing the npcs?

craggy estuary
#

from what ive seen with me and 2 others yeah

thorn spoke
#

nice

craggy estuary
#

still on a closed dev server atm

thorn spoke
#

Yeah the one we set was more like a worst case thing

craggy estuary
#

makes sense, Yeah im messing around with QB-target and diff steps and such, prob still a bad way to do this overall but its a fun learning experience overall.

#

anything is better than the mime/oxy script i started doing all this with >.> lmao

craggy estuary
#

Also you changed your PFP and its throwing me off >.> xD

pearl sky
#

Hello

#

i am getting an undefined model error For Vehicle

thorn spoke
#

Never seen the code for np-pdm

#

But I assume some models you're trying to load aren't defined or aren't defined correctly

pearl sky
#

i mean its nopixel vehicleshop for qbcore

pearl sky
thorn spoke
#

sounds like the car with the ID you select don't exist then

pearl sky
#

hmm

#

then why is the map not loading

#

when i select a car that exist in my server it appears but falls down

thorn spoke
#

that seems like a different issue

#

why not ask the support that you paid for? haha

#

cause thats a paid script no?

pearl sky
#

no

#

i converted it for qbcore

thorn spoke
#

So it's leaked code?

pearl sky
#

yup

thorn spoke
#

In that case that's your issue. I remember using that horrendous vehicle shop back on a server I deved for and it was so bad hahahaha

pearl sky
#

it was esx

thorn spoke
#

The code is probably dated

#

or just super entwined with some systems

pearl sky
#

hmm

craggy estuary
#

the primary issue is it being a leaked script, you'll be lucky to end up getting support for it most places and will actually get a lot of backlash for it. probably best to just use a public one or find a good one and support the devs' for it.

craggy estuary
#

so I'm not to this point in the script yet, (its coming soon) but I could use some assistance on this one, Im working on a Vineyard/Wine Delivery job. They pick grapes at the vineyard and smash them, Ez, after that they get packages to put into a van and do deliveries based on the amount of packages they made up. They then have to deliver the packages to the various liquor stores around the city, Here's where my issue comes in.

I want Businesses to hire these people so I need the script to keep track of the business that's hiring (as it'll be a common job for Clubs[VU, Bahama Mama's. Tequi-la-la]), Then for each delivery I want the business to get paid, (can do that using renewed banking) but I want the business to be able to check the status of the drivers. IE If they have packages in the van yet and if they are delivering and how many they have delivered already. Then upon completion they have to return the vehicle and get paid by the business that hired them. I've never worked with QB-menu yet, or tables in this kinda depth where its stored per person variables. Should it go to SQL instead, I'm assuming all data would be kept server side regardless. Maybe a temp metadata tag? ugh lol so confused. Any points in the right direction would help lmao >.<

thorn spoke
#

I think you'll want to use SQL for that. You need to make sure the data syncs over clients. I thiiink you CAN do that by just using the serverside scripts, but with SQL you also get rention over connects etc

#

So what you want to make is an event that triggers for all these actions that updates some object in the database

#

One thing you can look at is maybe how QB modifies either the "mods" column for vehicles, or the player object that is held in the database (example would be in any jobs script I think)

#

Honestly, if you nail that you got grounds to make an UberEats map with tracking in it! haha

#
{
    "workers": [
        {
            "name": "Khatrie",
            "packages": 5,
            "outForDelivery": true,
            "destinations": {
                "teqilala": {  "done": true, "order": 4 },
                "bahamaMamas": {  "done": false, "order": 1 },
                "vu": {  "done": false, "order": 4 }
            }
        },
        {
            "name": "Qasim",
            "packages": 0,
            "outForDelivery": false
        }
    ]
}
#

Here's an example of json data structure for that

pearl sky
#

🧐

#

Yo Coffeelot is there a way to decrypt FXAP Escrowed file !

#

Jussssst Askiiiiing ||Before i get Banned xD||

thorn spoke
#

Lmao

#

no

#

And even if i knew I wouldn't help with stealing code

pearl sky
thorn spoke
#

Not only that @pearl sky , but leaked code is commonly used to spread malware, fyi haha

#

might wanna make sure you don't have shit on your computer

pearl sky
#

My computer Clean ||AF||

thorn spoke
#

yeah that screenshot deffo proves you don't have a keylogger on there kek

pearl sky
#

🤣

#

||NVM||

craggy estuary
iron seal
#

is anyone free to talk about something to do with traders and tokens?

iron seal
#

Can you do a voice chat rn?

thorn spoke
#

Gimme 5 min

iron seal
#

ok np

pearl sky
#

When will the vehicle plate changer script be coming 👀

thorn spoke
#

Who knows shrug
I was working on a tuning script using parts instead of upgrades the other weekend. Like different turbos etc

pearl sky
#

Hmm seems interesting 👀

craggy estuary
#
function getQBPermId(permid)
    local id = table.unpack(permid)
    MySQL.Async.fetchAll("SELECT * FROM players WHERE `permid` = '"..id.." ' ", function(result)
        local target = 'none'
        if not result then return end
                for i = 1, #result do
                    local row = result[i]
                    print(row.discord)
                    target = row.discord
                end
                if target == nil then
                QBCore.Functions.Notify(src, "failed", "primary", 2500)
                else
            return target
                end
        end)
    end


QBCore.Commands.Add('testid', "Test a Players PermID", {name='id', help='Player'}, false, function(source, args)
    local src = source
    local test = getQBPermId(args)
    print("source: "..src)
    QBCore.Functions.Notify(src, test, "primary", 2500)
    print(test)
end, 'god')

Server Side

[       script:grapes] source: 1
[       script:grapes] nil
[       script:grapes] 98615648103460864
[       script:grapes] 98615648103460864

Client F8 Error

[     96234] [b2699_GTAProce]        CrBrowserMain/ Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'length') (@qb-core/html/js/app.js:38)

What would I have to put so it will return the target back to the source command with the information pulled (Both server side), Currently being used to pull the discord column itself but i plan on using it as an "active" tag later to identify the currently active character somebody is on and return said state ID/Connection ID making PermID's the main identifier.

#

im sure im doing something wrong further than what i think but i just cant figure out what lol

thorn spoke
#

are you getting the args correctly?

#

Is args/permid defined in getQBPermId i mean

craggy estuary
#

yeah its pulling back the discordID from the table

#

thats the 2 lines on the server side

#

just when it goes to return it to the user it gives me the length error

#

When it goes to print test though it remains as Nil even though its defined in the function

thorn spoke
#

Is target defined in the function?

#

Cause according to the code, if it's not, then it won't return anything (nil)

craggy estuary
#

it is, afaik at least. under print(row.discord) it has target = row.discord

#

unless its because im defining it in the MYSQL call itself it isnt going further

#

its specifying it fine server side, its just not returning back the value to the command even with return target which is what i thought would work, but stays nil lol

thorn spoke
#

What are the logs before the ones you posted?

#

You call the function before printing source

#

And in the function you call before you're trying to print also no?

craggy estuary
#
[   3608859] [b2699_GTAProce]             MainThrd/ Creating script environments for grapes
[   3608859] [b2699_GTAProce]             MainThrd/ Started resource grapes
[   3608859] [b2699_GTAProce]             MainThrd/ 
[   3608859] [b2699_GTAProce]             MainThrd/ OnConnectionProgress: Downloading content manifest...
[   3608859] [b2699_GTAProce]  UV loop: httpClient/ Required resources: grapes 
[   3608890] [b2699_GTAProce]             MainThrd/ Creating script environments for grapes
[   3608906] [b2699_GTAProce]             MainThrd/ OnConnectionProgress: Mounted grapes (1 of 1)
[   3613375] [b2699_GTAProce]  UV loop: httpClient/ Required resources: chat 
[   3613390] [b2699_GTAProce]             MainThrd/ Creating script environments for chat
[   3613406] [b2699_GTAProce]             MainThrd/ OnConnectionProgress: Mounted chat (1 of 1)
[   3615359] [b2699_GTAProce]     RageNetTcpWorker/ EndpointMapper::HandleRequest: POST /gta5/11/gameservices/socialclub.asmx/GetPasswordRequirements
[   3617703] [b2699_GTAProce]             MainThrd/ source: 1
[   3617703] [b2699_GTAProce]             MainThrd/ nil
[   3617703] [b2699_GTAProce]             MainThrd/ 
[   3617703] [b2699_GTAProce]        CrBrowserMain/ Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'length') (@wh-core/html/js/app.js:38)
``` Client
#

server

[ citizen-server-impl] Stopping resource grapes
[    c-scripting-core] Creating script environments for grapes
[ citizen-server-impl] Started resource grapes
[ citizen-server-impl] Stopping resource chat
[    c-scripting-core] Creating script environments for chat
[ citizen-server-impl] Started resource chat
[       script:grapes] source: 1
[       script:grapes] nil
[       script:grapes] 98615648103460864
[       script:grapes] 98615648103460864
[      script:wh-core] [wh-core:LOG] Khatrie PLAYER SAVED!
#

nothing related to it i dont think

craggy estuary
#
function getQBPermId(source, permid)
    local id = table.unpack(permid)
    local src = source
    MySQL.Async.fetchAll("SELECT discord FROM players WHERE `permid` = '"..id.." ' ", function(result)
        local target = 'none'
        if not result then return end

        if result[1].discord == nil then
            print(failure)
        else
        permanentId = result[1].discord
        print(permanentId)
        local test = table.unpack(permanentId)
        TriggerClientEvent('chat:addMessage', src, {
            color = {255, 0, 0},
            multiline = true,
            args = {'Player Discord is ('..permanentId..')'}
        })
        return test end

    end)
end

QBCore.Commands.Add('testid', "Test a Players PermID", {name='id', help='Player'}, false, function(source, args)
    local src = source
    local test = getQBPermId(src, args)
end, 'god')

WOOOO!

craggy estuary
#

one step down, 100 more to go xD i feel like im re-writing the entire core at this point. itll be worth though

thorn spoke
#

Haha

#

Yeah it seemed like it printed the function prints after the other print? So it did something in the wrong order

#

ooooh wait i think I know

#

setting test = function might not mean "test is what the result of function is"

#

in lua

#

in some dumb way

#

if that makes sense

#

so when you reference test the SECOND time it runs the function

craggy estuary
#

or at least an idea of it lol

thorn spoke
#

It's setting test as a reference and not a value for some reason

#

Maybe

craggy estuary
#

ahh, hmm, Yeah while i fixed it outputting into chat i had my buddy connect last night and realized its only showing the PlayerID of the single person on Everyone Vs their own numbers. so it needs more of a re-write as is and ima have to figure out how to call back the PermID one way or another at least for that lmao

#

so since my iD was 1, it showed 1 for both of us vs pulling his ID itself, His showed 2 on both of us

#

trying to think of the best approach for that so its integrated into character data vs having to be pulled from SQL on ever query. debating on a metadata tag where it just keeps the account ID for quick reference. SQL can still be used to search with the node bot though

#

i like to take on projects well outta my league if you can tell lmaooo 🤣

limber quest
cinder lance
#

within CW-Trades, is it possible to have the NPC swap two items for one, rather than a 1 for 1 swap?

thorn spoke
#

You can make your own in the config.lua for trade

cinder lance
#

Apologies I mean two separate items. So let’s say I want to do Iron and Steel for 1 lockpick

#

So fromItem would need to be two separate items

#

But I can’t seem to get the code to accept 2 items

thorn spoke
#

ohh

#

yeah no that's not in

craggy estuary
#

Essentially that could turn this into a full on "crafting" platform even. Add another has item check for specific item without removal and you got blueprints.

thorn spoke
#

Yeah i dont think the implementation would be that hard

#

just make fromItem and toItem lists instead

cinder lance
#

No worries thanks for coming back!

thorn spoke
thorn spoke
#

I'll make a release soonish. Just wanna make sure nothing bad shows up when others try it out

#

This is the change in the cw-trade config file objects. from and totitems are now lists.

Money is handled the same (but I also added crypto) and tokens work like they used to, but the fromitem needs to be remade to the new model as described in the image.

cinder lance
#

Will let you know asap

thorn spoke
#

The example multi-item trader is a golfer at the golfing society

cinder lance
#

Tried doing 4 items traded for 1 and it doesnt like it

#

No errors, just doesn't make the trade

#

That comes up in the F8 menu

thorn spoke
#

Does the trade "go through"?

#

like does the progress bar start?

#

How does the config object look?

cinder lance
#

No progress bar at all

thorn spoke
#

What does it say in game then? There should be an like "in character" error also

cinder lance
#

Doesn't say anything in game

#

no notification error

#

No F8 erro

thorn spoke
#

No emotes at all?

cinder lance
#

Nothing at all

#

Third eye, click the option to trade and then nothing

thorn spoke
#

And you have all those items on you?

cinder lance
#

I do

#

triple checked just in case

thorn spoke
#

Is debug set to true?

#

in the config?

cinder lance
#

false

thorn spoke
#

Set it to true

#

it will output more stuff in the F8 logs

cinder lance
#

That is all it is throwing out

thorn spoke
#

No other errors at all?

#

From any other scripts I mean

cinder lance
#

Nothing no

#

Nothing popping up in the console either

#

Tried reducing to 2 items and I'm getting the same issue

thorn spoke
#

I need to add more debug logs

#

I'll push an update soonish

thorn spoke
#

@cinder lance I pushed an update with tons of logging

thorn spoke
#

Have you had time to test it with the logging version yet @cinder lance ? Thinkxel

craggy estuary
#

Any idea's on how to make a ped face an object spawned in the world? made some beach balls (pretending they are lettuce atm) i want the player to turn towards them and interact vs just randomly crouching xD

craggy estuary
#

nvm got that, used TaskTurnPedToFaceEntity now i just gotta figure out how to make them wait to carry out the next action, my next animation cancels out the movement lmao

thorn spoke
#

I JUST LOST ALL THE PROGRESS FOR CW-PAINTJOBS RIP MY FUCKING LIFE

#

And updates to cw-racingapp

pearl sky
#

🙀

thorn spoke
#

It was done

#

like actually

#

fucking

#

done

pearl sky
#

Man it hurts alot

#

💔

#

What happened did it get deleted or ?

thorn spoke
#

I honestly have no fucking idea

#

I made an edit to qb-customs and pushed to a fork

#

and after that everything was gone

#

no stashes

#

no fucking idea how shit could just... disssapear

pearl sky
#

Try running a file recovery software where the files were saved

thorn spoke
#

no restore points for the folder

pearl sky
#

I mean use a Software like wondershare file recovery

#

It retrieves/recover deleted files

#

Maybe it helps

thorn spoke
#

they arent deleted

#

they're changed

pearl sky
#

Oh i see

#

Did you forget to save 😶

thorn spoke
#

no

#

It reset everything to an old commit

#

for some weird ass reason

pearl sky
thorn spoke
#

VSCODE SAVES THE DAY

#

OH MY GOD

#

VScode has an internal version control Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge Prayge

craggy estuary
#

did you realize the timeline feature in the bottom left @thorn spoke ?

#

xD

thorn spoke
#

yes lol

#

I'm usually a pretty decent git user haha

craggy estuary
#

xDD That timeline feature has saved me from so many edit wormholes xD. start editing one thing break it 20 times over and just go back

thorn spoke
#

Fuck I just realized some code needs to be added in qb-garages for cw-rgbpainter panic
To lazy to find it now huehue

fathom spruce
#

Hello does anyone know how to remove the 2 images? i use ps-hud

craggy estuary
#

ill switch to here for general support/dev talk

#

Basic Renewed phone app layout as

Config.PhoneApplications = {
    ["details"] = {
        app = "details",
        color = "#5db9fc",
        color2 = "#008eff",
        icon = "fas fa-info-circle",
        tooltipText = "Details",
        tooltipPos = "top",
        style = "font-size: 3.3vh";
        job = false,
        blockedjobs = {},
        slot = 1,
        Alerts = 0,
    },

itll just come down to finding how to add the entry into here

serene plinth
#

Yeah I did add the performance app into it just like it was shown in the readme

#

and changed the slot number accordingly

#

But maybe something in renewed phone is different

pearl sky
#

can someone help me with the polyzone ?
i want to add a garage spots in GABZ LS TunnerShop, but what is the Polyzone, Polyzone 1 and Polyzone 2 For ?

limber quest
#

my guess is that Polyzone is the place the zone should be placed, and polyzone 1 and polyzone 2 are the X and Y of the zzone, so how big it is?

#

(can't remember if that's how it is tho)

pearl sky
#

hmm

#

let me try and see what happens

thorn spoke
#

yeah i think a polyzone needs at least 3 vectors