redem-rp / redemrp_shops Goto Github PK
View Code? Open in Web Editor NEWA shops system for RedEM:RP
License: GNU General Public License v3.0
A shops system for RedEM:RP
License: GNU General Public License v3.0
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!
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:
Thank you for looking into this issue. Your efforts are greatly appreciated!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.