Check Custom field beforeCreate

Hi, I would like check if there are a custom field value in a custom field
before create the ticket. I think that use the beforecreate callbacks but i
don’t know how getting custom field value. Thx