#QB-cityschool

1 messages · Page 1 of 1 (latest)

elder spire
#

I want to remove “drivingschool” from “qb-cityhall,” but I'm getting this error

upper mason
#

I’m lost as the driving school Is not in Cityhall It’s a separate Script

elder spire
#

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

abstract ravine
#

Looks like you made an error when removing the driving school code from city hall

elder spire
#

I just changed that so I wouldn't have to go to driving school anymore

abstract ravine
elder spire
abstract ravine
elder spire
#

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

abstract ravine
elder spire
#

So I remove lines 29 through 41 ?

abstract ravine
elder spire
#

But when I remove that line, it seems to me that City Hall disappears

abstract ravine
#

All the lines

elder spire
#

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