HexscriptsClassicAimlab
Configurations
Here you will get all configurations & open source files that are included within this script.
Config Files
Config = {}
AimlabNPC = 'mp_m_exarmy_01' --Enter NPC
RollNPC = 'cs_fbisuit_01' --Roll Target NPC
AimlabSpawn = vector4(-3042.2407, -1504.7079, 233.3947, 92.2853)
RollSpawn = vector4(-3025.4670, -1506.4186, 233.3855, 268.8994)
DefaultDimension = 0
AimlabSpots = { --Points where to enter the LABS
['Roll Train'] = {
vector4(232.3267, -903.7983, 29.6920, 55.4587),
},
['Aim Lab'] = {
vector4(229.6487, -907.3605, 29.6920, 54.2927),
}
}
Blip = {
enabled = true,
sprite = 84, --https://wiki.rage.mp/index.php?title=Blips#Blip_model
color = 1, --https://wiki.rage.mp/index.php?title=Blips#Blip_colors
scale = 0.85, --Blip Size
short = false, --Short Range
text = 'HEX Aimlab', --Text
}
Config.Locales = {
['enter'] = '[~r~AIM~s~LAB] Press E',
['aimtrain'] = '~r~AIM~s~LAB AIM TRAIN',
['rolltrain'] = '~r~AIM~s~LAB ROLL TRAIN',
['hitted'] = 'Hitted Targets: ',
['timerem'] = 'Time Remaining:~y~ ',
['highscore'] = '~g~NEW~s~ HIGHSCORE: '
}
FreezePlayer = false --Freeze the Player in AIMLAB
UseOwnWeapons = false
Weapons = { -- Weapons to give in the Aimlab, if UseOwnWeapons is false, it will give the player these weapons, if true own weapons will be used.
{
weaponName = 'WEAPON_PISTOL',
components = {
'COMPONENT_AT_PI_SUPP_02', -- suppressor
}
}
}
function HelpNotify(msg)
AddTextEntry('esxHelpNotification', msg)
BeginTextCommandDisplayHelp('esxHelpNotification')
EndTextCommandDisplayHelp(0, false, true, -1)
end
function weaponWheel(state)
if GetResourceState('ox_inventory') == 'started' then
exports['ox_inventory']:weaponWheel(state)
elseif GetResourceState('qs-inventory') == 'started' then
exports['qs-inventory']:WeaponWheel(state)
elseif GetResourceState('jaksam_inventory') == 'started' then
exports['jaksam_inventory']:setWeaponWheel(state)
end
end