Code Monkey home page Code Monkey logo

redemrp_shops's People

Contributors

amakuu avatar ktos93 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

redemrp_shops's Issues

Unable to load shops menu after spawned on the server

Hello,

I've recently started working on a new RedM server. I installed redemrp_shops and set it up correctly.
However, every time I log into the server my first attempt to use the shops fails.
The camera shows the first product but the menu doesn't show and I cannot exit.

If I reload the script redemrp_shops, it works perfectly but not on the first attempt.

The console show this error on my first attempt:
SCRIPT ERROR: @redemrp_shops/client/main.lua:100: attempt to call a nil value (field 'Open')

Thank you for your help in advance!

image

Item dupe

Hello,

I've encountered a potential 'item duplication' issue while attempting to make a purchase at the shop. To put it simply, I tried to buy an item but was unsuccessful due to reaching the inventory item limit (not the weight limit). However, even though I didn't receive the item in my inventory, it appeared on the ground, and the shop didn't deduct my money for the item. Consequently, I ended up obtaining the item for free.

Could you please review the code example I used:

RegisterCommand('buyitem', function()
    TriggerServerEvent('redemrp_shops:BuyItem', 'beartrap', 1 , 'Basic')
end)

Here's the item definition:

    ["beartrap"] = {
        label = "Beartrap",
        description = "nice item",
        weight = 0.01,
        canBeDropped = true,
        canBeUsed = true,
        limit = 1,
        imgsrc = "items/beartrap.png",
        type = "item_standard"
    },

Here's the shop definition:

Config.Zones = {
	Basic = {
		Items = {
			{item = 'beartrap', price = 1},
		},
		Legal = true,
		Pos = {
			{x = -324.28,   y = 801.51, z = 117.88},				
		},
		Spawn = {
			{x = -323.18,   y = 802.81, z = 117.94},				
		},
	},
}

Some additional information that might be useful:

  • I used a fresh installation of the framework via txAdmin recipe.

Thank you for looking into this issue. Your efforts are greatly appreciated!

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.