RACU2
December 9, 2020, 3:21pm
1
Hello FiveM Community
This script brings a new style to your server. The shop is a complete NUI and therefore almost independent of the ESX UI.
Require
es_extended
Install
put in script.cfg
RC-NewShop.rar (57.9 KB)
start RC-NewShop
Preview
https://youtu.be/APkra8XfJOQ
Thank you for reading and don’t forget to leave your feedback
10 Likes
I’m surprised its free man, Very Clean work
Great job, add page or scrollbar for more product
Very nuce just one question can players own the shops
RACU2
December 9, 2020, 7:29pm
9
Yes, I don’t script long for FiveM, that’s why I don’t want to sell scripts that don’t run perfectly in the end and thanks for your nice feedback
1 Like
RACU2
December 9, 2020, 7:31pm
11
thanks for your feedback. Yes, I’ll see if I change that in the next few days
1 Like
you should make a option for the shops to be player owned great work
RACU2
December 9, 2020, 7:34pm
13
Great idea! I’ll write it down and see if I can implement it
nice release unsure about the cloud thing on the bottom tho … apart from that nice work 8/10
RACU2
December 10, 2020, 2:58am
15
Thank you very much;) You can also easily remove the clouds. All you have to do is remove the line with the id wave in the html file
How to do the command line to duplicate the coordinates in the stores?
1 Like
How to create multi location?
1 Like
Hiya, Nice release. Im using this currently as a shop to be used for my alternate currency called tickets.
and i had to raise the position of the z coord of the shop for it to work also as i think it sits inside the floor boards.
edit :
adds check so people cant buy with negative balances, and adds notification with t-notify.
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
RegisterNetEvent("rc-shop:buybread")
AddEventHandler("rc-shop:buybread", function()
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
xPlayer.getAccounts()
if xPlayer.getAccount('tickets').money < Config.Prices.bread then
TriggerClientEvent('t-notify:client:Custom', source, {
style = 'example',
duration = 6000,
message = 'Not enough tickets',
sound = true,
custom = true
})
else
xPlayer.removeAccountMoney('tickets', Config.Prices.bread)
xPlayer.addInventoryItem("bread", 1)
end
end)