bl9z, post: 301274, member: 65234 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.
0
2y ago#42
Periphery, post: 301283, member: 7249 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!
0
2y ago#43
most
Periphery, post: 301283, member: 7249 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.
0
2y ago#44
bl9z, post: 301292, member: 65234 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.
0
2y ago#45
martink7331, post: 301290, member: 49594 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.
0
2y ago#46
damn this looks good ngl
0
2y ago#47
Periphery, post: 301317, member: 7249 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 .
0
2y ago#48
martink7331, post: 301321, member: 49594 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.
0
2y ago#49
Periphery, post: 301327, member: 7249 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?
Damn crazy script, will definetly try it out! Thanks
0
2y ago#56
nice script goood thx !!!
0
2y ago#57
es , it wont work as it is
0
2y ago#58
It was a Excellent Script Thank you
0
2y ago#59
Periphery, post: 301283, member: 7249 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.
0
2y ago#60
n i c e s
0
Sign in to reply
Join the discussion — it takes less than a minute.
139 replies
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!
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.
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 .
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?
Damn crazy script, will definetly try it out! Thanks
Hell yeah. Someone finale things the same way like me.