Exports
Series of exports that will be added as time goes on. These are good for implementing radial menus and usage of 3rd party scripts
On this page
Client Exports
| Export | Result |
|---|---|
exports.frozen_ambulance:isPlayerDead(serverId) | Returns if player is dead. If used without serverId parameter it will return the death status of the local player |
exports.frozen_ambulance:diagnosePatient() | Gives notification of what injury a nearby dead player has. If no injury it will notify that no further treatment is needed |
exports.frozen_ambulance:treatPatient(injury) | Treats a nearby player for whichever injury is place in the injury parameter. Restricted to 'ambulance' and 'police' jobs (Possible Injuries: shot, stabbed, beat, burned) |
exports.frozen_ambulance:reviveTarget() | Performs CPR and revives nearby player given they have the item requirement |
exports.frozen_ambulance:healTarget() | If no close by player OR non-ambulance, it will perform a self-heal given the player has the required item. Otherwise it will start healing nearby player |
exports.frozen_ambulance:useSedative() | Performs the act of sedating nearby player. If you lack the required item or there are no nearby players, it will notify you of failure |
exports.frozen_ambulance:placeInVehicle() | Places nearby player in vehicle. If not player nearby it will notify you of failure. |
exports.frozen_ambulance:loadStretcher() | Will place a nearby player on a nearby stretcher. Recommended to check for nearby stretcher prior to executing this export |
exports.frozen_ambulance:openOutfits(hospital) | Opens outfit menu for whichever hospital ID(The name you give each hospital in Config.Locations |
Server Exports
| Export | Result |
|---|---|
exports.frozen_ambulance:RevivePlayer(SERVER_ID) | Will revive player with server id passed through SERVER_ID |
Still stuck?Ask on our Discord