Yep, thank you Renzu ! I’m using t1ger keys system, not sure what i’m doing wrong but can’t really figure it out how to lock the car after i buy it.
its tiger keys is client based?
EDIT:
heres the changes
shared.VehicleKeysType = {
['export'] = true, -- if false it will use trigger events
['client'] = false, -- if false it will use server event or server exports
}
shared.VehicleKeys = function(plate,source) -- vehicle keys
-- first parameter expected is plate
local sendvehiclekeys
if IsDuplicityVersion() then
if shared.VehicleKeysType['export'] then -- server export edit this if your using server exports vehicle keys
func = function()
sendvehiclekeys = exports.renzu_garage.GiveVehicleKey -- replace this
end
if pcall(func, result or false) then
return sendvehiclekeys(nil,plate,source)
end
elseif shared.VehicleKeysType['client'] and shared.VehicleKeysType['export'] then -- do not edit this condition
TriggerClientEvent('renzu_shops:Vehiclekeys', source, plate)
elseif shared.VehicleKeysType['client'] then -- client events from server edit this if your using client events vehicle keys
-- Server Events Keys
-- ex TriggerClientEvent('GiveKeys', source, plate) -- this is non existing and example only
else -- server events from server edit this
-- Server Events Keys
-- ex TriggerEvent('GiveKeys', plate, source) -- this is non existing and example only
end
elseif not IsDuplicityVersion() then -- client exports edit this if your using exports in client
func = function()
sendvehiclekeys = exports.renzu_garage.GiveVehicleKey -- replace this
end
if pcall(func, result or false) then
return sendvehiclekeys(nil,plate,source)
end
end
end
Just read the comments. its should work if config properly
i planned to support QB-inventory very soon but not paid inventory unless i have a copy (not leak)
Is there a possibility to get it working with qb-inventory/lj-inventory too?
im planning to support qb-inventory. since its open source and easy to implement
Ok, thank you
Thanks for the update Renzu :* I got the keys work with it now !
i have implented a simple finance system
this is not available in blackmarkets
I can’t understand how you can make such an incredible script and have it for free! is there any way to support such an amazing creator?!
You’re literally the best lol. Thanks for all you do man.
I have a question, I added some custom cars, how would i add the image of the car in shop list ?
In case that isn’t an option i got this for now wich i’m happy with.
Forked my carmap in github
And replace the url in script.js
Or
Host it on ox inv images folder
Ex.
ox_inventory/web/images/blista.png
Can You Please Tell Me The Database Of Script is Saving Where Like Players Identifiers With a Shop etc ? i am Trying To Find But Unable To Do So.
The script don’t uses database
Then Where Identifiers, Items is Saving After Server Restart And How?
its using
when saving it permanently
and using GlobalState for temporary datas.
on what purpose do you want a database ?
if you want to delete the shop
you can do it in /stores (selling)
you can also add/remove items and modify everything
ok That’s a New Thing For Me. I Just Wanted To Know That The Identifiers Of Shop Owners And The Stock in a Shop (Which is Left) is Saving Where? I am Asking This Because in a Migration Where I Get Shop’s Data Like Other Scripts Uses SQL.
try manually add items using
/addstock General 1 100
this will add 100 each to all items in store. (shopname, shopindex, amount)
migration compatibility is not supported. it will be hassle to do compatibility check on all shop scripts.
Hey, nice release! I have a question, how can I delete Owned Shops. Using /store I just can manage the inventory, finance and eployees.
i need someone to test the qbcore update
i update the main branch with a tested support for Qbcore
but it will only work in my forked version of qb-inventory
as a lot of features missing in the main upstream of qb-inventory for this resource to fully work.
note: qb-target is not supported. this will only work with qtarget and ox_target
and this is tested with the latest qbcore version.
if you want to enable the qbcore and qb-inventory support
look /init.lua
i will update again the qbcore port for this resource.
like supporting native UI of qb-inventory instead of builtin UI.