VRP Mechanic restriction

Hello! i am trying to restric lscustoms in vrp for only Mechanics, so my mechanic group is “Mecánico” but it dont seems to work when i try…i am trying this:

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		if lsc ~= nil and lsc.inside == false then
			local ped = LocalPed()
			if IsPedSittingInAnyVehicle(ped) then
				local veh = GetVehiclePedIsUsing(ped)
				if DoesEntityExist(veh) and (IsThisModelACar(GetEntityModel(veh)) or IsThisModelABike(GetEntityModel(veh)))  then
					for i,pos in ipairs(lsc.locations) do
						outside = pos.outside						
						if GetDistanceBetweenCoords(outside.x,outside.y,outside.z,GetEntityCoords(ped)) <= f(5) then
							if pos.locked == false then
							if vRP.hasGroup({user_id,"Mecánico"})) then
								lsc_drawTxt("Presiona ~b~ENTER~w~ para entrar en el taller de ~b~Tunning",4,1,0.5,0.8,1.0,255,255,255,255)
								if IsControlJustPressed(1,201) then
									
										lsc.currentpos = pos
										lsc.currentgarage = i
										DriveInGarage()

What i am doing wrong here? i want just mechanic group access to the tuning

1 Like

@LaiiiCa have you found the solution? I need it also!

1 Like

Ive done that, take a look at my post. If you have any issue dont hesitate to contact through pm :slight_smile: @LaiiiCa