Problem with Renzu_garage


I have a QB-Core server and i want to use the renzu_garage script. The Script is not working and i have this error message.

renzu_garage/framework/cl_wrapper.lua:172:

GarageZone.Add = function(coord,garage,dist,job,id)
	if not Config.Oxlib then return end
    local garage = garage
    local coord = coord
	local job = job
	local dist = dist or 4
	local id = id
    function onEnter(self)
		CreateThread(function() -- create thread to suport multi zones
			local self = self local garage = garage local coord = coord local job = job local dist = dist local tid = tid
			tid = id
			TID(id)
			local msg = '[E] - Open Garage'
			if IsPedInAnyVehicle(cache.ped) then
				msg = Message[7]..' [E] '..Message[6]
			else
				msg = ''..Message[7]..' [E] '..Message[2]..' '..garage..''
			end
			OxlibTextUi(msg)
			local close = DrawInteraction_(garage,coord,{dist,dist+1},msg,'opengarage',false,false,false)
			local data = {check = function() return GarageZone.Add(coord,garage,dist,job,tid) end}
			GarageZone.CheckZone(garage,data)
			lib.hideTextUI()
		end)
    end
    
    function onExit(self)
        lib.hideTextUI()
    end
    
    function inside(self)
    end
	local sphere = lib.zones.box({ coords = coord, size = vec3(1, 1, 1), rotation = 45, radius = dist or 4, debug = false, inside = false, onEnter = onEnter, onExit = onExit })
	sphere.job = job
    GarageZone.Spheres[garage] = sphere
    return GarageZone.Spheres[garage]
end

renzu_garage/client/client.lua:28:

Citizen.CreateThread(function()
    Wait(1000)
    while PlayerData.job == nil do Wait(111) end
    if Config.Oxlib and GetResourceState('ox_lib') ~= 'started' then
        Config.Oxlib = false
        cache.ped = PlayerPedId()
    end
    if Config.Ox_Inventory and GetResourceState('ox_inventory') ~= 'started' then
        Config.Ox_Inventory = false
    end
    coordcache = garagecoord
    for k,v in pairs(garagecoord) do -- create job garage
        if v.job ~= nil and jobgarages[v.garage] == nil then
            jobgarages[v.garage] = {}
            jobgarages[v.garage].coord = vector3(v.garage_x,v.garage_y,v.garage_z)
            jobgarages[v.garage].garageid = v.garage
            jobgarages[v.garage].job = v.job
            jobgarages[v.garage].garage_type = v.garage_type ~= nil and v.garage_type or Message[1]
        end
    end
    Wait(2000)
    if Config.Realistic_Parking then
        TriggerServerEvent('renzu_garage:GetParkedVehicles')
    end
    for k, v in pairs (garagecoord) do
        if v.job ~= nil and v.job == PlayerData.job.name or v.job == nil then
            GarageZone.Add(vector3(v.garage_x, v.garage_y, v.garage_z),v.garage,4,v.job,k)
            SetBlips(v.garage_x, v.garage_y, v.garage_z, v.Blip.sprite, v.Blip.scale, v.Blip.color, v.garage)
        end
    end

Would be i cool if someone can help!

mabye you need onesync activated
here is how to activate it:

Its already on :frowning:

did you try with infinity on and off?

did you have the dependencies installed? lib refers to ox_lib

Yes i did

Yes i did but ox_lib has an error to

Hi
You need donwload ox lib release here:Release v2.21.0 · overextended/ox_lib · GitHub

Because you have downloaded currently source code

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.