Your client script is unable to get the info it needs from ESX returning nil because ESX doesn’t exist at that time.
Either your other part of code is executing faster than ESX is loading on client startup or then you have larger problem involving ESX but anyway it should be easy to fix.
please paste your police client main lua script here