#QB-cityschool
1 messages · Page 1 of 1 (latest)
I’m lost as the driving school Is not in Cityhall It’s a separate Script
No, it's about integrating the driving school into QB City Hall using the latest version. I'm actually trying to add another one and remove the one from qb-cityhall
Looks like you made an error when removing the driving school code from city hall
Yeah, I know that. I'm trying to get the driving school out of City Hall.
I just changed that so I wouldn't have to go to driving school anymore
This shows the driving school still there, so im confused
I don't get it either—I guess I have to modify the client?
No i mean the driving school is still in thr config.lua, so what exactly have you changed to get this error?
Yes, it's still in config.lua, but normally it shouldn't take it into account since I put a ‘ -- ’ in front of it.
I only changed config.lua, and now I'm getting this error
These are the two errors I'm getting, and I've only made changes to config.lua
City Hall Script For QB-Core. Contribute to qbcore-framework/qb-cityhall development by creating an account on GitHub.
So I remove lines 29 through 41 ?
Yes, as that code block is looking for the commented out blocks in config.lua
I'll give it a try in an hour or two
But when I remove that line, it seems to me that City Hall disappears
So you removed those lines in the client/main.lua that are for driving school?
All the lines
local function getClosestSchool()
local distance = #(playerCoords - Config.DrivingSchools[1].coords)
local closest = 1
for i = 1, #Config.DrivingSchools do
local school = Config.DrivingSchools[i]
local dist = #(playerCoords - school.coords)
if dist < distance then
distance = dist
closest = i
end
end
return closest
end
I removed this from client/main.lua, but I'm still getting both errors