Frozen Wiki
Website
  • Documentation
  • 🔹Scripts
    • Frozen Medic Job
      • Installation
      • Dependencies
      • Exports
      • State Bags
      • Customizations
      • Common Issues
        • QBCore
    • Frozen Crutch
    • Frozen Scratch Ticket
      • Installations
    • Frozen Police Job
      • Installation
      • Dependencies
      • Exports
      • State Bags
      • Events
      • Customizations
    • Frozen Inventory
      • Features
      • Examples
      • Dependencies
      • Installation
        • v1.2 installation
    • Helicopter Camera
      • Adding custom helicopters
      • Moving the UI above the minimap
      • Adding controller inputs
      • Exports
      • Events
    • Frozen Poker
      • Installation
      • Dependencies
    • Frozen Fishing
      • Installation
      • Dependencies
      • Shop Items
      • Fishing Equipment Strength
    • Frozen Gym
      • Installation
      • Exports
        • Client Exports
        • Server Exports
  • 🔓Authorization
    • How to get authorized with license system?
Powered by GitBook
On this page
  1. Scripts
  2. Frozen Medic Job

Customizations

Quick easy customizable functions

Inventory Compatibility(Specifically removal of items on death)
  • Navigate to frozen_ambulance/server/sv_customize.lua

  • Find: RegisterServerEvent('frozen_ambulance:removeItemsOnDeath'

Stealing from dead players (ox_inventory)
  • Navigate to ox_inventory/client.lua

  • Find:

local function canOpenTarget(ped)
    return IsPedFatallyInjured(ped)
    or IsEntityPlayingAnim(ped, 'dead', 'dead_a', 3)
    or IsPedCuffed(ped)
    or IsEntityPlayingAnim(ped, 'mp_arresting', 'idle', 3)
    or IsEntityPlayingAnim(ped, 'missminuteman_1ig_2', 'handsup_base', 3)
    or IsEntityPlayingAnim(ped, 'missminuteman_1ig_2', 'handsup_enter', 3)
    or IsEntityPlayingAnim(ped, 'random@mugging3', 'handsup_standing_base', 3)
end
  • Replace with:

local function canOpenTarget(ped)
	return IsPedFatallyInjured(ped)
	or IsEntityPlayingAnim(ped, 'dead', 'dead_a', 3)
	or IsEntityPlayingAnim(ped, 'mini@cpr@char_b@cpr_def', 'cpr_pumpchest_idle', 3)
	or IsPedCuffed(ped, 120, true)
	or IsEntityPlayingAnim(ped, 'mp_arresting', 'idle', 3)
	or IsEntityPlayingAnim(ped, 'missminuteman_1ig_2', 'handsup_base', 3)
	or IsEntityPlayingAnim(ped, 'missminuteman_1ig_2', 'handsup_enter', 3)
	or IsEntityPlayingAnim(ped, 'mp_am_hold_up', 'handsup_base', 49)
	or IsEntityPlayingAnim(ped, 'random@mugging3', 'handsup_standing_base', 3)
end
PreviousState BagsNextCommon Issues

Last updated 1 year ago

🔹