#someone who can help me with some stuff ?
1 messages · Page 1 of 1 (latest)
not really i have scripts that need QB-target and i dont go install Qb-target in my Qbox target ?
then convert them from qb-target to ox_target
or use a version of ox_target that still has qb-target support
then i need to look because much of the scripts need also have exports from Qbcore but i have Qbox haha
alot of qbcore plugins are plug and play
but some needs tweaking.
yeah and i dont know how haha i mean much scripts use Qb-target but i dont go install that in Qbox haha
ox-target and qb-target is somewhat the same but also not
converting ain't that hard.
Documentation for Overextended's resources for FiveM/RedM
Documentation for Overextended's resources for FiveM/RedM
should help you out alot
yeah i have already the OX_target but now i need to change that in the scripts but i dont know how ? and where exactly if you understand ?
Hard to say as all of them are built diffrent
but mostly you need to change qb-target
so search for it in the scripts.
for a boxzone you should use
exports.ox_target:addBoxZone
qbx_core don't have aGetCoreObject.
that's from qb_core
i think
yeah thats is like i said haha so i need to change a much then for let that to work ? haha
probably
as i have no idéa how your server is built up i have no idéa
i have just the Qbox server haha standard outside like 10 other scripts haha
Try to convert one and i can help you out if you get errors.
yeah i understand but how with thiss ?
Well that
i have no idea if you just draged and dropped it
yeah i just take it and drop it in
Well
that makes it harder. Have never had that kind of error unless i changed it myself.
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:
let me drop it again haha
haha seems it fixed it self haha
outside thiss one haha
i gonna do right now
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
so i need to set thiss one in that line ? or ?
i understand it means there need to be maked a boxzone ?
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
and where i need to make that one inside ?
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?
yeah but where must i make that addboxzone in ?
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
so thiss one i need to replace with the one on the line 35? right?
yeah try it out
Here's a better one for the job garage
https://discord.com/channels/1012753553418354748/1297213160935260190
let me check
i wanted some with these things haha not just the garage label haha
That's easy to make urself
then i need to look how haha im learning with Qbox so yeah aha
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
vito you have a download link for the polyzone ?
Here, let me google that for you:
https://google.com/search?q=fivem polyzone
and i need just to install the polyzone and change from Qbtarget to ox-target and the same for inventory right ?
Polyzone is only if you have scripts using it. Resources using qb-target that do not support ox_target need to be manually converted. Inventory as I said is only if you have resources using qb-inventory for custom stashes and are not supporting ox_inventory
yeah i understand yes i gonna first install the poly zone for trying
someone who can say me where i can ADD clothing in my Qbox files ?
Just start the clothing resource anywhere
oh that is shit then i mean i have a EUP and i want add it in the Clothing room from the police but then it is not possible
or is there not one place where the clothes are ? like one folder ?
No