[QUOTE=Busymonkey;16487201]Thanks - but where do you put this ?[/QUOTE]
Garrysmod/Garrysmod/Lua/Autorun/Server/<filename>.lua
[b] Edit: [/b]
Oh lol, or if you wanted it in a gamemode chuck it in your init.lua
Simple huh?
You make items, using the DRP weapon paths :|.
[QUOTE=MGinshe;16491674]Garrysmod/Garrysmod/Lua/Autorun/Server/<filename>.lua
[b] Edit: [/b]
Oh lol, or if you wanted it in a gamemode chuck it in your init.lua
Simple huh?[/QUOTE]
a little more help please im new at this xD
[QUOTE=Killer_Steel;16491675]You make items, using the DRP weapon paths :|.[/QUOTE]
where do i put the paths?
[QUOTE=stapled;16492293]a little more help please im new at this xD
where do i put the paths?[/QUOTE]
Open a new wordpad/notepad document and copy&paste the code into it, make the name whatever you want, but after the name you MUST include the .lua extension. So if I named it hotkeymenu it will look like hotkeymenu.lua
Then, put hotkeymenu.lua (or whatever you named it) into your garrysmod/garrysmod/lua/autorun/server folder. Then push F4 in-game (duhrr) and it should work.
For a gamemode, you'll just need to copy and paste the code into the init.lua file in the gamemode's main folder, somewhere near the bottom.
[QUOTE=SaltyPeppr;16494507]Open a new wordpad/notepad document and copy&paste the code into it, make the name whatever you want, but after the name you MUST include the .lua extension. So if I named it hotkeymenu it will look like hotkeymenu.lua
Then, put hotkeymenu.lua (or whatever you named it) into your garrysmod/garrysmod/lua/autorun/server folder. Then push F4 in-game (duhrr) and it should work.
For a gamemode, you'll just need to copy and paste the code into the init.lua file in the gamemode's main folder, somewhere near the bottom.[/QUOTE]
ok thanks a lot :D
how can i change it to F2 because i plan on using this for DarkRP and f4 opens up a menu
How can I make that the standard glock, deagle, p228 etc. that the gundealer spawns can be picked up? Because now only admins can spawn them but I want that Some jobs can spawn them. I also want to hold the original shipment menu.
Pretty neat. Might use it if I ever get an RP server.
[QUOTE=jdmmer;16495582]How can I make that the standard glock, deagle, p228 etc. that the gundealer spawns can be picked up? Because now only admins can spawn them but I want that Some jobs can spawn them. I also want to hold the original shipment menu.[/QUOTE]
Maybe it can modify access level of adminspawnmenu section or make new menu for clients. This work will need more codes for using rp money.
[QUOTE=rebel1324;16496907]Maybe it can modify access level of adminspawnmenu section or make new menu for clients. This work will need more codes for using rp money.[/QUOTE]
we just want to be able to pick up the weapons in drakrp that gundealers buy
Yes.
I got some ideas to improve the script (but I'm too n00bish):
Adding limit of props in inventory
When you have two of the same props in your inventory, use 1 image with amount in right above
A delete fuction so people don't have to drop there rubbish
That you can have car in inventory that will stay there also when you use it and not put it back
Only ideas no claims :P
[QUOTE=jdmmer;16497777]Yes.
I got some ideas to improve the script (but I'm too n00bish):
Adding limit of props in inventory
When you have two of the same props in your inventory, use 1 image with amount in right above
A delete fuction so people don't have to drop there rubbish
That you can have car in inventory that will stay there also when you use it and not put it back
Only ideas no claims :P[/QUOTE]
And Trade System and Trader is need. (Maybe that codes is done, this script is will be RPG System LOL.)(Zombiefield World?)
1. function ItemMenu( ply )
2. ply:ConCommand( "+inventoryaddonmenu" )
3. end
4. hook.Add("ShowSpare2", "Menu", ItemMenu)
how do I make this work with, say F5 for example?
theres nothing in here that absolutely shows binds...
is there even a binded key in that code?
Bind +spare2 to F5.
For people who can't pick up guns in DarkRP, it's called GUN LICENSES, read the changelog once in a while.
Oh, wow im stupid.
How would I make that so when you join my game mode and you hit F5 thats what automaticly comes up?
Without binding?
[QUOTE=Bluegirl;16506921]1. function ItemMenu( ply )
2. ply:ConCommand( "+inventoryaddonmenu" )
3. end
4. hook.Add("ShowSpare2", "Menu", ItemMenu)
how do I make this work with, say F5 for example?
theres nothing in here that absolutely shows binds...
is there even a binded key in that code?[/QUOTE]
never mind, i'm an idiot
Thanks a TON, do I put this in my game mode init.lua?
I did it wrong.
[editline]11:31AM[/editline]
Hold on, I'll see what I can do
Oh, okay thanks!
[QUOTE=Bluegirl;16507344]Thanks a TON, do I put this in my game mode init.lua?[/QUOTE]
put on that codes autorun/server/(name).lua That codes have to run when start.
[QUOTE=Killer_Steel;16507012]Bind +spare2 to F5.
For people who can't pick up guns in DarkRP, it's called GUN LICENSES, read the changelog once in a while.[/QUOTE]
i can pick up the guns but i cant put them in the inventory
Salty Pepper, did ya figure it out?
Really, someone needs to add a trading system to this :D
Why is clearly no one answering the DarkRP question? Does no one know how to link the darkrp weapons to the inventory. For example, when your a gun dealer, you spawn a weapon, such as a glock, press your use button on it (e for me) and it stores it in your inventory, there is no function to darkrp like licenses that affect this. It's just a code that is needed.
I am adding trader system to this addon. But It is so hard!
[QUOTE=rebel1324;16515840]I am adding trader system to this addon. But It is so hard![/QUOTE]
Ah thank you dude! I hope you will get it work! :D
any one figure out how yo use this with darkrp weapons yet?
It's simple. I could do it but working on this. I using it for my role play mod. BTW did I say it doesn't involve darkrp? Well it doesn't so root for me. In fact you can incorporate(import) this into your f4 menu.
[QUOTE=Bluegirl;16506921]1. function ItemMenu( ply )
2. ply:ConCommand( "+inventoryaddonmenu" )
3. end
4. hook.Add("ShowSpare2", "Menu", ItemMenu)
how do I make this work with, say F5 for example?
theres nothing in here that absolutely shows binds...
is there even a binded key in that code?[/QUOTE]
Not sure how I have it right now but, this will work.
[lua]function GM:ShowSpare1()
RunConsoleCommand( "+inventoryaddonmenu" )
end
[/lua]
--//"F1" "gm_showhelp"
--//"F2" "gm_showteam"
--//"F3" "gm_showspare1"
--//"F4" "gm_showspare2"
Interesting, seems a lot like the inventory system from CakeScript, only an addon :D, cool.
[QUOTE=yahan;16556588]It's simple. I could do it but working on this. I using it for my role play mod. BTW did I say it doesn't involve darkrp? Well it doesn't so root for me. In fact you can incorporate(import) this into your f4 menu.
Not sure how I have it right now but, this will work.
[lua]function GM:ShowSpare1()
RunConsoleCommand( "+inventoryaddonmenu" )
end
[/lua]
--//"F1" "gm_showhelp"
--//"F2" "gm_showteam"
--//"F3" "gm_showspare1"
--//"F4" "gm_showspare2"[/QUOTE]
thanks for the info on the "F" keys :D
can you find away to use this with darkrps entities?
Bro, just do the same thing like guns correct?
Sorry, you need to Log In to post a reply to this thread.