• DarkRP - Selling doors as groups
    1 replies, posted
I'm trying to learn lua by making a Cops and Robbers gamemode using DarkRP as a base because it has a lot of useful shit, one of which being door ownership. However, the way door ownership works in vanilla DarkRP is fucking stupid, because each door is individual. People buy just the front door to a big ass mansion, and then whine about how raiders broke in and bought the door to the room where all their printers are. Or they buy random doors and never use them. They CBA to sell doors when they're done with the property. I despise these door clusterfucks, and I hate you if you do this kind of shit. I'd like to do something like in PERP where doors are grouped together as an estate. That is to say if you buy one door to a property, you buy [I]all [I][/I][/I] the doors to a property. And then I can price properties according to the size, doors, location, etc. so I don't have little degenerates like these buying the biggest house on the server on a first-come-first-serve basis just to base by themselves. If you know how to do something like this, please help a brotha out. I don't need you to code this for me, I just need a general idea of how to go about making a system like this. I'm assuming you'd insert the doors into a table for each property and loop through them all upon buying one, but I have no idea how to add a door to a group as a unique entity. Thanks.
[url]https://facepunch.com/showthread.php?t=1400737[/url]
Sorry, you need to Log In to post a reply to this thread.