• [DarkRP] Properties Mod - Buy/Sell doors in sets
    126 replies, posted
[QUOTE=kpjVideo;45216567]Just a short question, has there been any updates or progress in the past few days? Just wondering :P[/QUOTE] When it gets updated, it's posted here. So no
It's nice to see that some useful plugins are released without people trying to pull money out of server owner's wallets. Good job OP. I also like your choice of music :v:
An update will be available soon, courtesy of AirBlack. Who re-did the interface to include the preview mode but in a better more organised way than my idea. So until then, here are some images: [t]http://i.imgur.com/q5t4wFe.jpg[/t] [t]http://i.imgur.com/gLoSYLz.jpg[/t] [t]http://i.imgur.com/wRkmyRo.jpg[/t] [t]http://i.imgur.com/EBToxzf.jpg[/t]
The default derma X looks out of place and I dislike the huge amount of blue.
I like it, not bad, although I think a different font and a sharper design would look better. Maybe different colors too, but I think it needs overall tweaking.
Wow, the preview mode is cool, this is unique in gMod :D I have a question, can i add more than the 2 "basics" npcs ? I tried this (under) but the third cannot spawn. [CODE]Properties.NPCSpawns[1] = { ["name"] = "Hubert Partial", ["model"] = "models/suits/male_09_open.mdl", ["pos"] = Vector( 5014.954102, -3470.371094, -1812.968750 ), ["angle"] = Angle( 0, 0, 0 ), ["whitelist"] = {1}, } Properties.NPCSpawns[2] = { ["name"] = "Florian Ozerks", ["model"] = "models/suits/male_09_open.mdl", ["pos"] = Vector( 4887.964844, -3470.139648, -1812.968750 ), ["angle"] = Angle( 0, 0, 0 ), ["whitelist"] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36}, } Properties.NPCSpawns[3] = { ["name"] = "Jack Dubois", ["model"] = "models/suits/male_09_open.mdl", ["pos"] = Vector( 4753.775879 -3469.895020 -1812.968750 ), ["angle"] = Angle( 0, 0, 0 ), ["whitelist"] = {}, }[/CODE]
Your pos line for the 3rd entry is wrong: [lua] ["pos"] = Vector( 4753.775879 -3469.895020 -1812.968750 ), [/lua] You forgot the commas. Add like so. [lua] ["pos"] = Vector( 4753.775879, -3469.895020, -1812.968750 ), [/lua] Also as a note, for your second entry, you could use a black list instead like so: [lua] Properties.NPCSpawns[2] = { ["name"] = "Florian Ozerks", ["model"] = "models/suits/male_09_open.mdl", ["pos"] = Vector( 4887.964844, -3470.139648, -1812.968750 ), ["angle"] = Angle( 0, 0, 0 ), //["whitelist"] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36}, ["blacklist"] = {1}, } [/lua] The blacklist excludes everything in the table, and has the same effect as what you wrote initially, but is a lot easier to type.
[QUOTE=Alig96;45238359]Your pos line for the 3rd entry is wrong: [lua] ["pos"] = Vector( 4753.775879 -3469.895020 -1812.968750 ), [/lua] You forgot the commas. Add like so. [lua] ["pos"] = Vector( 4753.775879, -3469.895020, -1812.968750 ), [/lua] Also as a note, for your second entry, you could use a black list instead like so: [lua] Properties.NPCSpawns[2] = { ["name"] = "Florian Ozerks", ["model"] = "models/suits/male_09_open.mdl", ["pos"] = Vector( 4887.964844, -3470.139648, -1812.968750 ), ["angle"] = Angle( 0, 0, 0 ), //["whitelist"] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36}, ["blacklist"] = {1}, } [/lua] The blacklist excludes everything in the table, and has the same effect as what you wrote initially, but is a lot easier to type.[/QUOTE] Oh god, i forgot commas, so stupid. Thanks for helping.
[QUOTE=xalof;45238418]Oh god, i forgot commas, so stupid. Thanks for helping.[/QUOTE] No problem, happy to help anyone using anything by me, and it looks like you only registered to comment on this anyway... :v:
[QUOTE=Alig96;45238555]No problem, happy to help anyone using anything by me, [B]and it looks like you only registered to comment on this anyway[/B]... :v:[/QUOTE] Generally, i'm a discreet guy :p but i'm reading a lot of topics :). Sorry for my bad eng!
If you don't like colors then request others. I can repaint it if you want. Maybe add custom colors to config?
[QUOTE=AirBlack;45240225]If you don't like colors then request others. I can repaint it if you want. Maybe add custom colors to config?[/QUOTE] Yeah, that would be great :3
[B]Update v1.2[/B] - Added Preview mode(Thanks to AirBlack) - Comes pre-loaded with config for Rp_evocity_v33x (Thanks to Ds) - Fixed bug: Disallow players to buy a property if they can't afford it. [B]Video Preview[/B] [media]http://www.youtube.com/watch?v=FZ_jP_m4HVg[/media] The update is available on the Github.
Hey, thank you for this mod, I was looking to purchase one but to no avail then after a quick google I come across this, so you really do have my utter thanks!. If I could get a little help though I set the vectors for the npc and I even kept yours but they refuse to spawn but the property system loads fine! There are no errors spitting out basically your code exactly the same just with different vectors :) any help would be humbly appreciated.
Very nice update Alig ! Show us your shconfig.lua Guru, i'll help you :).
Well the config is default there is the only thing I changed. [code]//Config //Npc Spawns Properties.NPCSpawns[1] = { ["name"] = "Bob", ["model"] = "models/odessa.mdl", ["pos"] = Vector( -5996.878418, -8204.536133, 128.031250 ), ["angle"] = Angle( 0, 0, 0 ), //["whitelist"] = {1,2}, } Properties.NPCSpawns[2] = { ["name"] = "Bob's Brother", ["model"] = "models/odessa.mdl", ["pos"] = Vector( -6706.825195, -7730.003906, 136.031250 ), ["angle"] = Angle( 0, 0, 0 ), //["blacklist"] = {1,2}, } [/code]
I can't see a problem with your config; Any errors in the console?
There aren't any errors at all this is why I am truly baffled. You are welcome to come see my server for yourself it is in development. It loads fine just the NPC doesn't spawn.
I guess I'll help you debug it; [url]https://github.com/Alig96/drp_Properties/blob/master/darkrp_modules/properties/sv_spawnnpcs.lua#L6[/url] In that file, put this somewhere within the loop: [lua] print("Attempting to spawn npc @: ", v["pos"]) [/lua] Post the server log. [editline]8th July 2014[/editline] [QUOTE=guru;45329986][code][ERROR] addons/darkrpmodification-master/lua/darkrp_modules/properties/sv_spawnnpcs.lua:6: Tried to use a NULL entity! 1. SetPos - [C]:-1 2. fn - addons/darkrpmodification-master/lua/darkrp_modules/properties/sv_spawnnpcs.lua:6 3. unknown - addons/ulib/lua/ulib/shared/hook.lua:183[/code] [/QUOTE] Lol you posted in the wrong thread, but luckily I saw it. You haven't installed the npc into the entities folder.
Okay, so Guru got banned for a mistake, so I shall be the one talking to you for a while. Even when we use a model we know we have, it still doesn't work. The only reason I can think, is that it's trying to pull from a different directory. We'll take a look at this, and I shall get back to you either way. EDIT: We fixed the issue, thank you very much for your help!
Hey i like this add-on nice work, i can add properties but how do i add a preview to each one?
You've to get the good angle in your property then type getpos in your console and replace the position into your shconfig.lua Properties.PropertyDoors[1] = { ["price"] = 200, ["name"] = "Tides Hotel Room 1", ["poses"] = [B][U]{{pos = Vector(-4404.562012, -5097.754395, 311.723480), ang = Angle(21.507622, 41.077198, 0.000000)}, {pos = Vector(-4089.926270, -5097.647949, 319.979675), ang = Angle(13.520012 ,132.429581 ,0.000000)}, {pos = Vector(-4401.061523, -4689.803223, 315.190979), ang = Angle(26.940025, -40.575134, 0.000000)}}}[/U][/B] Properties.DoorLookUp[1] = {2261, 2292}
[QUOTE=xalof;45335556]You've to get the good angle in your property then type getpos in your console and replace the position into your shconfig.lua Properties.PropertyDoors[1] = { ["price"] = 200, ["name"] = "Tides Hotel Room 1", ["poses"] = [B][U]{{pos = Vector(-4404.562012, -5097.754395, 311.723480), ang = Angle(21.507622, 41.077198, 0.000000)}, {pos = Vector(-4089.926270, -5097.647949, 319.979675), ang = Angle(13.520012 ,132.429581 ,0.000000)}, {pos = Vector(-4401.061523, -4689.803223, 315.190979), ang = Angle(26.940025, -40.575134, 0.000000)}}}[/U][/B] Properties.DoorLookUp[1] = {2261, 2292}[/QUOTE] Ohh i forgot about those angle positions in the default config. Thanks!
I think it looks amazing, but when i try to buy anything it says "You must be looking at a door or vehicle" Why? Is it a bug? Fix it please :)
[QUOTE=PedroBarbosa;45372550]I think it looks amazing, but when i try to buy anything it says "You must be looking at a door or vehicle" Why? Is it a bug? Fix it please :)[/QUOTE] I am assuming you're using this on a map other than rp_evocity_v33x. You must configure it specifically for your map.
[QUOTE=Alig96;45375197]I am assuming you're using this on a map other than rp_evocity_v33x. You must configure it specifically for your map.[/QUOTE] I'm using the V4C :/ Well... hands to work! Edit:// Does anyone have the VMF version of v33x?
[QUOTE=PedroBarbosa;45376727]I'm using the V4C :/ Well... hands to work! Edit:// Does anyone have the VMF version of v33x?[/QUOTE] Also try to update your DarkRP
[QUOTE=AirBlack;45378695]Also try to update your DarkRP[/QUOTE] Its working Updated to the v33x, now what i need is the VMF version >&
[QUOTE=PedroBarbosa;45380240]Its working Updated to the v33x, now what i need is the VMF version >&[/QUOTE] I can setup config for your map. And why do you need VMF?
[QUOTE=AirBlack;45386233]I can setup config for your map. And why do you need VMF?[/QUOTE] Well there's a "Server" version and a "client" version. Sometimes if you use the client one on a server doors disappear.
Sorry, you need to Log In to post a reply to this thread.