HexscriptsVersion 1.0Weaponcrafter
Configurations
Here you will get all configurations & open source files that are included within this script.
Config Files
Config = {}
Config.Locale = 'de'
Config.weaponPartItem = 'phone' -- weaponpart
Config.AmmoInGuns = 1
Config.Debug = true
Config.weaponCrafter = {
{
position = vector4(3044.6021, -4656.8252, 15.2623, 274.2296),
ped = joaat('IG_BestMen'),
weapons = {
{
name = 'WEAPON_MACHINEPISTOL',
label = 'MachinePistol',
weaponParts = 35,
drum = 5,
flashlight = false,
grip = false,
suppressor = 15,
purple = 40,
platin = 20,
gold = 35
},
{
name = 'WEAPON_GUSENBERG',
label = 'Gusenberg',
weaponParts = 100,
drum = true,
flashlight = false,
grip = false,
suppressor = false,
purple = 40,
platin = 20,
gold = 35
},
{
name = 'WEAPON_SWITCHBLADE',
label = 'Klappmesser',
weaponParts = 15,
drum = false,
flashlight = false,
grip = false,
suppressor = false,
purple = false,
platin = false,
gold = false
},
{
name = 'WEAPON_HAMMER',
label = 'Hammer',
weaponParts = 15,
drum = false,
flashlight = false,
grip = false,
suppressor = false,
purple = false,
platin = false,
gold = false
}
}
}
}
Config.Locales = {
['de'] = {
['notifyTitle'] = 'Waffencrafter',
['missingParts'] = 'Du hast nicht genug Waffenteile',
['alreadyHave'] = 'Du hast bereits diese Waffe!',
['press_e'] = 'Drücke E um dir eine Waffe herzustellen',
['webhook_title'] = 'Waffencrafter',
['webhook_message'] = 'Der Spieler %s hat eine %s für %s hergestellt',
['webhook_date'] = "Am %s um %s"
},
['en'] = {
['notifyTitle'] = 'Weaponcrafter',
['missingParts'] = 'You dont have enough Weapon parts',
['alreadyHave'] = 'You already have this gun',
['press_e'] = 'Press E to make a weapon',
['webhook_title'] = 'Weaponcrafter',
['webhook_message'] = 'The player %s has produced a %s for %s',
['webhook_date'] = "On %s at %s"
}
}
function DrawHelpNotify(message)
SetTextComponentFormat('STRING')
AddTextComponentString(message)
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
end
function Notify(title, message, type, timeout)
TriggerEvent('hex_hud:notify', title, message, type, timeout)
end