#talk-not-support

1 messages ยท Page 1 of 1 (latest)

icy token
#

Hi guys why is this area so empty

#

๐Ÿ™ƒ

ashen raft
icy token
#

Lol

ashen raft
#

Should be here tho DinkDonk

icy token
#

Hey @ashen raft i have a request

#

Can i ask you

#

In private

#

It is about a script

ashen raft
#

If it's related to any of the scripts you can always ask in the respective channel. #not-cw-support-fivem-talk is great for other code stuff ๐Ÿ‘

icy token
#

Actually i need a little help with the script

ashen raft
icy token
#

I can't post it in general

#

Can i dm you

#

๐Ÿฅบ

ashen raft
#

Sure

hushed fable
#

@ashen raft i got a good question for you, do you know of any Map replacers with postals that arent complete ass? xD

#

i want the map from the original city i played on but i cant find it to save my life lmao Sandy was 900/1000 postals and it was clean af. xD

ashen raft
#

Nah never used any maps with postals. Always felt like they were to cluttered

#

@clear vine might have when he was Cop on tfrp? hmmmm

clear vine
#

We didn't use postal codes ๐Ÿ˜„ we used 2 street names for locations only, so only used maps with street names

hushed fable
#

i feel the same way with most ive seen

#

this one was clean though at least imo

#

wasnt over cluttered, but was enough to get around easily

ashen raft
#

maybe that was before your time

hushed fable
#

Bahaha it comes down to opinion xD

#

it was alot easier to tell somebody information when i could say go to postal 643 vs a street name xD

#

i get lost easy though soooo

clear vine
#

oh you want the one with a lot of numbers?

hushed fable
#

i mean if its clean xD

clear vine
#

I thought you wanted the less cluttered one ๐Ÿ˜› isn't the big one just the "postal code map"

hushed fable
#

ive seen the sat map one, and then the one that uses 4 digit codes everywhere

#

those are both sloppy though, ill prob just break down and do one myself

clear vine
#

well that's the thing, I don't think any of them are clean when they have codes on each block ๐Ÿ˜„

hushed fable
#

haha finnnneeee, i still want one ๐Ÿ˜›

clear vine
#

If it's because you play cop, it's easier to just shoot and push the emergency button! EZ FIX!

hushed fable
#

haha i mainly crim actually, so it gives cops more of an advantage imo.

#

got another silly question, could you guys assist me in skipping spawn selection and making it automatically do last location? ive tried skidding my way through it but i only seem to break spawning default qb multi and qb spawn

ashen raft
#

I would advice against doing that since last location can bug sometimes

#

and like set you in stuck places etc

hushed fable
#

say i wanted to put caution to the wind and make mods/people deal with that when it happens. is it possible by editing the qbspawn/multicharacter/apartments calls?

ashen raft
#

I would assume you can just go to the select character button, where it triggers the location select. Check the Open-Picker-Event and see what event that one calls, lets call it Spot-selected-Event. Then change the Open-Picker-Event to Spot-Selected-Event with hard coded "last location"

#

maybe

hushed fable
#

fair enough, that was my thoughts originally, i know its setup with a location selection call from the js script loc.type or something like that (away from desktop atm) so maybe just defaulting that to last location or cutting out the code and only calling what i need.

ashen raft
#

yeah, it's also the HTML and stuff that needs to be recoded I think

#

to not show the menu etc

hushed fable
#

Can anyone recommend a good group job system. Either already setup or one I'd have to implement. So silly jobs like garbage and such are one person by default.

ashen raft
#

Pretty sure thatd required rework of all the jobs

hushed fable
#

Yuppp you ain't wrong I'm slowly going through and doing it with ps-playergroups.

hushed fable
#

Wrong channel. moved post.

hushed fable
#

Can anybody help me, i know ive seen it somewhere before but whats the snippet to stop a model from spawning if it exists already? rather than spawning 30 of the same guy lmao

ashen raft
#

I think just not having a spawn script run several times would be the easiest.

#

Else, just save the initial spawn as a global variable in the file (local Guy = nil) and then set Guy at spawn to whatever. Before spawning check it Guy is not nil, and if it's not then don't spawn the guy ๐Ÿ‘Œ

hushed fable
ashen raft
#

Also, anyone know any good emotes for painting cars? hmmnotes

icy token
#

Why does it says cracked by ? LoL

ashen raft
#

it's a joke on old software lul

icy token
#

Oh I see ๐Ÿ˜

#

Well it would be great if you can add some real spray animation for the paint script

ashen raft
#

Yeah that's the plan.

#

Also gotta figure out why GetVehicleModColor_1 isn't working, cause otherwise the preview is gonna have to be scrapped

icy token
#

Hmm

icy token
#

How can i make it so that when i buy a vehicle the vehicle should spawn outside the Shop, I don't want to spawn the player inside the vehicle upon purchase?

ashen raft
#

remove TaskWarpPedIntoVehicle

#

i think

icy token
#

Will test it Tomorrow morning

icy token
#

One more thing

#

If multiple vehicles are bought at the same time how can i make it so that the vehicles does not spawn on eachother?

ashen raft
#

Add more spawn points, on purchase/test start check if the area is clear and if its not choose the next spawn point

#

a bit more complicated than the first question to implement tho lul

icy token
#

Well i am looking to make it work

#

Because i want every purchased vehicle to spawn at a specific location and set a job for players to get the vehicle to the Dealership, to make it more RP

#

Well the check clear area code can be retrieved from qb garage script ๐Ÿ˜

hushed fable
#

or QB-ambulancejob with the bedchecks for nearest open bed

ashen raft
#

I think qb-taxijob also does it

icy token
#

Hmm

hushed fable
ashen raft
#

Or a high five

#

just SLAP and BAM the color changes

#

time it exactly to the slap

hushed fable
#

lmao yess

ashen raft
#

I have a bigger problem with it now. It doesn't want to save paint type (matte, gloss etc) sadge havent figured out how to get around it in a nice way

hushed fable
#

lol i hope you do honestly, i defaulted to using Renzu_customs atm because i wanted hex codes and cant find anything good >.<

clear vine
icy token
#

xD

icy token
#

i cant find

icy token
ashen raft
#

You using our vehicle shop?

icy token
#

No The Latest One Though

ashen raft
#

Yeah no idea then

icy token
#

okay

ashen raft
#

Search for it

#

Globally

icy token
#

yeah i am gonna ask the QBCore Support xD

icy token
# ashen raft remove TaskWarpPedIntoVehicle

I asked QB Support and they Said the same thing as you mentioned above but the newer version changed the code, i was laughing at the Support team XD, and no reply from them until now

icy token
#

After searching for days i found out recently that there is a paid script that got free on GitHub because Author approved it

#

But it has a major flaw/error and the author is nagging that fix it yourself otherwise its a good script

ashen raft
#

Looks like it's hard to install also lol

icy token
#

Nah it's easy i installed recently

#

I installed it on fresh qb core

#

Still the same error

#

When we put a car on display through the script it gives error when we try to open the vehicle menu to change vehicle park position or vehicle price

#

But when we store a purchased car it doesn't give any errors and even menu opens

#

He has a YouTube preview to showcase his script. Here https://youtu.be/UIkMbPKlZbE

Purchasable car dealerships for qbcore. Set out cars for sale and they will stay on tsunami people can buy them off the lot. If you use in conjunction with the title resource people can sell cars back to the dealer. Dealer has a catalog of cars at a cheaper price. Dealer can put any car they own out for sale. More options and optimizations to ...

โ–ถ Play video
vivid sigil
#

Could somebody pls tell me how i fix an infinte nitro loop causing all players to have nitro.. the guy wrote somehting in the script but i dont really understand how i fix it

ashen raft
#

What did he write?

vivid sigil
#

RegisterNetEvent('nitro:__update')
AddEventHandler('nitro:__update', function (playerServerId, boostEnabled, purgeEnabled, lastVehicle)
local playerId = GetPlayerFromServerId(playerServerId)

-- Sometimes, the source player is disconnected from our session. If we don't
-- check for that, their player ID will be -1. GetPlayerPed(-1) is our local
-- player, so the logic to apply nitro sync will apply it to our vehicle when
-- that happens.

-- Say, the source player enables nitro, but is not connected in our session.
-- Nitro is then synced on the vehicle for player -1, which is us, so nitro is
-- activated on our vehicle. However, because we're not actually pressing the
-- nitro key, our client will update the nitro state accordingly, and turn it
-- off. That then syncs to the original source player, who has the exact same
-- network issue as we do. Nitro will be disabled on his vehicle, but he's
-- still pressing the nitro key, so it's being enabled right after. Long story
-- short, this causes an infinite sync loop between all clients as long as at
-- least one player has nitro activated.

-- Therefor, simply check if the source player is connected to our session. If
-- not, ignore the synced state and don't do anything.
if not NetworkIsPlayerConnected(playerId) then
return
end

ashen raft
#

So are you having the problem?

#

It sounds like he's saying that if statement in the end fixes it

vivid sigil
#

it doesnt tho

#

i can go on the server take any car now and i will ahve nitro without it showing in the hud

#

all other players aswell

ashen raft
#

have you talked to the author of the mod?

vivid sigil
#

dont know who he is

#

i guess i will use an other one

ashen raft
#

Check the readme for the script maybe. Or the github where you got it?
But yeah there's probably a couple of NOS scripts out there. QB even comes with one

vivid sigil
#

can it be because i spawned a car with admin menu and then use nitro delete it with admin menu ?

#

because the car doesnt exist anymore and it becomes local or some shit xD?

ashen raft
#

If it's just doing that for YOU then maybe? Restart the server and see if it's gone

vivid sigil
#

ok no its for everyone

vivid sigil
#

how can you make someone tp with his car in qb-teleport

ashen raft
#

There's some code to teleport the player to a car in qb-garages you can check out.

fleet wharf
#

can anyone assist me with an error im having when adding custom cars?

clear vine
#

post the errors ๐Ÿ˜„ Then I'm sure if someone encountered it will help out (would probably put it down in the support General channel)

#

or even if they have some general idea,

vivid sigil
#

what could be the problem if an addon bike doestn work with custom sounds but wiht vanilla

ashen raft
#

The custom sound is probably installed incorrectly

#

I never figured out how to install custom sounds so can't really help you with that haha

vivid sigil
#

hmm unlucky its the 1rst one not working

#

and its the bike not the sound itself

ashen raft
#

The vast majority of vehicle mods are so badly made LULW

#

modelwise and implementation

vivid sigil
#

it works all off a sudden kekw

icy token
#

Any update on new script or any teaser ๐Ÿ‘€

#

Why is this server so quite

#

๐Ÿ‘€

ashen raft
#

Busy with life and work ๐Ÿ˜ข

vivid sigil
#

does anybody know how to fix this, i put the original ones in and it worked again now all off a sudden after trying to add a skateboard this came again

hushed fable
#

show the code

vivid sigil
#

the houserobbery client/main.lua?

hushed fable
#

what you added in

#

specifically the line in question 307 for house robberies

vivid sigil
#

its the original qbcore one

#

same for the prison

#

just accured today didnt change jack shit

hushed fable
#

so its something to do with the requireditems, its not pulling the name back properly

#

or item itself

vivid sigil
#

hmm so im missing items

#

to make prison and houserobbery work?

hushed fable
#

well line 307 specifically is calling for advanced lockpick

#

did you keep that in your shared/items.lua?

vivid sigil
#

Maybe my friend took it out because you dont actually use an advanced one

#

ill look fo ri

#

its still in shared items lua

hushed fable
#

hmm

#

i personally removed the entire required items section myself lol

#

so thats why i cant just pinpoint it for ya xD

vivid sigil
#

so you an just walk into a house to rob it?

#

could i just lock it with qbdorlock and make it lockpickable ?

hushed fable
#

nah you walk up to the door and use the item like normal

#

it just removes the popup saying Hey you need this

#

so people have to find out in RP

vivid sigil
#

ah i see

hushed fable
#

yeah

vivid sigil
#

i will try that out

#

thank you

hushed fable
#

Yeppers, it adds to the RP element Vs hand holding and people then searching for those items

vivid sigil
#

true

#

local requiredItemsShowed = false
set to true?

#

or delete this RegisterNetEvent('lockpicks:UseLockpick', function(isAdvanced)

hushed fable
#

sec

#

mines all customized with MZ-skills and such so im just gonna grab the proper calls for ya

vivid sigil
#

thank you

hushed fable
#

Remove 306-309

    requiredItems = {
        [1] = {name = QBCore.Shared.Items["advancedlockpick"]["name"], image = QBCore.Shared.Items["advancedlockpick"]["image"]},
        [2] = {name = QBCore.Shared.Items["screwdriverset"]["name"], image = QBCore.Shared.Items["screwdriverset"]["image"]},
    }```

remove lines 335 - 347
```lua
            if not inRange then
                if requiredItemsShowed or not Config.ShowRequiredItems then
                    requiredItemsShowed = false
                    TriggerEvent('inventory:client:requiredItems', requiredItems, false)
                end
                Wait(1000)
            else
                if not requiredItemsShowed and Config.ShowRequiredItems then
                    TriggerEvent('inventory:client:requiredItems', requiredItems, true)
                    requiredItemsShowed = true
                end
                Wait(1000)
            end
#

no yeah thats good

vivid sigil
#

Thanks alot

hushed fable
#

of course, it should be the same for your prison if its the same error

#

just find the lines like that and remove them

vivid sigil
#

๐Ÿ‘Œ

vivid sigil
#

all works now ๐Ÿ™‚

#

everythign*

hushed fable
#

Eyy glad to hear it.

vivid sigil
#

does anybody know how to remove the debit card from the qbbanking

#

so you dont have to use a card

ashen raft
#

Just so you dont need the item you mean?

icy token
#

How can i add a test drive in qb vehicle sales before buying?๐Ÿ™‚

vivid sigil
#

Already fixed it thanks but ran into another problem

#

my service app aint working , doestn show ops on duty etc just says 0

ashen raft
vivid sigil
#

my on duty police officcers are showing in ems on service app do you know how i can make em show in police?

ashen raft
#

I assume there migth be some filter where it checks what players to show by jobs

vivid sigil
#

my qbcore shared vehicle fukign went back to ioriginal out of nowhere

#

xD

#

how can that happen?

ashen raft
#

You probably reset something with git or something

hushed fable
#

Curious, did you two ever figure out the hex code sprays?

ashen raft
#

Eeh, yes and no

#

It works just fine, but couldn't figure out how to make it matte

#

so only works for metallic

hushed fable
#

ahh fair enough. i can see why that would be an issue overall.

#

im looking for a diff mechanic script that allows hex spraying but being real about it most of them out there seem to be pretty shit or old af xD

ashen raft
#

I can put it up on git tomorrow

#

half done tho

#

Also never figured out if there's a good emote to use

hushed fable
#

oh, that would be cool. i wasnt inquiring for that aspect just curious if it did get anywhere overall. ill definitely give it a try though.

#

xDD

#

thats it, im doing the baseball bat emote

ashen raft
#

I'll make it do a random emote each time

hushed fable
#

lmao, randomly sit and meditate and at the end the car changes

#

im having a weird issue atm where my repair kits are not syncing across clients either. well, its like 30% of the time it properly sync's

#

itll repair on their end, but not on mine. then they open a door and it falls off lmao

ashen raft
#

I assume you always do the only-the-person-who-fixes-the-car-can-touch-it-first thing

hushed fable
#

yeah we've tried it where i stood away from the car entirely

#

he fixed it, tried to get in and door went boom

#

ill figure that one out over time xD its just a random annoyance.

#

im still closed dev atm, so i got plenty of time

hushed fable
#

just something im messing with overall xD

icy token
#

Hello

#

I need Help with a Trigger for Radial Menu Script

#

The Error I Get

#

I have Updated the QBCore files to the Latest but still

ashen raft
#

You can check raidjob

#

We rewrote them there

#

Hasitem is a function now, not a callback. A qb core change.

icy token
#

so can you tell me what should i write instead of this QBCore.Functions.TriggerCallback('QBCore:HasItem, function(result)' to Fix my Problem

ashen raft
#

Not on the top of my head no. Check how we did it in raidjob or boostjob and you should have your solution

icy token
#

In Client File or In Server File Because mine is in Config file

ashen raft
#

They look the same in client and server

icy token
#

oh let me see

#

๐Ÿ˜•

ashen raft
#
  • sniff * * sniff * what is this I smell? An old version of the code? peeposmug
#

Latest release changed that

icy token
#

๐Ÿคฃ

icy token
#

I still cant figure it out

#

๐Ÿ˜‘

ashen raft
icy token
#

Sorry for the Trouble i fixed it

#

just have to change QBCore:HasItem with QBCore.Functions.HasItem

hushed fable
#

REPLACE HASITEM CALLBACK

FROM

QBCore.Functions.TriggerCallback('QBCore:HasItem', function(result)
        if hasitem then
              -- Has Item
        end
end, "sandwich")

TO

      if QBCore.Functions.HasItem("sandwich") then
             -- Has Item
      end
``` For reference for anyone later.
#

Ill earn a helper title somehow lmao (Kidding)

ashen raft
hushed fable
#

Haha i appreciate you.

hushed fable
#

ngl this one feels good, Persistent Account based ID's aside from the general playerID ones, easier moderation tracking

ashen raft
#

wouldn't showing some fiveM id be even better?

hushed fable
#

so the PermID is stored in SQL based on the account License used, then i have a Node.JS bot that you can use !checkid # with and it returns both FiveM license as well as discord user/identifier

#

auto increments so itll always go up by 1 when a new user joins, easy way to keep track of account totals as well

ashen raft
#

@hushed fable let's continue the banter here Nerdge

#

We were offered to work on a server that had the dumbest thing

#

250 fucking dollars

#

and people call Star Citizen a scam KEKWW

hushed fable
#

this is gonna sound rough but tbh that seems better than the server I played on before i started working on my own xD

#

i passed tf out last night xD my bad

ashen raft
#

How do servers even get people paying...

#

the one we were offered had SEVERAL people who had that tier

hushed fable
#

i honestly dont know, this city was so badly optimized too. but its got the hype behind it so it gets the users. i know of at least 7 people who were on that tier and then there was another 20 on the tier right below it at 150, they recently added more into it as well lmao

#

they make sure to remark too, This is a subscription, 280$ every month and chances are they are charging in city taxes too lmao

#

So, you pay your IRL payments, and then have to grind in city to get the money there too xD

#

Lowest price for their MLO houses are.... 247 a month, highest one is 500 a month. and i can only imagine people pay it.

ashen raft
#

$500 A MONTH?

hushed fable
#

pukes

#

Yep

ashen raft
#

I wish I had the heart to scam people kek

hushed fable
#

i wont disclose the server itself but this is what i expect from them. they stole NP source code to start the entire project

hushed fable
#

Yeahhhh one of them Oh i made this from scratch type of groups then when you see their source you recognize it if your in the dev scene

ashen raft
#

Good thing those devs are probably so bad they can't utalize our shit at least KEKWW

hushed fable
#

xDD Truth, they have 1 good dev and honestly if anything i feel bad for how ownership runs it when he (The dev) pours his heart into it

#

i mean, owner banned me for a clown emoji. so he's petty xD

ashen raft
#

lmao

#

steal the dev

#

and we'll make our own server

#

with clowns and uh.. no no pixel code

hushed fable
#

lmaoooo the amount of times ive thought about ways i could lmao

#

xDDD

#

i specifically made this shirt due to that

#

xDD

ashen raft
hushed fable
#

@ashen raft i wont spam that channel again xD but not to mention creating functions on items is stupid easy now

ashen raft
#

yeah

#

that's some good shit

#

Need this for tokens also ๐Ÿ˜

hushed fable
#
        label = 'Test Burger',
        weight = 220,
        degrade = 60,
        limit = 3,
        stack = true,
        client = {
            status = { hunger = 200000 },
            anim = 'eating',
            prop = 'burger',
            usetime = 2500,
            export = 'ox_inventory_examples.testburger'
        },
        server = {
            export = 'ox_inventory_examples.testburger',
            test = 'what an amazingly delicious burger, amirite?'
        },
        buttons = {
            {
                label = 'Lick it',
                action = function(slot)
                    print('You licked the burger')
                end
            },
            {
                label = 'Squeeze it',
                action = function(slot)
                    print('You squeezed the burger :(')
                end
            }
        }
    },```
using their testburger as an example
#

but it expands it so much xD

#

lmaoo i dont use tokens but ill take a look at it later on and see what it takes to change it over

#

Limit above doesnt work atm, im working on putting that back in they removed it in march but i wanna limit certain items to a max amount

hushed fable
#

oh shit dude very nice!

#

i figured out my PermID issue as well, decided upon writing the permID it will automatically assign it into metadata, this way i can use the QB functions themselves to just call it back that way when in range

#

now i debate if i wanna keep paypal or make people go full immersion and check their phone for their transfers and stuff xD to get the ID

ashen raft
#

Insta transfers to people nearby ๐Ÿ™

hushed fable
#

i mean Ox uses Cash as an inventory item for fast transfers like that, im more thinking towards the paypal/"wenmo" as its called in Renewed phone

#

or anything In city that essentially uses PlayerPedId between players instead, Phone is more immersive but then again eventually i need to set it so permID can tell which character is active and just go off only that

ashen raft
#

Just gotta add a randomization to availability, and then update cw-tokens to be able able to handle trades without "discussing trade"

hushed fable
#

dude your killing it honestly, that was quick

ashen raft
#

the entire trade thing is already made due to how we built tokens smart

hushed fable
#

thats true, all stepping stones haha

ashen raft
#

Yeah, just had to figure out how to make the UI etc

hushed fable
#

im just waiting for cw-crafting xD give me something to get rid of this badly made core-crafting

ashen raft
#

Now, don't quote me on this, but crafting should be fairly easy to make

#

the hassle is mapping all the crafting recipies haha

#

it's just:
Select recipie > hasItem > give player new item

hushed fable
#

yeahh its just finding a good UI or decent features with it lmao. i only used Core because it had blueprint support but of course ox broke that and core gives 0 support

#

even then they provide 3 example recipes and say do it yourself lmao

ashen raft
#

huh

#

yeah the ui is the big part

#

I'd probably WANT to do some fancy UI like the one I just made

hushed fable
#
    Recipes = {

        --==============--
        -- Misc Recipes --
        --==============--

        ['lockpick'] = {
            Level = 0, -- From what level this item will be craftable
            Category = 'misc', -- The category item will be put in
            isGun = false, -- Specify if this is a gun so it will be added to the loadout
            Jobs = {}, -- What jobs can craft this item, leaving {} allows any job
            JobGrades = {}, -- What job grades can craft this item, leaving {} allows any grade
            Amount = 1, -- The amount that will be crafted
            SuccessRate = 95, -- 90% That the craft will succeed! If it does not you will lose your ingredients
            requireBlueprint = false, -- Requires a blueprint whitch you need to add in the database yourself TEMPLATE: itemname_blueprint EXAMPLE: bandage_blueprint
            Time = 60, -- Time in seconds it takes to craft this item
            Ingredients = { -- Ingredients needed to craft this item
                ['metalscrap'] = 5, -- item name and count, adding items that dont exist in database will crash the script
                ['plastic'] = 3,
                ['rubber'] = 7,
            },
            xp = 2
        },
#

base layout of their recipes

#

thats one of the selling points that got me for core Blueprints and UI

#

but its so badly made towards expansion and the 0 support made it so ill never buy another core product lol

#

categories, then recipes stacked in them

ashen raft
#

huh

#

I mean

#

that could probably be done with the basic ui stuff even

#

like the qb-vehicleshop

hushed fable
#

Yeah prob something Qb-menu based

#

this one runs through js and Nui and i think thats part of the issue im having with blueprints along with how ox formats weapons to begin with lol

ashen raft
#

aah

#

yeah

#

the more ui the more problems

#

hahaha

hushed fable
#

lol sad sad truth, but its "fancy" rolls eyes

#

i just wanted levels and blueprints xD

#

this was the only available decent option. i didnt like how okok looked and then the base qb crafting was.... well in my opion just shit xD

ashen raft
#

blueprints as in like you can find objects that give you the knowledge to make stuff?

hushed fable
#

yeah it unhides the recipe if you will

#

so if you dont have it, you dont even know its craftable unless its word of mouth

ashen raft
#

yeah, that doesn't sound all to complicated

hushed fable
#

yeah surprisingly enough its not a common thing out there with most crafting things xD, my end goal with core was gonna be learning the blueprints so its bound to that character and it helps control having 1000 of them in the market, Crafters become essential and such. prior to the ox conversion it would just detect if you had it on you though. didnt get that far just yet xD

#

wasnt sure if i was gonna go metadata table with that or SQL, meta would probably be less stressful overall on the server

ashen raft
#

yeah i'd probably just add it to the player metadata

hushed fable
#

thats why i went that route with the permID's, the data is already called into the system. wasnt a purpose to get a live update on what is already set once and done

#

SQL is just purely used to discord/admin purposes if required then

ashen raft
#

Wouldn't be to bad to solve it with sql tho

#

Would make it hella lot easier to remove

#

Just add another colum to players that's recipes

hushed fable
#

true, what happens if somebody spams the crafting menu, pull it once into memory and then not check again for a time period or would it spam the server then lol

ashen raft
#

It would spam the server just as much

#

You still gotta fetch the metadata from the player character

#

Which is an sql fetch

hushed fable
#

ah true

#

so yeah either way then would work out to the same

ashen raft
#

Sql is more setup. But probably the better way to do it

hushed fable
#

Step 1, Put a print in a wait 0 thread, (should of known here i messed up xD)
step 2, Get booted for reliable network overflow
step 3, laugh and fix it in code
step 4, relaunch and do the same thing without restarting resource.
step 5 profit? lmao

ashen raft
#

Imagine being booted from your own server KEKWW

hushed fable
#

XD it's happened more than I care to admit xD have auto banned myself prior too

hushed fable
#

Eyy i like it,

#

expansion idea, make them have to go to a random PC somewhere in the city to transfer the "secured" data after purchase

#

Only say that since its usb icons ๐Ÿ˜›

ashen raft
#

I mean you could just... use the usb on the device? haha

hushed fable
#

xD psh i mean you could

#

tablet must be running tor or something secure ๐Ÿ˜

ashen raft
#

browsing the secure market

hushed fable
#

Ohhh i did miss that

#

You win xD

ashen raft
#

trying to make buy tokens work now

hushed fable
#

Eyy, so is the VPN built into the tablet or are you gonna make apps based around other items in pockets

#

IE Black market only shows up with a VPN,

ashen raft
#

The tablet is meant to act as a "secure device"

#

so always connected

#

but will have several apps, all doing anon deals

hushed fable
#

ohh okay

ashen raft
#

Thats why i want to get buy-tokens working.
Cause that means that you can get buy tokens as random drops, but you need someone who has access to one of these bad boys to actually buy it

#

creating a market for "buy tokens" pretty much

#

So you could, for example, have these buy tokens drop as loot from doing Taxi, but a taxi driver probably have no use for it, but criminals might

#

Buy token = token that allows you to buy a token

hushed fable
#

ohh interesting, a good way to keep all the jobs within a market if you will as well as whatever you assign to tokens

ashen raft
#

Yeah exactly

#

the idea came from someone mentioning people were just buying the tokens

#

so you could just get access to these jobs easy

hushed fable
#

yeah thats no fun, actually you gave me an idea

#

for my server at least, i have them locked behind rep and was gonna do each raid job as a diff rep level

#

i think ill use tokens instead as drops from the lower level tier jobs and this way you can get them and use them at the rep level required putting the raid jobs as 2 diff rep tiers

#

im sure i explained that horribly xD

ashen raft
#

Sounds like you need tokens ๐Ÿ˜‰

hushed fable
#

Yepp sounds like ill be converting it to ox later

ashen raft
#

hahaa

ashen raft
#

I added instructions in the tokens readme how to add token drops even

hushed fable
#

yeah with ox ima have to convert over each of the jobs at this point to use them

#

i only use raid though so no boost conversion ๐Ÿ˜›

ashen raft
#

Boost is like Raid but cool

#

tsk tsk

hushed fable
#

lol raid could use an update ๐Ÿ˜› randomized locations per job, and an awesome panning camera showing the guards and package at the job acceptance

ashen raft
#

Boost has the first one

#

๐Ÿ˜‰

hushed fable
#

haha i knowww xD ill be honest i've been using jl-laptop boosting xD i couldnt get past the tiers/ui

ashen raft
#

our boosting is very different haha

hushed fable
#

lol yeah xD i enjoy how that one is setup myself

ashen raft
#

You steal a car to modify a car you already own

#

So for example you steal a Voodoo Custom.
You own a shitty rusty voodoo.
Now you can take your shitbucket to the right place and make it a Custom EZY

hushed fable
#

when i was using the boostjob i was gonna change it over to give car parts, so you could vendor them off either using a family vendor which gives a higher price

ashen raft
#

Creates a market for making rare(r) cars

hushed fable
#

or a regular street guy who gave a base min

ashen raft
#

It also makes sense, cause what we do is that you take a car you own. A car registred to you. And you modify it with the stolen car. Ei, you create a legal car, that might have a much higher market value

hushed fable
#

just my out look on it of course, thats the joy of the fiveM world is we can all tweak and edit it to our hearts content

#

your not wrong, they plan on introducing vin scratching to the laptop boosting, i prob wont even use it

#

atm i just give a payout for the end job and some extra rep towards getting other jobs in the city

#

more as a stepping stone people can choose to do

ashen raft
#

never really understood everyones constant need for vin scratches

hushed fable
#

i dont like it, i wanna keep car ownership to either PDM or player ran shops

#

or trades after ownership but no outside source hey get a free car type thing. even if the job costs X amount

ashen raft
#

for street racing i'd much rather implement plate removals

hushed fable
#

once i know more about nui i wanna do a fake plate system where you need the plate and screwdriverset in your pocket and you can third eye the bumper and apply plate, it pops up a minigame where you gotta unscrew your old plate and put the new one on (screwdriver cursor/ Nui Plate and screws with Plate showing proper numbers, Interact with screws)

#

itll change the plate over and make the vehicles plate read as that even to scanners, and youll have to remove the plate to store your vehicle again

ashen raft
#

That'd be sweet

hushed fable
#

long term goals i promise xD i know absolutely shit about front end dev work.

#

id have no idea where to start on the nui aspects beyond calling it in fivem

icy token
#

How does sync work in fivem?

ashen raft
#

depends on what youre talking about

icy token
#

Like for example take a Carlift script

ashen raft
#

i think items need net ids and stuff

icy token
#

How to sync the car lift animation for all players

ashen raft
#

we do it in raidjob iirc

#

if you want examples

icy token
#

Will look into it

hushed fable
icy token
#

No the actual Carlift script

hushed fable
#

ah okay, figured id ask cuz the mosley MLO has a lift script included

icy token
hushed fable
#

working lifts

icy token
#

๐Ÿ˜ฆ how do i not know this

hushed fable
#

Functional lifts, with Remote, as well as an oil change command with proper ptfx

icy token
#

Can we change the location of the lift though to work it with like the gabz tunershop

hushed fable
#

i mean itll require changing quite a bit inside but yeah its possible id assume

icy token
#

What exactly is needed to change that you are taking

hushed fable
#

a ton of coord locations because of how the lift scripts find the entity to attach to

#

nothing intensive

#

just a bunch of small edits

icy token
#

Are you ๐Ÿ†“ now ๐Ÿ˜

hushed fable
#

lol unfortunately ill be heading out the door in prob 20 min

#

i mean ill be back later on tonight but essentially its just changing a bunch of vector3/4's around

#

i think you got this

#

i can help if you TRULY cant figure it out though. best way to learn is to attempt, if ya break it ya just restart from the source

icy token
#

Changing coords are not the problem, but i hope I don't have to change the actual prop location , cause its hell of a pain

hushed fable
#

right right

#

is there a lift down in the tuner?

#

nvm i loaded briefly to look

#

so it does have lifts

icy token
#

Yes

#

But doesn't work

hushed fable
#

Did you change the model hash too?

ashen raft
#

Been rebuilding qb-racing

#

In short, apart from this (far to complex) new leaderboard list

  • Integration with cw-performance to create class based racing
  • Top 3 leaderboard for each track instead of only the best
  • By-class leaderboard
  • Safer leaderboard updates (through refetches)
  • Replacement of tire-piles lamps
  • Increased size of checkpoints
  • Not as harsh checkpoint-pass detection
ashen raft
#

Tuning script going great

icy token
#

Whaaat did i just ๐Ÿชš

ashen raft
#

A car with like 40 times the interial force and like hella grip

icy token
#

Hell a grip more like No Grip ๐Ÿคฃ

ashen raft
#

Nah the grips is so much that the tires stick to the ground so much it throws the car around hahha

ashen raft
#

@hushed fable I noticed something while doing stuff today

#

There's already a fakeplate field in the database for vehicles stolen_eyes

hushed fable
#

I mean.... >.> I wouldn't be mad if you took my idea xD

clear vine
#

That freaking "Cracked by" string tho ๐Ÿคฃ

ashen raft
#

Pondering adding a classic keygen music that plays while its open

ashen raft
#

Spent way to long on this damn color cloud

paper kestrel
#

still clean though nice

icy token
#

is there no way to Change the speed of the Fivem Download ?

hushed fable
#

It's normally dependant on your internet speed.

hushed fable
#

is the particle effect not synced between both?

#

awh man, seems more devs are switching to Ox_inventory xD Lazy and Renewed scripts both announced their switchover.

ashen raft
#

Yeah the particle effects are synced

#

why?

hushed fable
#

it didnt look like it in the vid you recently posted

#

i only saw the exhaust from the car lol

#

ohhh nvm

#

it was the color spray it was just off center of the car so it looked like it was exhaust

ashen raft
#

That's planned!

#

We randomize the placement a bit

#

off center

#

cause now it shows BOTH colors

#

๐Ÿ˜‰

hushed fable
#

Ahhhh okay

#

Very nice!

#

Eyy Fancier color, Woot!

ashen raft
#

As the first one, you want to decide the color? @hushed fable

clear vine
#

(Now I actually got the craving for a chili dog)

hushed fable
#

xDD im chill with Orange myself, its a good stand out color lol. Hopefully i can inspire more people to sub towards it

#

you two are awesome, well deserved

ashen raft
#

Thank you Prayge

#

The money will be spent on coffee and hotdogs

hushed fable
#

the two best things for a dev, fast meal and fuel juice

#

I just got a steam deck like 3 days ago, im really contemplating putting windows on it for FiveM xD

#

traded a bunch of FPV drone gear for it that i had sitting around

ashen raft
#

I really dont think the steam deck does well with FiveM

#

mine struggles with way less intense stuff lul

hushed fable
#

i havent seen much reported about it xD im still running SteamOS on it with decky plugins and such atm, it has taken everything ive thrown at it so far but its still mostly mainstream stuff

#

Elden ring, some Emu's. stuff like that

#

the evil side of me really wants to test Kali linux on it and some pentesting xD

#

put the Wifi to work xD

ashen raft
#

haha

#

I've legit just played Stardew and Sandrock on it haha

hushed fable
#

lmaoo ive thrown so many diff things just for testing, Old school games with community controls are the best thing ever, Star wars Kotor 2 feels like it was made for it. Elden ring, Dead Cells,

#

installed Heroic and have done some hitman 3 and such as well, all runs really well overall. at least for a handheld standard

#

Emudeck and some gamecube/wii, i gotta.... Find some Ps3 games to test that out. i see it supports it but im questioning if itll really run xD

ashen raft
#

Yeah I love mine. Love sitting on the balcony playing games

hushed fable
#

ive bought into every product steam has released so far (aside from VR) i wasn't expecting what I got with the deck tbh, I expected it to be worse than it is so its blown me away entirely xD.

#

i followed along with like the GPDWin systems and such over the years and seen the performance of those, so when steam said what they did pre-release I'm like Yeahhhhh no way. now, id recommend this to anyone over a gaming laptop if thats their main purpose

ashen raft
#

Same. Its so good. And being able to mod games on a handheld justright

hushed fable
#

xD not even gonna lie, its not even modding that sold me. its Noita on a handheld xD

#

i LOVE roguelike/lites so having the access to the library you do on PC on the go. ๐Ÿคค

#

altho i did mod risk of rain 2 day 1 when i got it haha, need the custom characters

ashen raft
#

I got so mad that they are available without wait now haha

#

I bought mine, used, like 1 month before that announcement came

#

Or well, not used. It was still in it's wrap and package haha

hushed fable
#

Lmao ouch. I mean like I got mine through a trade for some fpv gear I had. I haven't flown in about 2 years so it was a good trade xD. System had maybe 30 hours of use. Got it from a friend as well so I know it was well taken care of. 256 model with case and such

ashen raft
#

Yeah same

#

got mine for like $20 over asking price

#

so not the worst deal

ashen raft
#

Gonna change it up to just be a laptop I think. And add job/id requirement so it can be part of a job.

ionic mason
#

Amazing

ionic mason
ashen raft
#

Will probably be out tomorrow

split cedar
#

Thanks for the good work always guys

#

supported yall

clear vine
#

Thanks for the support ๐Ÿ™‚

hushed fable
ashen raft
#

We need a chili dog emote

hushed fable
#

๐ŸŒญ

#

so close yet so far away

ashen raft
hushed fable
#

chilidog Eyyy

hushed fable
#

i know im always talking about ox_inventory in here but my god the RP stupid stuff like this can bring ๐Ÿคค๐Ÿคค๐Ÿคค Clothing as full items, imagine getting 2nd place in a race and winning a Tshirt xDD

hushed fable
#

and expanded upon even further. Items now show proper Component ID and drawable/texture numbers.

ashen raft
hushed fable
#

Ughhh i know... that expands it so much further lmao xD

#

i can see it now, Shirt, Flannel Blue

#

to be fair it just shows how expansive it really gets haha genuinely happy with how its all coming out

ashen raft
#

Oh. And it has to be gender specific also

#

so you gotta do all clothes

#

all textures

#

TWICE

hushed fable
#

They might just have to memorize their favorite numbers xD

#

Oh wait, no lets go more expansive, and instead of names, we catalog and snapshot every single item of clothing and make an icon for it

#

considering ox allows you to set Metadata.image and set images

ashen raft
#

Now you gotta

hushed fable
#

lmao

#

id say once you switch to ox sure but youd do it outta spite

#

xD

ashen raft
#

No real reason to switch when it's just a dev server honestly

hushed fable
#

i mean fair one day closer to launch ill inspire you guys to join into my server even if its just to play and have fun.

#

i wont let you see my bugs now though xD im sure i got plenty still

#

just pop in and be like Oh i made that, and that, and that, xD

ashen raft
#

Only if it's only lore friendly cars thinksmug

solemn hemlock
#

I'm excited

ashen raft
#

Are you using ox target @hushed fable ? Is it different from qb in the sense that it would need special implementation?

#

We have ox inventory support for cw-prints thanks to Khatrie ๐Ÿ˜Ž

hushed fable
ashen raft
#

Why would anyone change... That's like the best feature lol

hushed fable
#

i still stick with QB-target but thats primarily because of ease of use, Ox really is the superior targetting

#

lmao tbf i shifted away from spawnped due to peds multiplying like you had yesterday

#

just used createped with targetentity instead

ashen raft
#

Didn't you say if I wrap it in a thread it'll go away?

hushed fable
#

Yep

ashen raft
#

The problem ๐Ÿค”

#

Hmm

hushed fable
#

example being

function barrelguy()
    CreateThread(function()
        local model = `u_m_y_mani`
        RequestModel(model)
        while not HasModelLoaded(model) do
          Wait(0)
        end
        local barrelguy = CreatePed(0, model, 1469.66, 6543.49, 14.9 - 1, 183.92, false)
        SetEntityInvincible(barrelguy, true)
        FreezeEntityPosition(barrelguy, true)
        TaskStartScenarioInPlace(barrelguy, 'WORLD_HUMAN_HANG_OUT_STREET',0, false)
        SetBlockingOfNonTemporaryEvents(barrelguy, true)
        exports['wh-target']:AddEntityZone("barrelguy", barrelguy, { -- The specified entity number
          name = "barrelguy",
          debugPoly = false,
        }, {
          options = {
            {
              type = "server",
              event = 'barrels:server:request',
              icon = 'fab fa-vine',
              label = 'Start Job',
               canInteract = function()
                if onjob then return false else return true end
            end,
        }
          },
          distance = 1.5, -- This is the distance for you to be at for the target to turn blue, this is in GTA units and has to be a float value
        })
    end)
end```
#

this right here will despawn the ped when you restart the resource and just put a new one in, (using the function barrelguy() on resource start )

#

i renamed most of my default QB assets, taboo blah blah i know.

ashen raft
#

Hmm

#

I already had the trader for racingapp in a thread

hushed fable
#

hm, yeah this works flawlessly anytime i set it up this way

#

ill go do a quick recording to show ya

ashen raft
#

I mean I believe you

#

We used to do it like that before

hushed fable
#

lol i figured, its always nice to see expected behavior. weird if its not working for ya though.

ashen raft
#

I like spawnPed cause it's neat

#

like everything cept for the options are just there in the creation

#

no need to add Natives etc

hushed fable
#

could of easily been user error, i was still generally bad when i was trying to use it but i switched to this and it just became easier overall

ashen raft
#

Yeah we had that too

#

cant remember what the fix was

#

maybe thats why we actually moved over to the spawnped thing lol

hushed fable
#

lol yeah i dont have an issue with duped peds with this method but spawnped did xD so maybe reverse

ashen raft
#

Yeah I mean it's only a problem WHILE DEVVING

hushed fable
#

lmao

ashen raft
#

I usually just restart qb-target when it gets to many

#

usually it's just a graphical thing

hushed fable
#

lmao then break everything thats attached to target

#

xD

ashen raft
#

but for some animations they block interaction lol

hushed fable
#

i restart target and i gotta restart like 10 other things attached as a dependancy ๐Ÿ˜ญ

#
[    503531] [b2699_GTAProce]             MainThrd/ Stopping resource cdn-fuel
[    503531] [b2699_GTAProce]             MainThrd/ Stopping resource cw-prints
[    503531] [b2699_GTAProce]             MainThrd/ Stopping resource cw-raidjob
[    503531] [b2699_GTAProce]             MainThrd/ Stopping resource gp-traders
[    503531] [b2699_GTAProce]             MainThrd/ Stopping resource jim-mining
[    503531] [b2699_GTAProce]             MainThrd/ Stopping resource jim-notepad
[    503531] [b2699_GTAProce]             MainThrd/ Stopping resource jim-payments
[    503531] [b2699_GTAProce]             MainThrd/ Stopping resource jim-shops
[    503547] [b2699_GTAProce]             MainThrd/ Stopping resource qb-djbooth
[    503547] [b2699_GTAProce]             MainThrd/ Stopping resource tr-sit
[    503547] [b2699_GTAProce]             MainThrd/ Stopping resource wh-phone
[    503547] [b2699_GTAProce]             MainThrd/ Stopping resource wh-target
[    503547] [b2699_GTAProce]             MainThrd/ Started resource wh-target```
its almost just not an option xD just restart at that point
ashen raft
#

on the dev server+

hushed fable
#

ahh yeah

ashen raft
#

Like how much do you work on at the same time that uses it

hushed fable
#

lol not much when i do have to restart it for focusing on 1 thing i let the others just fade away and do a restart after its all set

#

to be fair, i wish QB had a Dev mode similar to ive seen on the streams for places like nopixel if it does im just dumb enough to not find it yet xD

ashen raft
#

Yeah

#

some way to restart qb-core without killing the server also

hushed fable
#

Yepppp would be fantastic.

#

ive watched a few NP streams, and then seen a few streams of people who stole NP source Laugh while crying and seen devmode through those. its so nice. Activate it and have all polyzones show and easily add/toggle them xD

ashen raft
#

Tbf i think a lot of that is kinda how we do debugs for our script

#

just a command instead

#

just wrap stuff in if statements haha

#

We have these everyyywhere

#

I legit make so many I added a snippet in vscode lol

hushed fable
#

that is very true, now is there a ingame command like /cwraidDebug which can switch it real time?

#

its sooo close ๐Ÿ˜›

ashen raft
#

I think that'd be super easy to add no what I think about it

#

cause you can modify the Config lol

#

I've done it by accident many times kek

#

Sometimes lua doesn't want to assign things to Variables and instead makes them references

hushed fable
#

yeah it would just be a command that changes a bool from true to false or reverse and just saves it in the config

#

do you guys know of any scripts with camera movement in them? i wanna look it over and see what i can do to enhance raidjob with a panning camera on mission acceptance

ashen raft
#

I've never used any thinkies

hushed fable
#

hmm, time to dig around

hushed fable
#

now to figure out panning

#
RegisterCommand('cameratest', function()
    DoScreenFadeOut(300)
    Wait(350)
    curCam = CreateCamWithParams('DEFAULT_SCRIPTED_CAMERA', 1451.32, 6547.43, 24.88, 0.0, 0.0, 180.0, 90.00, false, 0)
    print("cam active")
    SetCamActive(curCam, true)
    RenderScriptCams(true, true, 1000, true, true)
    Citizen.Wait(1000)
    DoScreenFadeIn(500)
end, false)

RegisterCommand('camerastop', function()
    DoScreenFadeOut(300)
    Wait(350)
    RenderScriptCams(false, true, 1000, true, true)
    Wait(1000)
    DoScreenFadeIn(300)
end, false)
#

only issue im having so far is say your at the bottom of the map and the cam is in paleto, you get the Low LOD map, so im guessing i might have to save coords and actually Move the character to the spot during the scene

#

to properly render entities and such

hushed fable
#

Also sidenote Camera's can straight softlock the game xD

ashen raft
#

Ah so it'd pan over the place you gonna rob?

hushed fable
#

Yeah

ashen raft
#

Slight problem fyi:
The ped spawner can be S L O W if you have many NPCS kek

#

we had to set a wait function on the spawner cause if you go to fast it fucks up netids

hushed fable
#

i remember seeing that prior to, maybe a check to see if its looped through the list then pass a true variable to run the cam script?

#

unless its really a long delay between spawns

#
RegisterCommand('cameratest', function()
    DoScreenFadeOut(300)
    Wait(350)
    curCam = CreateCamWithParams('DEFAULT_SCRIPTED_CAMERA', 1451.32, 6547.43, 24.88, 0.0, 0.0, 180.0, 90.00, false, 0)
    print("cam active")
    SetCamActive(curCam, true)
    RenderScriptCams(true, true, 1, true, true)
    Citizen.Wait(1000)
    DoScreenFadeIn(500)
    Wait(300)
    local active = IsCamActive(curCam)
    if not active then
        Wait(100)
    else
        SetCamParams(curCam, 1461.32, 6559.43, 24.88, 17.568, -0.0024, 117.87, 50.0, 3000, 1, 3, 1)
        Wait(3000)
        DoScreenFadeOut(300)
        Wait(350)
        RenderScriptCams(false, true, 1000, true, true)
        Wait(1000)
        DoScreenFadeIn(300)
    end
end, false)
#

fades screen out, switches camera, fades screen in, once the cam is active it moves the cam using setcamparams, after its finished moving it switches back to player

#

its soo close xD

ashen raft
#

@hushed fable there you go, debug command workin

hushed fable
#

Bahahah i love it!

#

sec i got something for you too

#

Here we go!

#

its so Clean

#

ima leave the progress messages up there because im sure somebody else may be curious in the future and i know i had to dig through like 10 diff discords to find info on the natives properly xD

#

Also restarting the Raidjob gives me duped peds ๐Ÿ˜›

sly hamlet
#

@ashen raft ^^

#

Wonโ€™t have to worry about that anymore xD

ashen raft
#

yeah thats gonna be a YOU problem nowh Khatrie

hushed fable
#

lmao

ashen raft
#

Found a way to make qb-target actually do some work and make cleanup easy af

hushed fable
#

Oh very nice

ashen raft
#

This is all that'd be needed

sly hamlet
#

: )

hushed fable
#

Oh snap, okay

ashen raft
#

I'd probably just add all spawned peds to a table and loop over them

#

i'll make a vscode snippet so it can be added in seconds lol

#

no real need to add it until qb gets to merge that PR tho

#

or well

#

ngl

hushed fable
#

you mean IF

ashen raft
#

ill fucking do that for myself

hushed fable
#

They never merge pulls ๐Ÿ˜ฆ

ashen raft
#

haha

#

I have 2

#

one that makes qb-menu have an optional AUTO SORT

#

and one to add all colors for qb-customs cause they're missing like 30% lol

hushed fable
#

ill take those >.> ๐Ÿ˜›

#

sec i made progress, still having an issue with the low LOD maps

#

but i think i have that figured out just not put in yet

ashen raft
hushed fable
#

Eyy, appreciate you,

#

camera adding to raidjob wasnt nearly as bad as i thought it'd be

#

mostly due to the easy setup you guys made

ashen raft
#

Both those are super non invasive also. Mega easy to add

#

what u using for the raycast coords btw

hushed fable
#

i took 2 diff ones and modified / merged them. using RayCastCoords for the one im doing atm where you can do a basic copy of the coords your aiming at, either in vec 3 form or vec 3 with seperate heading

ashen raft
#

Btw, the NPCs spawn last iirc. So you might want to trigger the camera later

hushed fable
#

or another one called encore_pointdev which keeps points in a list that will output to a file, i made it so it shows visable markers on point creation and then saves it to a file after

ashen raft
#

Yeah i mostly want the first one

hushed fable
#

i can send em both, its just edited a ton from the core resources on github

ashen raft
#

we have some homebrewed commands for just just copying vectors

#

would be nice with a raycast for objects tho

#

like if I input /cv4 i get my current vec4

#

in my clipboard

#

easy peasy

hushed fable
#

ill re-edit it back to a QB basis and send ya a copy

ashen raft
#

I dont really need the second part

hushed fable
#

Yeah they are 2 seperate things

ashen raft
#

so the first one might be enough for me

#

all I want is the vec3 of the spot im raycasting to

hushed fable
ashen raft
#

cool thx

hushed fable
#

of course

#

this thing is literally a lifesaver for setting stuff up xD

#

Space gets an output like

vector3(-2609.62, 1867.87, 167.69),
heading = 127.01,

While E Does
vector3(-2609.71, 1867.9, 167.71),

#

if i can change the output though i know you can do it as well lol

ashen raft
#

but it puts it in a file?

hushed fable
#

nah thats the second one

#

this one only copies to clipboard

ashen raft
#

good good

hushed fable
#

Oof that spawntime on guards definitely is a big one lol

#

i wonder, is it possible to move the guard spawning up higher in the chain when the mission itself starts? so maybe they start spawning once you start talking to the NPC and have the 10 second wait

#

should give it enough leeway to spawn them then do camera after

#

22 seconds from mission start to full guard spawns

ashen raft
#

you can probably move it up as far as to where the checks for payment have been made

#

pretty sure the number rn is VERY high also

#

for safety reasons

hushed fable
#

yeah its like a second per spawn if i remember

ashen raft
#

You can always try to lower it

#

but be damn sure to make sure everyone sees em ๐ŸคŒ

hushed fable
#

lol exactly, thats my fear atm especially considering im deving on a closed server atm and my buddy isnt around to help test xD

#

atm i got the cam starting right before the first message but after case spawns. hmm time to mix things around

#

Changed the startR event to before the progressbar comes up, this way it does the cam animation While your "Talking to the boss" similar to getting briefed on the area

#

only issue now is no way to cancel if you start.. Hmm

ashen raft
#

doesnt the discussion start if you dont have the money also?

#

so you could get the brief and then after it'd fail the job-taking

hushed fable
#

Yeah so that breaks it that way

#

hmm

ashen raft
#

Would be better to do the check before

#

like we do with darkweb

#

adn trading

hushed fable
#

right, maybe setting up a server event to check payment, if so then itll do the progressbar/animations

#

and take payment after

ashen raft
#

there's a clientside way to check if the player has the money etc

#

and iirc the token check can also be clientside

hushed fable
#

if your using ox you can just do exports.ox_inventory.Search('count', money) xD

#

but im trying to make it so i can push it over to you guys

#

so avoiding ox exports atm

ashen raft
#
    local Player = QBCore.Functions.GetPlayerData()
    if Player.money['crypto'] >= product.price then
#

for clientside

#

these checks are way cleaner than raidjob huehue

#

I gotta add a function export for tokens

hushed fable
#

that did it

#

ima resub to nitro soon to just send clips, this medal stuff is annoying xD

#

not gonna lie, that looks nice

ashen raft
#

That's pretty fuckin cool

hushed fable
#

๐Ÿ™‚ Glad i can help lol i may take me a few days but i get to most things i say ima do haha

ashen raft
#

Make sure it works for tokens and not just money also stolen_eyes

hushed fable
#

xD Hmm is it possible client side to check token?

#

similar to what we just did with cash?

ashen raft
#

currently it's a callback

#

so you'd have to wrap everything that's after in that

#

the example of darkweb i sent has it

#

i'mma make a function maybe next week tho. Similar to how hasItem works now

hushed fable
#

hasItem is gone in Ox xD it uses search. Uhm alright i should be able to, might require re-working the start function as a whole and just putting the stuff it does in a function on its own

ashen raft
#

i'd wait for the function thing

hushed fable
#

alright

ashen raft
#

I can do raidjob first as an example with the updated way to do it

#

that way you can see how it changed

hushed fable
#

that'd be awesome yeah this way i can work off example xD

hushed fable
#

well your fix worked for spawnped and raidjob just added it in

#

Wait you forgot a line xD

#
    if resource ~= GetCurrentResourceName() then return end```
#

without the 2nd line if any resource stops it stops deletes the peds lmao

hushed fable
#

so yep that was right also, just doing a fast teleport during the screen fade out of the character to the cam position, setting their alpha to 0 and freezing them in place while the cam moves gets rid of the bad LOD problems for an area, it also shows civ peds active and walking and such then

hushed fable
#

it looks fantastic though

ashen raft
hushed fable
#

i actually added a config option to set the cam move speed for that exact reason

#

so you can set it per job now xD

ashen raft
#
    "Entities add": {
        "prefix": "snent",
        "body": [
          "Entities[#Entities+1] = ${0}",
        ],
        "description": "quick hand for adding to entites table"
    },
    "Entities delete all": {
        "prefix": "snentdel",
        "body": [
            "AddEventHandler('onResourceStop', function (resource)",
            "   if resource ~= GetCurrentResourceName() then return end",
            "   for i, entity in pairs(Entities) do",
            "       print('deleting', entity)",
            "       if DoesEntityExist(entity) then",
            "          DeleteEntity(entity)",
            "       end",
            "    end",
            "end)",
        ],
        "description": "quick hand for adding to removal function for Entities table"
    }
#

Some VSCode snippets for quickhand adding enties to "Entities" table

#

and for adding a deletion of it on restart

hushed fable
#

Very nice

#

i just converted Randolios Burgershot job to Ox_inventory. you guys are the only ones i normally push stuff to though xD

hushed fable
#

its also using anims instead of Dpemote atm

ashen raft
#

Snippets โค๏ธ

hushed fable
#

Gotta love it just for ease of use

#

i cleaned a bunch of my extensions before, i gotta add new snippets for onResourceStop and such in general.

ashen raft
#

So now anytime i spawn an entity i just push it to that table in the file, and upon restart it'll clear it

hushed fable
#

Eyy im excited to see how its done when you push it towards the plugins, i have it down roughly for Raidjob atm but im not sure if it causes dupes on reload. i think i had that issue earlier

#

im happy to finally have burgershot done xD ive been slacking on business adding for this server and its one of the few things i got left to add in

hushed fable
#

okay thats just fucking clean and showing off now

#

xD

#

CW-VsSnippets When? xD

ashen raft
#

lmao i can probably make one of those

hushed fable
#

lol thats a section i havent gone to far into yet, I've modified what i needed for my name changes but thats about it lol

ashen raft
#

On each tab press it jumps to next "input"

ashen raft
hushed fable
#

Im disappointed in the world for not having a Gif of Dani stealing some code and throwing it in his pocket

hushed fable
#

๐Ÿ˜ฎ Just the creator of the #24th wishlisted game on steam, xD (inside joke if you watch a devlog of him youll see)

https://youtu.be/GWc7QppCPHM?t=53

#

Timestamped for the joke xD

#

well the code yoinking one lol, he does it in a ton of videos

ashen raft
#

Hey i have one of those keyboards

#

Varmilo justright

hushed fable
#

bahaha ill just sit back on my shitty razer blackwidow elite tourney edition xD

#

next keyboard im just building myself and fine tuning it all lol

ashen raft
#

I also have a moonlander ๐Ÿ‘€

hushed fable
#

How in the world do you type on that thing

ashen raft
#

like normal

#

just with less movements

hushed fable
#

huh, i feel id have to retrain myself to use that

ashen raft
#

Kinda, in the beginning

#

took me like a day

#

mostly learning that my thubs now control more stuff

hushed fable
#

i mean thats fair, i used to mess around with diff key layouts instead of the standard QWERTY so it was around a day or so to re-learn those

ashen raft
#

Yeah i think that is wayyyy harder than learning to use a split

hushed fable
#

i mean i wasnt fluent in a day but it became usable lol

#

xD

#

im sure there is a better way to do this but ngl im loving ox more and more

local ingredients = exports.ox_inventory:Search('count', {"bun", "burger-raw", "lettuce", "tomato"})
    if ingredients['bun'] >=1 and ingredients['burger-raw'] >=1 and ingredients['lettuce'] >=1 and ingredients['tomato'] >=1 then
#

Search for 4 diff items and allow diff amounts per item for the checks after

ashen raft
#

Ox seems nice ๐Ÿ‘Œ

hushed fable
#

its a rough start but if you use some common sense and read the docs it just works so well.

hushed fable
#

@ashen raft @tacit lotus the poor racing app channel xD

#

Cw-lib will be here eventually

#

With all your token functions pre set

ashen raft
#

fair

#

But yeah @tacit lotus , lets continue spamming here hahaha

hushed fable
#

Lol don't wanna minimod or anything but save the channel for help lmao

ashen raft
#

I dunno if I need to add the whole inventory stuff tho honestly. I could just let the player market work how it wants. There area a multitude of "garbage inventory" mods that add inventories right?

#

So spawning traders to handle the deals might just be better

#

and easier for us

hushed fable
#

I mean screw the inventory can make it just a qb menu object interaction

ashen raft
#

Ngl... i just had a great idea

hushed fable
#

Build a menu list using the array and show items with a button to claim/pickup

#

Oh?

ashen raft
#

Make it non-purchase dependant

#

just permanent traders around that deal with different tokens

#

like the uzi token guy now

#

You can purchase the uzi token from the token market

#

but you still need to know where the trader is to use it

#

That also makes your token steal-able

#

or you can sell it even

hushed fable
#

So you get the items but still need to dig in the city to know where to use them

ashen raft
#

yup

hushed fable
#

I have something like that setup with my jewelry vendors for when people rob vangelico

ashen raft
#

It'd work EXACTLY like right now. But just utalize cw-trading for that stuff

#

oh... i nthat case i dont have to do anything

#

maybe add some more darkweb traders

hushed fable
#

And it also is setup to read if a player is in a gang. Trader caninteract is based on that. So regular people have a vendor they can use

#

And gangs have one with a higher price

#

To make pedestrians wanna interact and sell through gangs for a higher cut

ashen raft
#

gang affiliation locks for traders is a good idea

#

adding that to the trello

hushed fable
#

Eyy

#

I have mine where you can set it to any gang or specific ones

#

This way a certain family can hold rights to a vendor

#

To give reason to contest them

ashen raft
#

People will camp the traders tho

#

kinda bummer

hushed fable
#

Idk I can't say for a low population server but when I seen a similar system used on a 300+ server the vendors were always dead. I'd expect the same thing as you though

ashen raft
#

tbf, on TFRP people learned the spots the darkweb would place stuff and camped them anyway

hushed fable
#

The thing is putting them in isolated areas away from anything else

ashen raft
#

even tho they changed

hushed fable
#

That's upsetting

#

Would make sense to have a rule to avoid camping known areas without prior Intel at that point.

#

Warn/punishable offense it

ashen raft
#

Youd think that. But then when Wuggie raised the problem to the staff he got banned instead kek

hushed fable
#

I know with ideas like my oxyrun that I started with way back when. I planned on having 4 spots and every 30 min he would swap spots. So even if they knew. They never knew the exact and had to look for him

#

Oh Jesus l

#

I mean as I said I've gotten banned over a clown emoji on a discord. XD I was told I didn't understand how hard development was and I was disrespectful.

ashen raft
#

Yup

#

the people camping were friends with staff

#

so they accused wuggo of stream sniping

#

@clear vine right?

hushed fable
#

That's insane. Then again I seen something similar just recently. Dude streaming said how the admins gang "was doing meta and ooc convos" to his chat. 2 min later admin banned him for disrespect and came in his chat talking shit

#

It's like fiveM server owners have this power trip. If I get that bad ever just ddos me.

#

Flatline my home and server.

ashen raft
hushed fable
#

Lol I'm serious, anyways I see fake plates on the todo >.> I'm curious haha nui?

ashen raft
#

It's been there for a while

hushed fable
#

Ohh I'm blind then lol

ashen raft
#

We already have plate swaps down

#

Just gotta figure out how to best implement fake plates

#

there's already a field for it

#

in the db

#

but how to make sure it's read FIRST by cops etc

#

i guess just an "if has fake plate then do this"

#

but I also want to not have to modify the police sides

hushed fable
#

Ahhh true. Hm wonder how it would interact with like wraith and such then

#

For bolo scanning

ashen raft
#

wonder if some more advanced scripts already take the fake plate into account

hushed fable
#

I'm not at the PC atm but I'll look through wraith later. I use it already

#

Wonder if you'd just have to toss the fakeplate into regular vehicle plate and keep the original plate in the faceplate spot. So this way it can read and swap back

#

Clearing the field after

#

Just for convenience sake and integration ease

clear vine
hushed fable
#

Lmao he could of pulled up chatty at any point and seen all users. That's if your advanced. Could just use his stream dashboard lmao

#

That's sad. People are sad

clear vine
#

They also told me, after I said that was kind of unfair, I used meta info and it was OOC that I bid on, quite highly, something that the opposite gang had the high bid on... and it was out of spite and OOC..

#

Don't exaclty know how it is OOC that I bid what the product is worht (or even less) to make them lose money, and I would have paid, but funny how it ended right after and they still won it.. but oh well ๐Ÿ˜„

hushed fable
#

Yeahhh thats some petty nonsense seems like they just wanted to find a "reason" to boot ya. as i told Coffee earlier, if i get that bad just DDoS my connection, rip it outta the wall if ya gotta lol

vivid sigil
#

Does anybody know how to sync the time on a qbcore server with real time?

ashen raft
# vivid sigil Does anybody know how to sync the time on a qbcore server with real time?

A cool idea for sure. Reminds me of old (current??) pokemon games that youd have to play different times of the day etc haha https://forum.cfx.re/t/change-lenght-of-the-day-24-houres-system-not-48-min/106165/5?u=coffeelot

ashen raft
icy token
ashen raft
#

Says on tebex to dm them for support

icy token
#

Yeah and no response ๐Ÿฅฒ

#

Its a free script on her Discord

#

Just the gps is not working

hushed fable
#

Mmmm Debug updates ๐Ÿคค

#

Time to do a backup, also ill have more updates to prints xD seems i was still pulling from Shared.Items vs Ox_inventory. so expect an update

#

and lets see how much i break or if i gotta manually do all of it.

ashen raft
#

Why do you rename qbcore hmmmm

hushed fable
#

because im a bad person and havent updated from source in over 4 month with features QB refuses to add like PermID's and such which required a core rework entirely xD

hushed fable
#

not gonna lie, rather surprised but only 1 single error outta all those so far. and it was cuz its was part of JS not Lua

hushed fable
#

does anyone by chance know of a plugin to display bone names on peds and vehicles?

ashen raft
#

No, but when researching for putting props in hands I found a script where they listed most of the bones thinkies

#

ill see if i can find it

hushed fable
#

i found a tool thats about 4 years old called bonedev, it was missing quite a few vehicle bones but got it sorted out and added em in.

#

i took the idea i put into suggestions and wanted to see how easy it would be to setup the main function of the job (the vehicle)

hushed fable
#

@ashen raft want the snippet? It's a single thread for it. There are natives attached to the handler and containers

#

You guys would make a better job than I could haha. I'm thinking of going maybe along the route of a shipment of containers came in. Gotta sort em to loading areas on the docks and get paid per container. Maybe a chance to have some items fall out for extra gains

#

Use a polyzone with debug on to mark the zone client side make sure center is within a radius of the center of the zone and boom. (Just spitballing ideas really)

ashen raft
#

If I ever have to deal with bones again ill be sure to bug you about it haha

hushed fable
#

Lol I meant the sample for the handler vehicle. ๐Ÿ˜› but that too whenever ya need it.

icy token
#

What does this Error mean

ashen raft
#

I remember fixing it back when we were deving on a server. It's annoying cause it breaks qb garages iirc

#

I can't recall what the issue was, or the fix

icy token
#

this is where the error points out

ashen raft
ashen raft
icy token
#

any solution

#

the script works fine

ashen raft
#

Something somewhere is nil and you're trying to fetch a value that doesn't exist

icy token
#

just getting this error

icy token
ashen raft
#

I don't know hahaha

#

You'll have to find that out

icy token
#

hmm

#

ok

hushed fable