Giter VIP home page Giter VIP logo

nsplugins's Introduction

NutScript Plugins

Plugins for NutScript 1.1 (ported from NS 1.0 or written by Neon - me).

If you want see any ported plugin or
If you find an errors in code or
If you want help to translate plugins (FR, GR, CH, ect.):
Just add an issue.

--- * P.S. Plugins may have an errors.

nsplugins's People

Contributors

farman-beep avatar realpack avatar stanstar22 avatar tltneon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nsplugins's Issues

I get an error

[ERROR] gamemodes/hl2rp/plugins/crafting/sh_menu.lua:151: bad argument #1 to 'Simple' (number expected, got nil)

  1. Simple - [C]:-1
    1. DoClick - gamemodes/hl2rp/plugins/crafting/sh_menu.lua:151
    2. unknown - lua/vgui/dlabel.lua:218
      when I try to click an item in the crafting table

garage plugin

ok For some reason when you buy cars it doesnt show up in your garage

Garage plugin content?

Hey i dont know why but the garage stuff is errors for me. is there a content pack for it?

World Item Spawner

I tried to use this plugin in game, but its broken i believe. I set a item spawn point and it kept spawning items ontop of each other. I even set the items per spawn to 1 but it still did not work!

Please help!

Crafting System

I've been having a problem setting up the crafting system on my server. When I spawn the crafting table, I pull this error in console...
[ERROR] gamemodes/starwarsrp/plugins/crafting/entities/entities/nut_craftingtable.lua:56: attempt to call field 'Get' (a nil value)

  1. unknown - gamemodes/starwarsrp/plugins/crafting/entities/entities/nut_craftingtable.lua:56

Garage plugin broken

The plugin is broken I think GetData is suppose to be getData and when u buy cars it doesnt show up on the list and the entity nut_container does exist also it does not show up when i spawn a vehicle it says its still in the garage even though it spawned. It also doesn't save ur vehicles I think it might have to do with sql.

crafting system issue

when you craft something, that has multiple items, for example i want to do that :

local RECIPE = {}
RECIPE.uid = "example"
RECIPE.name = "A Skull"
RECIPE.category = nut.lang.Get( "icat_material" )
RECIPE.model = Model( "models/Gibs/HGIBS.mdl" )
RECIPE.desc = "A Skull."
--RECIPE.noBlueprint = true
RECIPE.items = {
	["bone"] = 2,
}
RECIPE.result = {
	["skull"] = 1,
}
RECIPES:Register( RECIPE )

It is actually set to use 2 bones to craft a skull, but it doesn't work, the craft is successfull even if i use only one bone.
I mean if i use 2 bones they both disapear from my inventory and i got the skull but if i use only one bone it will give me the skull aswell and remove the single bone.
I'm sorry for terrible explanation, i'm not very good at explaining things.
Can you help me with this i don't know what i need to change in the code to make it properly work, i know i need to modify something in this area but i'm new to lua and i don't know how to fix this myself :

function RECIPES:Register( tbl )
	if !tbl.CanCraft then
		function tbl:CanCraft( player )
			for k, v in pairs( self.items ) do
				if !player:HasItem( k, v ) then
					return false
				end
			end
			return true
		end
	end
	if !tbl.ProcessCraftItems then
		function tbl:ProcessCraftItems( player )

			player:EmitSound( "items/ammo_pickup.wav" )
			for k, v in pairs( self.items ) do
				for i = 1, v do
					if player:getChar():getInv():hasItem( k ) then
						player:getChar():getInv():remove( player:getChar():getInv():hasItem( k ):getID() )
					end
				end
			end
			for k, v in pairs( self.result ) do
				--print(player:getChar():getInv():add(k, v))
				--if (!player:getChar():getInv():add(k, v)) then
					for i = 1, v do
					nut.item.spawn(k, player:getItemDropPos())
					end
				--else
					--netstream.Start(client, "vendorAdd", uniqueID)
				--end
			end
			player:notifyLocalized( "donecrafting", self.name )

		end
	end
	self.recipes[ tbl.uid ] = tbl
end

Hope it is clear, and thanks for any help by advance :).

Notiboards disappearing

The title and text data fields are disappearing from the file, and the notiboards are simply failing to appear.

WorldItemSpawner is broken!

[ERROR] lua/includes/extensions/table.lua:150: bad argument #1 to 'pairs' (table expected, got nil)

  1. pairs - [C]:-1
  2. Count - lua/includes/extensions/table.lua:150
    3. Random - lua/includes/extensions/table.lua:159
    4. v - gamemodes/nutscript/plugins/worlditemspawner.lua:78
    5. unknown - gamemodes/nutscript/gamemode/core/libs/sh_plugin.lua:397

Car Dealer NPC is a error model

It is an Error for every Player. I have HL2, Episode 1/2, L4D2, CSS, Portal and Portal 2, so I have literally everything that you can possibly have for the models. But it still is an Error. I looked through the code to find the path for the model to replace it with something that will work, but I couldn't find anything? Is there even a model defined?

Cards

Hi there, nice work on these plugins, but with the acces one, I've this when I try to open the Cards Menu:
[ERROR] gamemodes/nutscript/plugins/access/sh_plugin.lua:223: bad argument #1 to 'pairs' (table expected, got number)

  1. pairs - [C]:-1
    1. unknown - gamemodes/nutscript/plugins/access/sh_plugin.lua:223
    2. func - gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_netstream2.lua:155
      1. unknown - lua/includes/extensions/net.lua:32
        And, when I try to create a card, It doesn't show up on the ground, but it adds some value in the DB.

[Plugin request] Crafting

Another plugin that'd be nice to have, if that's not too much to ask (I know ModernRP has a crafting, but it seems incomplete or unfinished, I don't really know enough lua to make that work my self)

https://www.sendspace.com/file/g97us9

I moved some of the nut.add.Lang stuff to the new sh_languages format thing already, to cut out at least a little tedious work - at least I think, anyway

crafting = "Crafting",
craftingtable = "Crafting Table",
req_moremat = "You need more materials to craft %s.",
req_blueprint = "You need a blueprint of %s to craft %s.",
req_morespace  = "You need more space to get result.",
donecrafting = "You have crafted %s.",
icat_material = "Materials",
craft_menu_tip1 = "You can craft items by clicking the icons in the list.",
craft_menu_tip2 = "The icon with book means that item needs a blueprint to be crafted.",
crft_text =  "Crafting %s\n%s\n\nRequirements:\n"

Error with note plugin ns 1.1

So, when I get note to my inventory and press "edit", they dropping to the world as entity without any opportunity to edit them.
Is there any glitches or Im stupid?

Please create a junk plugin from Chessnut's Dissolution Schema / Machine plugin problem

Here's a link to it https://github.com/Chessnut/Dissolution/tree/master/plugins/junk/, I'm not sure if it is already linked to your "machine" plugin or not.

My second request is an explanation why machine gives me this error:
[ERROR] gamemodes/nsfallout/plugins/machine/sh_plugin.lua:62: attempt to call fi
eld 'PrepareItemTable' (a nil value)

  1. unknown - gamemodes/nsfallout/plugins/machine/sh_plugin.lua:62
    1. include - [C]:-1
    2. include - gamemodes/nutscript/gamemode/core/sh_util.lua:17
      1. load - gamemodes/nutscript/gamemode/core/libs/sh_plugin.lua:44
      2. loadFromDir - gamemodes/nutscript/gamemode/core/libs/sh_plugin.lua:175
      3. initialize - gamemodes/nutscript/gamemode/core/libs/sh_plugin.lua:166
      4. unknown - gamemodes/nutscript/gamemode/shared.lua:65

moderator plugin issue

I have an issue using the moderator plugin. I put it in plugins in nutscript (using version 1.1), and when I try to set myself as owner in console, it spits out syntax relating to how it can't define 'users'. I can get a picture of it exaclty, but is anyone else having this issue or can help?

Error trying to buy house on property

Im getting this error

[ERROR] gamemodes/medievalrp/plugins/_oldplugins-fix/sh_plugin.lua:147: attempt to call method 'getChar' (a nil value)

  1. GetVar - gamemodes/medievalrp/plugins/_oldplugins-fix/sh_plugin.lua:147
  2. unknown - gamemodes/medievalrp/plugins/property/sv_plugin.lua:66
    3. func - gamemodes/nutscript/gamemode/core/libs/thirdparty/sh_netstream2.lua:117
    4. unknown - lua/includes/extensions/net.lua:32

I have try change line 147 into
if var == "id" then return self:getID() end
and it works barely

Buff plugin not working

The buff plugin doesn't want to work, it seems like it's not loaded in the schema... I've checked the console but nothing helpful. I've already installed the fix, inside the repo... any help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.