• VIP Yearly: 25 euro until end of January! Lifetime is back aswell limited time due to numerous requests due to expensive December months of our community: 40 euro! Get VIP and never need credits again! This helps out the platform and reduces costs of all our nodes/anti ddos/servers.

STANDALONE 0r-craft [NoPixel 4.0 Inspired] [open source] (2 Viewers)

  • Post hidden due to user being banned.

Periphery

Well-known member
Sep 20, 2021
280
31
28
Credits
41
You don't actually need any of that. I have their chat resource that technically requires 0r-lib, but got it fully working without it. If you can code you can simply alter the dependencies.
 

Periphery

Well-known member
Sep 20, 2021
280
31
28
Credits
41

@Periphery


If you have done this, can you share it with us or if you have 0r_lib open source, can you share it?

It took me 2 hours to reverse engineer the 0r_lib parts. All it does with 0r-lib is spawning the items on the craft table, but that's it.. If you can rub 2 braincells together, you can code that yourself.
 

martink7331

Member
May 17, 2023
45
34
18
Credits
3,525
It took me 2 hours to reverse engineer the 0r_lib parts. All it does with 0r-lib is spawning the items on the craft table, but that's it.. If you can rub 2 braincells together, you can code that yourself.
Can you provide an code for that i did the same thing I used createobject with requestmodel but for some reason in my case it gets the weapon name instead of weapon streamable object. Also the components don’t want to stream even with all my edit. Sorry if i bother you mate.
 

Periphery

Well-known member
Sep 20, 2021
280
31
28
Credits
41
Can you provide an code for that i did the same thing I used createobject with requestmodel but for some reason in my case it gets the weapon name instead of weapon streamable object. Also the components don’t want to stream even with all my edit. Sorry if i bother you mate.


local modelHash = object.name

if not HasModelLoaded(modelHash) then
RequestModel(modelHash)

while not HasModelLoaded(modelHash) do
Citizen.Wait(1)
end
end

local createdObject = CreateObject(modelHash, _coords.x, _coords.y, _coords.z, false, false, false)

works just fine. You messed up somewhere.
 

martink7331

Member
May 17, 2023
45
34
18
Credits
3,525
local modelHash = object.name

if not HasModelLoaded(modelHash) then
RequestModel(modelHash)

while not HasModelLoaded(modelHash) do
Citizen.Wait(1)
end
end

local createdObject = CreateObject(modelHash, _coords.x, _coords.y, _coords.z, false, false, false)

works just fine. You messed up somewhere.
Hi again! Thanks for answering and thats the same thing I did. I will check again after work to see if miss spelled the modelHash, but in my case it worked in all other 3 functions but inside here "function Koci.Client.Craft:LoadWeaponOnTable(weapon)" I couldn't make it.
 

Periphery

Well-known member
Sep 20, 2021
280
31
28
Credits
41
Hi again! Thanks for answering and thats the same thing I did. I will check again after work to see if miss spelled the modelHash, but in my case it worked in all other 3 functions but inside here "function Koci.Client.Craft:LoadWeaponOnTable(weapon)" I couldn't make it.

I removed all the Koci.Client.Craft: nonsense and converted them to regular functions. If you plan on doing the same, make sure you actually list

createdShopBlips = {},
createdShopBenchObjects = {},
openedShop = nil,
isTheShopOpen = false,
shopCam = nil,
createdWeaponObjectOnTable = nil,
selectedWeapon = nil,
createdItemObjectOnTable = nil,
CraftingQueues = {},
completedCraftingQueues = {},
queueThreadIsActive = false

as variables first.
 

bl9z

Member
Dec 30, 2023
25
7
8
Credits
2,544
I removed all the Koci.Client.Craft: nonsense and converted them to regular functions. If you plan on doing the same, make sure you actually list

createdShopBlips = {},
createdShopBenchObjects = {},
openedShop = nil,
isTheShopOpen = false,
shopCam = nil,
createdWeaponObjectOnTable = nil,
selectedWeapon = nil,
createdItemObjectOnTable = nil,
CraftingQueues = {},
completedCraftingQueues = {},
queueThreadIsActive = false

as variables first.
Bro you know a lot abt this but most of us don’t, just share the working version, ill pay 300credits
 

Periphery

Well-known member
Sep 20, 2021
280
31
28
Credits
41
Bro you know a lot abt this but most of us don’t, just share the working version, ill pay 300credits
Yes because I can code, and I don't believe in handouts to people that can't code. If you can't fix a simple line of code, you have literally no business in having a server.
 

Users who are viewing this thread

Top