You say you are scripting a CityRP. Does that mean your are scripting your own or using your own one? I'm afraid the PeopleMods one is terribly hard to understand, as everything is packed into one god damn function. I would look at whatever code is for the player ticks and find something relating to the jail time.