• We have a new discord! click here to join
    Any faulty links ? Report them in our discord or via our Ticket System!
    We do everything we can to protect the safety of our visitors, if any resource contains malware in any kind of form or obfuscation please report it aswell ♡♡

STANDALONE 0r-craft [NoPixel 4.0 Inspired] [open source] (1 Viewer)

martink7331

Member
May 17, 2023
45
30
18
Credits
2,726
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.
Hi again! The problem with me is this function Koci.Client.Craft:AddAttachmentToWeapon(_weapon, newAttachment, cb), i made the function LoadWeaponOnTable and the LoadPropOnTable all works fine i see the weapons, but the attachments i cant figure out how to add them for now i have them added with 0 , 0 , 0 coords and then i attach them to the weapon but not working fine with the coords of the actual weapon object. If you can explain me that i'll be glad!
 

bl9z

Member
Dec 30, 2023
25
7
8
Credits
2,544
most
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

Not everyone is doing this to use it on their server, some people like me are doing this to Learn more but I totally understand what you’ve said.
 

Periphery

Well-known member
Sep 20, 2021
281
31
28
Credits
27
most


Not everyone is doing this to use it on their server, some people like me are doing this to Learn more but I totally understand what you’ve said.
Code like this is far too complex to start learning. 0Resmon made the code so convoluted that a novice can't reverse engineer it for it to make sense. They have functions within subfunctions that to someone new makes 0 sense and they have no clue where to begin.
 

Periphery

Well-known member
Sep 20, 2021
281
31
28
Credits
27
Hi again! The problem with me is this function Koci.Client.Craft:AddAttachmentToWeapon(_weapon, newAttachment, cb), i made the function LoadWeaponOnTable and the LoadPropOnTable all works fine i see the weapons, but the attachments i cant figure out how to add them for now i have them added with 0 , 0 , 0 coords and then i attach them to the weapon but not working fine with the coords of the actual weapon object. If you can explain me that i'll be glad!

Did you declare the variables? Because if you don't have createdWeaponObjectOnTable as a global variable, then the literal first line of this function if _weapon.object == createdWeaponObjectOnTable will be nil and it won't do much. Did you replace Koci.Utils:LoadModel(componentModel)? Because that can also be the reason your attachments won't load. You can also simply add a verbose logging by printing each part where it won't work by printing the declared variable you want to check and see if it returns a valid boolean or even get toggled to begin with.
 

martink7331

Member
May 17, 2023
45
30
18
Credits
2,726
Did you declare the variables? Because if you don't have createdWeaponObjectOnTable as a global variable, then the literal first line of this function if _weapon.object == createdWeaponObjectOnTable will be nil and it won't do much. Did you replace Koci.Utils:LoadModel(componentModel)? Because that can also be the reason your attachments won't load. You can also simply add a verbose logging by printing each part where it won't work by printing the declared variable you want to check and see if it returns a valid boolean or even get toggled to begin with.
Yea the loadmodel i replaced with requesrobject too. Same result. I have shown the attachment but the attachment position is in the middle of the weapon not on the actual position where it should be .
 

Periphery

Well-known member
Sep 20, 2021
281
31
28
Credits
27
Yea the loadmodel i replaced with requesrobject too. Same result. I have shown the attachment but the attachment position is in the middle of the weapon not on the actual position where it should be .

Did you ever get the Uncaught TypeError: Cannot read properties of Undefined (reading '0')? I had that issue before and that caused some whacky shit with the preview placement.
 

martink7331

Member
May 17, 2023
45
30
18
Credits
2,726
Did you ever get the Uncaught TypeError: Cannot read properties of Undefined (reading '0')? I had that issue before and that caused some whacky shit with the preview placement.
I made like 4-5 code edits and in the beggining yes now with the latest edit i made there is no error just the attachment is not in the right position. Do you have discord tho?
 
  • Post hidden due to user being banned.
  • Post hidden due to user being banned.
  • Post hidden due to user being banned.
  • Post hidden due to user being banned.

Freedom

Administrator
God VIP
Apr 21, 2022
117
22
18
Credits
26,941
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.
Hell yeah. Someone finale things the same way like me.
 

Users who are viewing this thread

Top