FiveM 'then' 预计在“=”附近

FiveM 'then' expected near '='

你好,当我启动服务器并想开始做非法工作时,出现了这个

brx-drugs/client/client.lua:50: 'then' expected near '='

这里还有一段代码

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(1000)
        local pedCoords = GetEntityCoords(GetPlayerPed(-1))
        local dst = #(Config.StartLocation - pedCoords)
        if dst < 200 and jobSpawned = false then
            TriggerEvent ('brx-drugs:spawnJobPed',Config.StartLocation, 217.980
            jobSpawned = true
            refreshJobPed = true
        end
        if dst>= 201 then
            if DoesEntityExist(jobPed) then
                DeletePed(jobPed)
            end
            JobSpawned = false

        end
    end
end)

我不认为问题出在配置文件上,我无法绕过它,因为我是新开发人员

中缺少“=”

if dst < 200 and jobSpawned = false then

jobSpawned = false

改为

jobSpawned == false