SCRIPT ERROR: @esx_service/server/main.lua:7: bad argument #1 to 'for iterator' (table expected, got nil)

how to fix

Hello!
Read the warning above, it says
“Attempted to Use Inactive Service”

Have you registered it with this:

ESX.TriggerServerCallback('esx_service:enableService', function(canTakeService, maxInService, inServiceCount)

  if canTakeService then
    ESX.ShowNotification('You enabled service')
  else
    ESX.ShowNotification('Service is full: ' .. inServiceCount .. '/' .. maxInService)
  end

end, 'police')

I believe this can cause the issue!

:mascot:

is the code you posted a fix? or is that what the problem would be? and if its a fix, where does it need to be placed?

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