wolvherin78
Bronze Elite
- Joined
- May 14, 2021
- Messages
- 8
- Reaction score
- 8
- Points
- 146
The weight on the weapon does not work
This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.
If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.
you don't have to add anything else just start?hola gente aquí está el script que funciona con esx_shops
[URL unfurl = "true"]Hidden link for visitors, to see Log in or register now.[/ URL]
RegisterServerEvent('esx_shops:buyItem')
AddEventHandler('esx_shops:buyItem', function(itemName, amount, zone)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
local sourceItem = xPlayer.getInventoryItem(itemName)
amount = ESX.Math.Round(amount)
-- is the player trying to exploit?
if amount < 0 then
print('esx_shops: ' .. xPlayer.identifier .. ' attempted to exploit the shop!')
return
end
-- get price
local price = 0
local itemLabel = ''
for i=1, #ShopItems[zone], 1 do
if ShopItems[zone][i].item == itemName then
price = ShopItems[zone][i].price
itemLabel = ShopItems[zone][i].label
break
end
end
price = price * amount
-- can the player afford this item?
if xPlayer.getMoney() >= price then
-- can the player carry the said amount of x item?
if sourceItem.limit ~= -1 and (sourceItem.count + amount) > sourceItem.limit then
TriggerClientEvent('esx:showNotification', _source, _U('player_cannot_hold'))
else
xPlayer.removeMoney(price)
xPlayer.addInventoryItem(itemName, amount)
TriggerClientEvent('esx:showNotification', _source, _U('bought', amount, itemLabel, price))
end
else
local missingMoney = price - xPlayer.getMoney()
TriggerClientEvent('esx:showNotification', _source, _U('not_enough', missingMoney))
end
end)
in which part of the script is the option to change the inventory to F2Hello, i have a problem with inventory, i open inventory with key 'F2' and my friend open inventory with key 'L'. I dont know where is the problem. (iam checked config.lua and bind on F2). thank you for help
In config.lua, but its really weird, we testing inventory with 5 people and 3 people have inventory on F2 and 2 have on Lin which part of the script is the option to change the inventory to F2
That's easy. esc>game settings>key bindings>enter>fivem>inventory>click on that>change to f2. Simple one. I had in K. Just did the same thing and now I have it on f2. Just make a video for it but. That would be nice.In config.lua, but its really weird, we testing inventory with 5 people and 3 people have inventory on F2 and 2 have on L
VERY GOOD!That's easy. esc>game settings>key bindings>enter>fivem>inventory>click on that>change to f2. Simple one. I had in K. Just did the same thing and now I have it on f2. Just make a video for it but. That would be nice.
Will you connect to shops?That's easy. esc>game settings>key bindings>enter>fivem>inventory>click on that>change to f2. Simple one. I had in K. Just did the same thing and now I have it on f2. Just make a video for it but. That would be nice.
Me? I do not use esx_shops. I use something else.Will you connect to shops?