Esx Phone need help to get one working with jobs

I need help configuring a esx_phone to be able to work with jobs. like when someone dies , it gives 2 options, to call ambulance or respawn at hospital and lose everything. I have tried about 10 different ways to do it with no positive reaction. I am a beginner at this so learning as I go I got everything else working in my server but cant seem to get the phone to work. can anyone please help me. I can send more information if needed.