Infinity Store
Tebex StoreDiscord
  • CFX Auth
  • Resources
    • Scoreboard
      • Installation
      • Configuration
      • Robbery Integration
      • Exports
    • Squad system
      • Installation
      • Configuration
      • Exports
    • Notification
      • Installation
      • Configuration
      • Exports
    • Dashboard V2
      • Installation
      • Configuration
      • Webhooks
      • Exports
    • Job choice
      • Installation
      • Configuration
      • Exports
    • Pausemenu
      • Installation
      • Configuration
      • Exports
    • Playtime Shop
      • Installation
      • Configuration
      • Client events
      • SQL
      • Exports
    • Identity
      • Installation
      • Configuration
      • Exports
    • Keyguide
      • Installation
      • Configuration
      • Exports
    • HUD + UI LIB
      • Installation
      • Configuration
      • Customization
      • Exports
  • Military resources
    • Mortar
      • Installiation
      • Configuration
      • Exports
    • Bomb drone
      • Installiation
      • Configuration
      • Exports
    • Claymore
      • Installiation
      • Configuration
      • Exports
Powered by GitBook
On this page

Was this helpful?

  1. Military resources
  2. Mortar

Configuration

Configuration files overview:

Config = {}

-- Launage
Config.Laungage = "EN" -- EN,FR,ES,RU,CN,HU

-- Models
Config.MortarModel = GetHashKey("oldmortar")
Config.RocketModel = GetHashKey("w_lr_rpg_rocket")

-- You can change the sounds inthe sounds folder
Config.SoundRadius = 30.0 -- Airstrike sound radius

-- Operation keys
Config.Keys = {
	Fire = 38, -- E
	PickUp = 23, -- F
}

-- Blacklisted zones
Config.BlacklistedZones = {
	{
		coords = vector3(236.2009, -1046.317, 0),
		radius = 40.0,
	},
}

-- Camera keys
Config.CameraKeys = {
	Cancel = 322, -- ESC
	Fire = 215, -- Enter
	Up = 32, -- W
	Down = 33, -- S
	Right = 35, -- D
	Left = 34, -- A
	ZoomIn = 14, -- Scroll up
	ZoomOut = 15, -- Scroll down
}

-- Shooting ranges
Config.MaxDistance = 400.0
Config.MinDistance = 80.0

-- Explosion settings
Config.Explosion = {
	Type = 0, -- Explosion type
	Audio = true, -- Use audio
	CamerShake = 2.5, -- Camera Shake
	DamageScale = 30.0, -- Explosion scale
}

Config.ShootingEffect = {
	Smoke = true, -- Smoke effect
	Explosion = true, -- Explosion effect
}

-- Blip settings
Config.HitBlip = {
	Enable = true, -- Enable blip
	Time = 10, -- in seconds
	Color = 1, -- color
	Scale = 10.0, -- scale
}

Config.LocationBlip = {
	Enable = true, -- Enable blip
	Time = 10, -- in seconds
	Color = 47, -- color
	Scale = 5.0, -- scale
}

-- Use mortar item
Config.MortarItem = {
	Animation = {
		PickUp = {
			Enable = true,
			Dict = "combat@drag_ped@",
			Name = "injured_pickup_side_right_plyr",
		},
		PutDown = {
			Enable = true,
			Dict = "combat@drag_ped@",
			Name = "injured_putdown_plyr",
		},
	},
	Enable = true,
	Name = "mortar",
	RegisterUsableItem = true, -- Register item (bridge/server.lua)
}

-- Use item rocket
Config.RocketItem = {
	Enable = true,
	Name = "ammo-rocket",
}

-- Volumes
Config.Volume = {
	Incoming = 0.5,
	Shooting = 0.5,
}

-- Shooting animation
Config.ShootingAnimation = {
	Dict = "amb@code_human_cower@female@enter",
	Name = "enter",
}
Locales = {}
Locales["EN"] = {
	noEnoughRocketAmmo = "You don't have enough rocket ammo!",
	pressInputs = "~INPUT_CONTEXT~ ~r~FIRE WITH MORTAR~s~  ~n~~INPUT_ENTER~ ~g~PICK UP",
	placeObject = "PLACE OBJECT",
	rotateEntity = "ROTATE ENTITY",
	wait = "Wait until it cools down!",
	inUse = "The mortar is already in use.",
	NuiText = "(ESC) TO CANCEL |  (ENTER) TO SHOOT",
	CannotShoot = "(ESC) TO CANCEL | IT IS NOT POSSIBLE TO FIRE THERE",
}

Locales["FR"] = {
	noEnoughRocketAmmo = "Vous n'avez pas assez de munitions de roquette!",
	pressInputs = "~INPUT_CONTEXT~ ~r~TIRER AVEC LE MORTIER~s~  ~n~~INPUT_ENTER~ ~g~RAMASSER",
	placeObject = "PLACER OBJET",
	rotateEntity = "FAIRE TOURNER L'ENTITÉ",
	wait = "Attendez qu'il refroidisse!",
	inUse = "Le mortier est déjà en utilisation.",
	NuiText = "(ÉCHAP) POUR ANNULER | (ENTRÉE) POUR TIRER",
	CannotShoot = "IL EST IMPOSSIBLE DE TIRER LÀ",
}

Locales["ES"] = {
	noEnoughRocketAmmo = "¡No tienes suficiente munición de cohete!",
	pressInputs = "~INPUT_CONTEXT~ ~r~DISPARAR CON MORTERO~s~ ~n~~INPUT_ENTER~ ~g~RECOGER",
	placeObject = "COLOCAR OBJETO",
	rotateEntity = "GIRAR ENTIDAD",
	wait = "¡Espera a que se enfríe!",
	inUse = "El mortero ya está en uso.",
	NuiText = "(ESC) PARA CANCELAR | (ENTER) PARA DISPARAR",
	CannotShoot = "NO ES POSIBLE DISPARAR ALLÍ",
}

Locales["RU"] = {
	noEnoughRocketAmmo = "У вас недостаточно ракетных боеприпасов!",
	pressInputs = "~INPUT_CONTEXT~ ~r~ОГОНЬ ИЗ МИНОМЁТА~s~ ~n~~INPUT_ENTER~ ~g~ПОДОБРАТЬ",
	placeObject = "РАЗМЕСТИТЬ ОБЪЕКТ",
	rotateEntity = "ПОВЕРНУТЬ ОБЪЕКТ",
	wait = "Подождите, пока он остынет!",
	inUse = "Миномёт уже используется.",
	NuiText = "(ESC) ОТМЕНА | (ENTER) СТРЕЛЯТЬ",
	CannotShoot = "СТРЕЛЬБА ТУДА НЕВОЗМОЖНА",
}

Locales["CN"] = {
	noEnoughRocketAmmo = "你的火箭弹药不足!",
	pressInputs = "~INPUT_CONTEXT~ ~r~用迫击炮射击~s~  ~n~~INPUT_ENTER~ ~g~拾起",
	placeObject = "放置物体",
	rotateEntity = "旋转实体",
	wait = "等它冷却下来!",
	inUse = "迫击炮已经在使用中。",
	NuiText = "(ESC) 取消 | (ENTER) 射击",
	CannotShoot = "无法在那里开火",
}

Locales["HU"] = {
	noEnoughRocketAmmo = "Nincs elég rakétatöltényed!",
	pressInputs = "~INPUT_CONTEXT~ ~r~TŰZ MORTÁRRAL~s~ ~n~~INPUT_ENTER~ ~g~FELVÉTEL",
	placeObject = "OBJEKTUM ELHELYEZÉSE",
	rotateEntity = "ENTITÁS FORGATÁSA",
	wait = "Várj, amíg lehűl!",
	inUse = "A mortár már használatban van.",
	NuiText = "(ESC) KILÉPÉS | (ENTER) LÖVÉS",
	CannotShoot = "NEM LEHETSÉGES LŐNI",
}
PreviousInstalliationNextExports

Last updated 1 day ago

Was this helpful?