• Passenger Mod breaks Inventory
    15 replies, posted
Hey, Lately I've been trying things with vehicles and found Passenger Mod. An amazing addon. But when I released the update it seemed to have broken my server's inventory. I have found what function was breaking the inventory and they will be seen below. I have no idea how I am suppose to fix this. But I'm hoping you can. I truely appreciate all the help that I can get. Passenger Mod function that breaks inventory: [url]http://pastebin.com/KyZLqtrh[/url] Inventory server code: [url]http://pastebin.com/ycvHuGMz[/url] Kindest Regards, Ryan Stealth
If you want this fixed, I suggest going to [url]http://CoderHire.com[/url] - In this day of age, people will not do this for free. :(
Both of these mods are using a boolean named canuse on players. Try to replace canuse with something such as passCanUse everywhere it's used in the passenger mod and leave the inventory mod alone. (Ctrl+F and replace canuse with passCanUse in all of its files)
[QUOTE=Cep.;42714308]Both of these mods are using a boolean named canuse on players. Try to replace canuse with something such as passCanUse everywhere it's used in the passenger mod and leave the inventory mod alone. (Ctrl+F and replace canuse with passCanUse in all of its files)[/QUOTE] EDIT: It didn't do the trick. Maybe it's the hook? [LUA]hook.Add("PlayerUse", "ChooseSeat", ChooseSeat)[/LUA]
[QUOTE=reenesj;42714608]EDIT: It didn't do the trick. Maybe it's the hook? [LUA]hook.Add("PlayerUse", "ChooseSeat", ChooseSeat)[/LUA][/QUOTE] That could only screw up if the inventory mod had a function named ChooseSeat as well, which it doesn't. Could you post the entire code for both of the addons? And the error if you're getting one.
[QUOTE=mib999;42713594]If you want this fixed, I suggest going to [URL]http://CoderHire.com[/URL] - In this day of age, people will not do this for free. :([/QUOTE] [U][B]Coderhire can go die in a fire.[/B][/U] If people can't be bothered to help others with about 2 minutes of there time, sharing knowledge and experience, then no one new will learn and subsequently implementation of fantastic ideas will dry up!
[QUOTE=spikeman14;42721761][U][B]Coderhire can go die in a fire.[/B][/U] If people can't be bothered to help others with about 2 minutes of there time, sharing knowledge and experience, then no one new will learn and subsequently implementation of fantastic ideas will dry up![/QUOTE] And how is this helping exactly? I will look into the problem when I get home, hopefully it is just a simple variable confliction.
[QUOTE=spikeman14;42721761][U][B]Coderhire can go die in a fire.[/B][/U] If people can't be bothered to help others with about 2 minutes of there time, sharing knowledge and experience, then no one new will learn and subsequently implementation of fantastic ideas will dry up![/QUOTE] If people want to learn, they will learn, not ask for finished solutions on forums.
[QUOTE=mib999;42713594]If you want this fixed, I suggest going to [url]http://CoderHire.com[/url] - In this day of age, people will not do this for free. :([/QUOTE] go away
[QUOTE=Robotboy655;42722176]If people want to learn, they will learn, not ask for finished solutions on forums.[/QUOTE] Exactly my point, but when people stumble across a coding problem and ask for help and people ask them to go to coderhire they will never learn!
[QUOTE=spikeman14;42721761][U][B]Coderhire can go die in a fire.[/B][/U] If people can't be bothered to help others with about 2 minutes of there time, sharing knowledge and experience, then no one new will learn and subsequently implementation of fantastic ideas will dry up![/QUOTE] But people have been giving help above your post.
Most of the people who are new to lua and ask help bug you 24/7, when you say that you're busy they say "pls its 1 minute pls look at it" and all they want you is to fix their stuff instead of actually help with lua/help them learn. Good example is Snorlaxs, luckily he's banned for another few good days.
[QUOTE=spikeman14;42723079]Exactly my point, but when people stumble across a coding problem and ask for help and people ask them to go to coderhire they will never learn![/QUOTE] OP is not coding anything by the way, it's a mod conflict, which ideally should be reported to mod authors, not random coders that never seen these addons from inside.
Hello, I've seen this post has burst into hell since yesterday. I've been able to fix it myself. However when I put on a job on coderhire someone came up to me and wanted 10 dollars. Saying that he wasn't mexican and doesn't work for 2.50 (I knew this wasn't hard to fix) Anyone curious what it exactly was? Simply putting this on top: [LUA] if car:GetClass() == "prop_vehicle_jeep" then [/LUA] That guy was asking 10 dollars for this single line.
[QUOTE=reenesj;42726184]Hello, I've seen this post has burst into hell since yesterday. I've been able to fix it myself. However when I put on a job on coderhire someone came up to me and wanted 10 dollars. Saying that he wasn't mexican and doesn't work for 2.50 (I knew this wasn't hard to fix) Anyone curious what it exactly was? Simply putting this on top: [LUA] if car:GetClass() == "prop_vehicle_jeep" then [/LUA] That guy was asking 10 dollars for this single line.[/QUOTE] that single line isn't valid lua by itself so either the script was already giving lua errors before you started or you just made it worse
[QUOTE=Goz3rr;42727775]that single line isn't valid lua by itself so either the script was already giving lua errors before you started or you just made it worse[/QUOTE] The inventory entities and the vehicle "getting inside car" function were bitching with each other. This line made it so the passenger mod function only focusus on that vehicle and since all my vehicles are based on "prop_vehicle_jeep" it all works perfectly well.
Sorry, you need to Log In to post a reply to this thread.