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.
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.
0
2y ago#33
Periphery, post: 300882, member: 7249 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.
0
2y ago#34
it works with the 0r motel ?
0
2y ago#35
martink7331, post: 300937, member: 49594 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.
0
2y ago#36
Also for the record, This is just 0r-craft. Doesn't look like NoPixel in the slightest.
Periphery, post: 300972, member: 7249 Also for the record, This is just 0r-craft. Doesn't look like NoPixel in the slightest.
If you could share with us the version that does not require 0r_lib, then people would rather bother with it.
0
2y ago#38
Periphery, post: 300971, member: 7249 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.
0
2y ago#39
martink7331, post: 301015, member: 49594 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
Periphery, post: 301262, member: 7249 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
139 replies
bro this script is insane.. thanks for sharing
[CHARGE=30][/CHARGE]
If you have done this, can you share it with us or if you have 0r_lib open source, can you share it?
0r-craft [NoPixel 4.0 Inspired] [open source]
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.
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.
If you could share with us the version that does not require 0r_lib, then people would rather bother with it.
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.
Bro you know a lot abt this but most of us don’t, just share the working version, ill pay 300credits