#someone who can help me with some stuff ?

1 messages · Page 1 of 1 (latest)

foggy cipher
vital cedar
foggy cipher
#

then convert them from qb-target to ox_target
or use a version of ox_target that still has qb-target support

vital cedar
slate peak
vital cedar
slate peak
#

converting ain't that hard.

#

should help you out alot

vital cedar
slate peak
#

but mostly you need to change qb-target

so search for it in the scripts.

vital cedar
#

and dont the Exports ?

slate peak
#

for a boxzone you should use

exports.ox_target:addBoxZone

slate peak
# vital cedar

qbx_core don't have aGetCoreObject.

that's from qb_core

i think

vital cedar
slate peak
#

probably

as i have no idéa how your server is built up i have no idéa

vital cedar
slate peak
vital cedar
slate peak
vital cedar
slate peak
#

Well

that makes it harder. Have never had that kind of error unless i changed it myself.

covert fiberBOT
#

Information will not be spoonfed to you.
You are expected to be able to learn and understand programming concepts.
Understand that even if you are "new to this dev stuff", we all started off with no knowledge in the space.
Just as we take our time and learn, you are advised to do the same. Here are a few links to help you start:

vital cedar
#

outside thiss one haha

slate peak
#

Actally you chaged "core" in the config

#

try to convert it.

vital cedar
#

i gonna do right now

vital cedar
slate peak
#

show the code

vital cedar
#

haha

slate peak
#

an example

                        exports['ox_target']:addSphereZone({--name, loc["Store"][i].coords.xyz, 1.0, { name=name, debugPoly=Config.Debug, useZ=true, },
                        coords = vector3(loc["Store"][i].coords.xyz),
                         options = { { event = "jim-mining:openShop", icon = "fas fa-store", label = Loc[Config.Lan].info["browse_store"], job = loc.Job, ped = Peds[#Peds] }, },
                            distance = 2.0 })

unsure if i did that but i know that one works

vital cedar
slate peak
#

nah nah

#

i could convert it but i can't make sure it works

vital cedar
#

i understand it means there need to be maked a boxzone ?

slate peak
#

Firstly off

#

AddBoxZone doesn't exist

#

you need addBoxZone

#
                exports.ox_target:addBoxZone({
                    coords = vector3(current.pedcoords.x, current.pedcoords.y, current.pedcoords.z),
                    size = vec3(1, 1, 3.8),
                    debug = false,
            options = {
                {
                        type = "client",
                        label = Lang:t("station_talk_to_ped"),
                        icon = "fas fa-building",
                        event = "cdn-fuel:stations:openmenu",
                    }
                }
            })
        end

that's another example

one that i actally did

vital cedar
slate peak
#

exports[ox_target]addBoxZone

#
                exports['ox_target']:addBoxZone(
                    coords = vec3(out.x, out.y, out.z-1.03) 
                    debugPoly=true, 
                    minZ=out.z-1.05, 
                    maxZ=out.z+0.80,
                    { options = { { event = "jim-jobgarage:client:Garage:Menu", icon = "fas fa-clipboard", label = Loc[Config.Lan].target["label"], job = Locations[i].job, spawncoords = Locations[i].garage.spawn, list = Locations[i].garage.list, prop = Parking[#Parking] }, },  })

does that give you an error?

vital cedar
slate peak
#

the code i gave you is a copy of the one you have

#

try to replace the one you had with the one i gave you

vital cedar
slate peak
#

yeah try it out

vagrant cairn
vital cedar
vagrant cairn
vital cedar
vagrant cairn
#

That's easy to make urself

vital cedar
torn spade
#

Exports that are using qb-core don't need to be converted, as Qbox provides a bridge for that. E.g.:

exports['qb-core']:GetCoreObject()

This should be left as is.

The things you need to convert are any scripts that use qb resources outside qb-core, such as, but not limited to:

  • qb-target to ox_target
  • PolyZone to ox_lib (or just install polyzone)
  • qb-inventory to ox_inventory for custom stashes and inventory opening
vital cedar
covert fiberBOT
vital cedar
#

and i need just to install the polyzone and change from Qbtarget to ox-target and the same for inventory right ?

torn spade
vital cedar
vital cedar
#

someone who can say me where i can ADD clothing in my Qbox files ?

torn spade
vital cedar
vital cedar
#

or is there not one place where the clothes are ? like one folder ?

torn spade
#

No