Ill be posting a update soon with the files for the hud
I need pure money more than black money. Where do I need to change?
maybe u should change this to false. line 19 in config.lua
Config.GiveBlack = true -- Wanna use Blackmoney?
Support for Inventory hud is on github!
I cant seem to make more then one chop shop. any advice?
Make sure to change both the vector and the pos
is there a way to add items, wanna tie this into crafting
i have added into the sql and resources etc⌠item jsut never drops for people ever when chopping
still no luck
Show me your config.lua
how do hide the blip for the chop shop as if i do
âname = _U(âmap_blipâ), color = 49, sprite = 225, radius = 100.0, Pos = { x = -522.87, y = -1713.99, z = 18.33}, Size = { x = 5.0, y = 5.0, z = 0.5 }, },
it stops me from using it.
remember how i asked if you could make this into a whitelisted job and you said i was welcome to try well we are almost complete would you like me to send you the code when we are finished and see if you like the result all credit goes too you do this mod is genius
we have made it so you dont have to be in the car to start removing the car parts too
for rp purposes
Has anyone fixed the issue where after chopping a few times and receiving the parts you donât get more than you should?
like, Radio limit is 5 but it can go 7/5 etc
Make a branch and post it here
it happens to me that when I cut all the parts of the vehicle and remove it it gives me the objects but nothing else I leave the circle of cut it tells me to come back and npc does not show the sale menu
change the limit in your sql item table
It will still go over the limit since there is nothing checking it as far as i can see.
If you have say a radio and itâs limit is 5 and you have 4 and the next random value is 2 then you will get 6
what value should I put -1 or 5 as the friend says
Set them to what ever you want really. I left them all as default, the current issue is that you will keep getting items even if you set a limit such as 5.
This script is pretty sweet so i decided to add in a check so it fixes that issue and stop people taking more items than they should be allowed to. For those that want to fix this issue replace the full
RegisterServerEvent(âlenzh_chopshop:rewardsâ) with the following
RegisterServerEvent("lenzh_chopshop:rewards")
AddEventHandler("lenzh_chopshop:rewards", function(rewards)
--Rewards()
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
for k,v in pairs(Config.Items) do
local randomCount = math.random(0, 2)
if xPlayer.getInventoryItem(v).count >= xPlayer.getInventoryItem(v).limit then
TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'error', text = 'You cant carry anymore'})
else
xPlayer.addInventoryItem(v, randomCount)
end
end
--Add cooldown
cooldown = Config.CooldownMinutes * 60000 --DO NOT EDIT
end)
Can you make a pr on github.