1. Post #81

    August 2009
    369 Posts
    Since your back, are you going to be working on compatibility for darkrp?

    Also someone suggested combining your shop with Jakes new inventory system which personally I think would be fantastic, you said the problem was that only certain items can be put through the menu, you can pretty much add any entity/swep to his menu holding. I think it would be fantastic if you could add a 1-3 option to either spawn where you select it, spawn in your inventory and the third one which spawns in Jake's inventory, just a thought. :)!
    Reply With Quote Edit / Delete United States Show Events

  2. Post #82
    redx475's Avatar
    February 2009
    547 Posts
    Yes, I am working on compatability with darkrp. I will work with jake to get it working with the inventory (we work on a lot of stuff together).
    Reply With Quote Edit / Delete United States Show Events

  3. Post #83

    August 2009
    369 Posts
    Really looking forward to it, good luck.
    Reply With Quote Edit / Delete United States Show Events

  4. Post #84
    redx475's Avatar
    February 2009
    547 Posts
    Thanks.
    Reply With Quote Edit / Delete United States Show Events

  5. Post #85
    Gold Member
    vexx21322's Avatar
    December 2008
    10,572 Posts
    "You bought a shot!"
    Reply With Quote Edit / Delete United States Show Events

  6. Post #86
    Gold Banana
    Banana Lord.'s Avatar
    May 2010
    6,517 Posts
    Can you add support for Citylife RP too please?
    Reply With Quote Edit / Delete United States Show Events

  7. Post #87
    redx475's Avatar
    February 2009
    547 Posts
    Give me a link to it and I will.
    Reply With Quote Edit / Delete United States Show Events

  8. Post #88
    Gold Banana
    Banana Lord.'s Avatar
    May 2010
    6,517 Posts
    Reply With Quote Edit / Delete United States Show Events

  9. Post #89
    Kasperbjerby's Avatar
    July 2010
    44 Posts
    This is nice :D
    Reply With Quote Edit / Delete Denmark Show Events

  10. Post #90
    Gold Member
    elowin's Avatar
    December 2009
    7,630 Posts
    Its pretty cool, yeah.
    Reply With Quote Edit / Delete Denmark Show Events

  11. Post #91
    redx475's Avatar
    February 2009
    547 Posts
    I'll have both city life and darkrp done tomorrow. I'm busy setting up some servers for other stuff.

    Edited:

    Updated the download to include the bugfixes in the SVN.
    Reply With Quote Edit / Delete United States Show Events

  12. Post #92
    Kasperbjerby's Avatar
    July 2010
    44 Posts
    Can you make it so you can chose it to run a console command insted of spawn somethings? And can you also make it so you can remove the price from an item so it dossent show the prise and dossent show buy but sellect?
    Reply With Quote Edit / Delete Denmark Show Events

  13. Post #93
    Gold Banana
    Banana Lord.'s Avatar
    May 2010
    6,517 Posts
    I'll have both city life and darkrp done tomorrow. I'm busy setting up some servers for other stuff.

    Edited:

    Updated the download to include the bugfixes in the SVN.
    :worship:
    Reply With Quote Edit / Delete United States Show Events

  14. Post #94
    mcskinsearch
    hacksore's Avatar
    February 2010
    1,054 Posts
    Also, npcs can be arrested.
    Reply With Quote Edit / Delete United States Show Events

  15. Post #95

    July 2010
    3 Posts
    Can you add support for this ? http://www.garrysmod.org/downloads/?a=view&id=100575

    Thank you.
    Reply With Quote Edit / Delete Germany Show Events

  16. Post #96
    redx475's Avatar
    February 2009
    547 Posts
    I'll get around to fixing all those, but I'm going on vacation for the next 3 weeks. Sorry. If anyone does fix anything said, please post it.
    Reply With Quote Edit / Delete United States Show Events

  17. Post #97
    nutlnw7410's Avatar
    July 2010
    1 Posts
    What i need to type in entity ID?
    Reply With Quote Edit / Delete Thailand Show Events

  18. Post #98

    August 2009
    369 Posts
    What i need to type in entity ID?
    For the Shop Id, you type the ID of the shop you want the item to appear in, for the entity you type the name of the entity, ex; weapon_deagle.

    Watch the video.
    Reply With Quote Edit / Delete United States Show Events

  19. Post #99

    June 2010
    77 Posts
    would anyone make a compatible version of this for darkrp?
    Reply With Quote Edit / Delete Canada Show Events Dumb Dumb x 1 (list)

  20. Post #100
    SharpShot's Avatar
    April 2007
    10 Posts
    Looks really nice. Going to add this to our RP server

    Edit

    I just keep getting an error when trying to spawn one on DarkRP


    addons\shopmod\lua\autorun\server\shopmod.lua:161: Tried to use a NULL entity!
    Reply With Quote Edit / Delete United Kingdom Show Events

  21. Post #101

    June 2010
    77 Posts
    Shopmod isn't compatible with Darkrp. Read the thread.
    Reply With Quote Edit / Delete Canada Show Events

  22. Post #102
    Carocrazy's Avatar
    June 2009
    115 Posts
    He still shouldn't get errors. It works fine it just doesn't take your money. You're doing something wrong.
    Reply With Quote Edit / Delete United States Show Events

  23. Post #103
    SharpShot's Avatar
    April 2007
    10 Posts
    Shopmod isn't compatible with Darkrp. Read the thread.
    It is supported it just hasn't been tested fully.

    UPDATE: Added DarkRP support in SVN (untested... I don't have darkrp)

    Edited:

    UPDATED: Added GModRP support in SVN (untested... I also don't have gmodrp)
    Reply With Quote Edit / Delete United Kingdom Show Events

  24. Post #104
    Carocrazy's Avatar
    June 2009
    115 Posts
    It is supported it just hasn't been tested fully.
    //ShopMod Hooks

    //You MUST edit the functions below to work with your RP. Some RP gamemodes are already set up here.
    //RP gamemodes currently set up:
    //CityRP

    //Has Money
    local function shopmod_hasmoney( ply, amt )

    return ply:CanAfford(amt)

    end
    hook.Add( "ShopModHasMoney", "smmoneycheck", shopmod_hasmoney )

    //Do money
    local function shopmod_domoney( ply, amt )

    ply:AddMoney(amt)

    end
    hook.Add( "ShopModDoMoney", "smdomoney", shopmod_domoney )

    local function shopmod_inv( ply, entity, amt )

    ply:Give( entity )

    end
    hook.Add( "ShopModDoInventory", "sminv", shopmod_inv )

    local function shopmod_spawn( ply, entity, amt, id )

    local vec = shopmod.shops[id]["spawns"][math.random( 1, #shopmod.shops[id]["spawns"] )]
    local ent = ents.Create( entity )
    ent:SetPos( vec )
    ent:Spawn()
    ent:Activate()

    end
    hook.Add( "ShopModDoSpawn", "smspawn", shopmod_spawn )
    Works for darkrp.
    Reply With Quote Edit / Delete United States Show Events Lua King Lua King x 1 (list)

  25. Post #105

    June 2010
    77 Posts
    Works for darkrp.
    I love you. No homo.
    Reply With Quote Edit / Delete Canada Show Events

  26. Post #106
    Carocrazy's Avatar
    June 2009
    115 Posts
    ^^ Has anyone gotten this to work with DeRP Inventory?
    http://www.facepunch.com/showthread.php?t=955706
    Reply With Quote Edit / Delete United States Show Events

  27. Post #107

    June 2010
    77 Posts
    failed with the derpRP inventor, it'd crash my whole game lol.
    Would you know how to put this on MYSQL so people get their points saved on multiple servers I'm hosting?
    Reply With Quote Edit / Delete Canada Show Events

  28. Post #108
    Cornelisjuh's Avatar
    November 2008
    1,538 Posts
    This makes those abusive gun seller not a problem anymore.
    Reply With Quote Edit / Delete Netherlands Show Events

  29. Post #109
    Axiom :D's Avatar
    July 2010
    1,456 Posts
    Could you make it compatible with the nexus framework?

    http://wiki.garrysmod.com/?title=Nexus-Schema
    Reply With Quote Edit / Delete United States Show Events

  30. Post #110
    Gold Member
    .\\Shadow}'s Avatar
    November 2009
    891 Posts
    I would LOVE to see this working with the ZDev Money System.

    http://www.garrysmod.org/downloads/?a=view&id=100575
    Reply With Quote Edit / Delete United States Show Events

  31. Post #111
    mcskinsearch
    hacksore's Avatar
    February 2010
    1,054 Posts
    How would I make the NPCs non arrestable?
    Reply With Quote Edit / Delete United States Show Events

  32. Post #112
    Gold Member
    .\\Shadow}'s Avatar
    November 2009
    891 Posts
    I believe there is a command for that if you're using DarkRP. Check the admin F4 menu.

    Edit:
    Just tried with latest DarkRP SVN and Shopmod SVN.. Didn't work.
    Reply With Quote Edit / Delete United States Show Events

  33. Post #113
    nubcaek1337's Avatar
    August 2009
    32 Posts
    This mod looks so awesome and I downloaded it and it works all the way up to the point that I try to buy something ( I am using darkrp )... For example a knife, it shows up on the menu for $200 and I try to buy it and it says "You do not have enough money" and I don't get the knife. So i set it to 0$ and i still couldn't get the knife. And carocrazy's code didn't change anything either x.x please help? (This is probably me being retarded or not reading the thread clearly)
    Reply With Quote Edit / Delete United States Show Events

  34. Post #114
    redx475's Avatar
    February 2009
    547 Posts
    I am sorry for everything. I was away on vacation. I am back for 2 weeks and I will get it working with DarkRP. No, it doesn't work with DarkRP because it doesn't take your money. I will fix that, add Nexus, and ZDev as systems that can be used as well.

    I'll have it done tommorrow.
    Reply With Quote Edit / Delete United States Show Events

  35. Post #115

    May 2010
    47 Posts
    Wow. I was literally just trying to get this working on my server and I'm stuck at the point of it not taking the money (Like you say above)

    Glad I wasn't at this point 25 minutes ago lol

    Edited:

    I am sorry for everything. I was away on vacation. I am back for 2 weeks and I will get it working with DarkRP. No, it doesn't work with DarkRP because it doesn't take your money. I will fix that, add Nexus, and ZDev as systems that can be used as well.

    I'll have it done tommorrow.
    Just to save you some effort, the DarkRP code someone posted actually works!
    Reply With Quote Edit / Delete United Kingdom Show Events

  36. Post #116
    Gold Member
    .\\Shadow}'s Avatar
    November 2009
    891 Posts
    I tried CarcoCrazy's hooks file, it works. No need to try and configure it for darkrp, L1QuiD was right.
    Reply With Quote Edit / Delete United States Show Events

  37. Post #117
    redx475's Avatar
    February 2009
    547 Posts
    I updated the SVN. It includes DarkRP support (without getting rid of other gamemodes support)
    Reply With Quote Edit / Delete United States Show Events

  38. Post #118

    July 2008
    17 Posts
    When i create a shop the model of the NPC has its arms out. There is no animation? I am using the model from:

    Code:
    models/player/group01/
    Any model from this folder does not work and there arms are out like there is no animation playing.

    What should i do to fix this?

    Thanks for the help,

    X.
    Reply With Quote Edit / Delete United States Show Events

  39. Post #119
    redx475's Avatar
    February 2009
    547 Posts
    You cannot use player models. Note the player in the file path.

    Edited:

    Whoever wanted this to work with nexus, please post a link to the actual download.

    Edited:

    Support for the ZDev Money System is now in the SVN, and yes, I have tested it this time. Also, 300 POSTS!
    Reply With Quote Edit / Delete United States Show Events

  40. Post #120

    August 2010
    2 Posts
    [release]What is this?
    This is ShopMod, a lightweight NPC shop system made for RP gamemodes.

    Details?
    A superadmin creates some shops and adds items to them with console commands. Players can then interact with the NPCs and buy items such as weapons (if your a minge), health packs, and other stuff!

    How to set up
    ShopMod is made to work with any RP or money system, and due to that it requires some setting up. You must go into shopmod/lua/autorun/server/hooks.lua and edit it so that each function will work with your RP mod. The only part already set up is for CityRP (a friend requested this mod, and he uses CityRP).

    Creating shops
    To create a shop, stand where and in the direction you want the NPC to spawn. Run the console command:
    Code:
    shop_create <shop name> <npc model> [<enabled>]
    I suggest never setting enabled to anything. Don't know why I put it there in the first place, since there isn't any way to enable something again.

    Move away from the spot. The NPC will spawn in 5 seconds.

    Adding items to a shop
    Look at the shop NPC and run:
    Code:
    shop_getid
    The shop's id should print in console.
    Then run:
    Code:
    shop_item_create <shop id> <item name> <entity> <model in shop> <price> <want to use item spawn for this (true/false)>
    Done! Go use your NPC! Note that the deletion of items has not been made yet.


    Creating Item Spawns
    Get the shop's id, stand where you want the spawn to be, and run:
    Code:
    shop_spawn_create <id>
    Deleting shops
    Get the shop's id and run:
    Code:
    shop_delete <id>
    Deleting items
    Open the buy menu for the shop and note the id next to the item name and run:
    Code:
    shop_item_delete <shop id> <item id>
    Notes
    -Moving a shop with the physgun will not save its position when the server restarts.
    -Shops on different maps are saved seperately.

    Download


    SVN
    Note: The SVN version is the most up to date, but it may also be the most buggy.
    SVN Address: http://svn2.xp-dev.com/svn/rxdaddons/shopmod/

    Changelog
    Code:
    1.5
    -Bug fixes (Updated from SVN)
    
    1.4:
    -Fixed shop_item_delete
    -There is a bug! shop_delete isn't working. I will fix it in the next release.
    
    1.3:
    -Added item IDs to the buy menus
    -Added shop_item_delete
    
    1.2:
    -Bugfixes
    
    1.1:
    -Added entity spawn system
    -Added shop_spawn_create
    
    1.0:
    -Initial Release
    I found a bug!
    Report it here!

    Video
    [/release]
    Hey just asking ... Might you be able to email me at Joalstechstep@gmail.com

    I would be greatly interested in parting with you to make just a normal shop (which opens buy a key *Such as F1 mayby*) the reason being is my server is in need of a coder which knows what he is doing .. all the other coders we hire ... Fail and steal ... You seem to be very good at LUA and even better at derma ... i have a few friends that you might want to meet,

    But anyway could you email me back and we can chat sometime ... Thanks

    Yours . Jordan
    Reply With Quote Edit / Delete United Kingdom Show Events