# qbx\_ambulancejob

```lua
local function billPlayer(src)
	local player = exports.qbx_core:GetPlayer(src)
	local price = exports.MrNewbPrescriptions:ReturnInsuredRate(src, sharedConfig.checkInCost)
	print("Original Price: "..sharedConfig.checkInCost)
	print("New Price: "..price)
	player.Functions.RemoveMoney('bank', price, 'respawned-at-hospital')
	config.depositSociety('ambulance', price)
	TriggerClientEvent('hospital:client:SendBillEmail', src, price)
end
```
