PingouinTheDev Doc's
  • 🔐About escrow system
    • 🔑"You lack the required entitlement to use ... "
    • ❌Failed to verify protected resource
    • 🛑Error parsing script / Failed to load script
    • ↔️Transferring assets to another account
  • ⁉️FAQ
    • Do you make partnerships ?
    • Do you take customs orders ?
    • And do you send any decrypted ver...
    • Do you provide assistance / help on your scripts ?
  • 📔Scripts doc's
    • 🚑Medical Reanimation Script
      • 🛠️General config
        • 🔌Frameworks and compatibility
        • ⚙️Miscellaneous
        • 💉Medical
        • ⛔Errors and Troubleshooting
      • 📃Features and How to use
    • 😵Decapitation script
      • 🛠️General config
      • 🔀Integrate with death scripts
    • 📹Facial Recognition
      • 🛠️General config
        • 🔌Frameworks
        • ⚙️Miscellaneous
        • ⛔Errors and Troubleshooting
      • 🎛️Utils
    • ⛺Homeless tent script
      • 🛠️General config
        • 🔌Frameworks
        • ⚙️Miscellaneous
        • ⌨️Keybinds
      • 🎛️Utils
Powered by GitBook
On this page
  • 🚑 cfg.vehs
  • 🧳cfg.props
  • 🚪cfg.openDoors
  • ⛽cfg.refillLocations
  • 👕 GetEupComponents
  1. Scripts doc's
  2. Medical Reanimation Script
  3. General config

Miscellaneous

This will explain the most important configs of the script.

PreviousFrameworks and compatibilityNextMedical

Last updated 3 months ago


🚑 cfg.vehs

This table will contain all the configs you need to have your vehicle ready for calls !

A vehicle config will look like this :

cfg.vehs = {
	[GetHashKey('ambulance')] = {
		['stryker_lifepak_15'] = {
			pos = vector3(-0.78, -3.3, 0.315), 
			rot = vector3(0, 0, 60.0), 
			bone = '',
		}, 
		['sacOxy'] = {
			pos = vector3(0.95, -3.2, 0.52), 
			rot = vector3(0, 0, 200.0), 
			bone = '',
		},
		doors = {'door_pside_r', 'door_dside_r'},
		useLOS = true,
	}, 
	--[...]
}

Let's dive into this :

  1. [GetHashKey('YourVehicleHere')] is the vehicle model you want the script to detect, you can add as many occurences as shown in the base config

  2. Inside the table of the vehicle, you will put ['stryker_lifepak_15'] and ['sacOxy'], these are the base models for the ECG Monitor and Oxygen bag

If you want only an oxygen bag or only an ECG monitor in a specific vehicle, just delete the related table ! eg: For my ambulance to carry only a ECG monitor :

[GetHashKey('ambulance')] = {
	['stryker_lifepak_15'] = {
		pos = vector3(-0.78, -3.3, 0.315), 
		rot = vector3(0, 0, 60.0), 
		bone = '',
	}, 
	['sacOxy'] = {
		pos = vector3(0.95, -3.2, 0.52), 
		rot = vector3(0, 0, 200.0), 
		bone = '',
	},
	doors = {'door_pside_r', 'door_dside_r'},
	useLOS = true,
},

Will become :

[GetHashKey('ambulance')] = {
	['stryker_lifepak_15'] = {
		pos = vector3(-0.78, -3.3, 0.315), 
		rot = vector3(0, 0, 60.0), 
		bone = '',
	}, 
	doors = {'door_pside_r', 'door_dside_r'},
	useLOS = true,
},
  1. For each object, you will find a pos and rot fields, this is the place where your prop will be place FROM THE CENTER OF THE VEHICLE. As a reminder : x = left/right | y = front/back | z = up/down

To place your objects more simply, use the built-in command '/coordsTool' withe the object you want to place (1 for the bag, 2 for the monitor) and the vehicle model to scan near to you.

  1. bone = "", is the bone you want to attach the prop to (this can be a door, trunk furniture ... useful for very detailed and animated vehicles. No built-in tool provided

  2. doors = {"door_pside_r", "door_dside_r"}, are the doors the script will open when taking a prop

  3. useLOS = bool, is the config that sets if the script should check the Line Of Sight between you and the entity. Setting this to false will help with the issue where you are not able to take a prop from a vehicle because of bad collisions.

If the bag is in the vehicle but you can't select it (no outline + key as no effect). This can be a bad vehicle collision / bad model. Script is detecting collisions and a bad vehicle model will interfere


🧳cfg.props

This table will contain all the configs you need to adapt the script to your own custom props !

Since this is an "Advanced" configuration, we will not dive deep into this part, you should bee able to figure all this by yourself. However, i will explain the most important fields

  • modelName : a String representing the model name

  • (Only for backpack) posOnBack : a vector3 representing the offset position from the back of the player

  • (Only for backpack) rotOnBack : a vector3 representing the offset rotation from the back of the player

When using a bone, rotation and location will become relative to the bone and not from the ped anymore

  • posInHand : a vector3 representing the offset position from the hand of a player

  • rotInHand : a vector3 representing the offset rotation from the hand of a player

  • screen & gauge: a table containing the width and height of the screen, its relative position and rotation from the prop center

  • pipeOffsetPos & wireOffsetPos : The position offset from the center of the prop where the wire or tube should start and attach

  • posOnVictim : The offset position relative to the ped center or bone if specified, to place the mask or electrode at

  • rotOnVictim : The offset rotation relative to the ped center or bone if specified, to place the mask or electrode at


🚪cfg.openDoors

Allow the script to open the vehicle doors if you dont use any context menu or Third Eye script

cfg.openDoors = true

⛽cfg.refillLocations

These are the coordinates where you can refill an used oxygen tank. Feel free to add or remove locations !

vector4(X , Y , Z , Heading)

cfg.refillLocations = {
	vector4(1194.57, -1483.54, 34.86, 137.77),
	vector4(0.0, 0.0, 0.0, 0.0),
}

👕 GetEupComponents

The EUP components ID's to put for the player to be shirtless

  • Drawable ID is the number of the cloth

bone & victimBone = A ped bone id to attach the prop to. List can be found

Component ID is the EUP class you want to select, these can be found

📔
🚑
🛠️
⚙️
HERE
HERE
cfg.vehs
cfg.props
cfg.openDoors
cfg.refillLocations
GetEupComponents