1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
EVO 2025-06-26 10:43:40 +02:00
commit 091f200603
60 changed files with 7676 additions and 130 deletions

View file

@ -1260,6 +1260,12 @@ CodeStudio.Products = {
itemPrice = 0, itemPrice = 0,
itemInfo = "", itemInfo = "",
}, },
['weapon_sniperrifle'] = {
itemName = "ABM Sniper Rifle",
itemStock = 50,
itemPrice = 0,
itemInfo = "",
},
['weapon_carbinerifle'] = { ['weapon_carbinerifle'] = {
itemName = "AR-15", itemName = "AR-15",
itemStock = 50, itemStock = 50,

View file

@ -1,11 +1,8 @@
local spawnedObjects = {} local spawnedObjects = {}
local imageDisplayed = false local imageDisplayed = false
RegisterNetEvent('pl_printer:notification') RegisterNetEvent('pl_printer:notification')
AddEventHandler('pl_printer:notification', function(message, type) AddEventHandler('pl_printer:notification', function(message, type)
if Config.Notify == 'ox' then if Config.Notify == 'ox' then
TriggerEvent('ox_lib:notify', {description = message, type = type or "success"}) TriggerEvent('ox_lib:notify', {description = message, type = type or "success"})
elseif Config.Notify == 'esx' then elseif Config.Notify == 'esx' then
@ -31,40 +28,69 @@ function enableControls()
FreezeEntityPosition(PlayerPedId(), false) FreezeEntityPosition(PlayerPedId(), false)
end end
-- Event für QB-Core Inventar
RegisterNetEvent("pl_printer:showImageQB") RegisterNetEvent("pl_printer:showImageQB")
AddEventHandler("pl_printer:showImageQB", function(imageName) AddEventHandler("pl_printer:showImageQB", function(imageName)
TriggerServerEvent('pl_printer:fetchImageLink',imageName) print("[DEBUG] Received showImageQB event with imageName: " .. tostring(imageName))
TriggerServerEvent('pl_printer:fetchImageLink', imageName)
end) end)
-- Hauptevent zum Anzeigen des Bildes
RegisterNetEvent("pl_printer:showImage") RegisterNetEvent("pl_printer:showImage")
AddEventHandler("pl_printer:showImage", function(imageName) AddEventHandler("pl_printer:showImage", function(imageUrl)
print("[DEBUG] Received showImage event with URL: " .. tostring(imageUrl))
if not imageDisplayed then if not imageDisplayed then
imageDisplayed = true imageDisplayed = true
SetNuiFocus(true, true) SetNuiFocus(true, true)
-- Extrahiere den Dateinamen aus der URL für die Dokument-ID
local documentId = imageUrl:match(".*/(.*)$") or "unknown"
SendNUIMessage({ SendNUIMessage({
action = "show", action = "show",
imageUrl = imageName imageUrl = imageUrl,
documentId = documentId -- Füge die Dokument-ID hinzu
}) })
disableControls() disableControls()
else
print("[DEBUG] Image already displayed, ignoring request")
end end
end) end)
-- NUI-Callback zum Schließen des Bildes
RegisterNUICallback('hideFrame', function(data, cb) RegisterNUICallback('hideFrame', function(data, cb)
print("[DEBUG] Hiding image frame")
imageDisplayed = false imageDisplayed = false
SetNuiFocus(false, false) SetNuiFocus(false, false)
enableControls() enableControls()
-- Füge einen Callback hinzu, wenn er benötigt wird
if cb then cb('ok') end
end) end)
-- Sicherheits-Callback für den Fall, dass die Seite neu geladen wird
RegisterNUICallback('pageLoaded', function(data, cb)
print("[DEBUG] NUI page loaded")
-- Stelle sicher, dass der Focus zurückgesetzt wird, falls die Seite neu geladen wurde
if not imageDisplayed then
SetNuiFocus(false, false)
end
if cb then cb('ok') end
end)
-- Event zum Öffnen des Druckermenüs
RegisterNetEvent("pl_printer:openprinter") RegisterNetEvent("pl_printer:openprinter")
AddEventHandler("pl_printer:openprinter", function() AddEventHandler("pl_printer:openprinter", function()
local input = lib.inputDialog('Print Menu', { local input = lib.inputDialog('Print Menu', {
{type = 'input', label = Locale("image_link"), description = Locale("image_url"), required = true}, {type = 'input', label = Locale("image_link"), description = Locale("image_url"), required = true},
{type = 'number', label = Locale("copies"), description = Locale("image_url"),required = true,placeholder='1', icon = 'hashtag'}, {type = 'number', label = Locale("copies"), description = Locale("image_url"), required = true, placeholder='1', icon = 'hashtag'},
}) })
if input then if input then
if input[1] and input[2] then if input[1] and input[2] then
print("[DEBUG] Sending image data to server: " .. input[1] .. ", copies: " .. input[2])
TriggerServerEvent('pl_printer:insertImageData', input[1], input[2]) TriggerServerEvent('pl_printer:insertImageData', input[1], input[2])
else else
_debug('[DEBUG] '..'Invalid Input'..'') _debug('[DEBUG] '..'Invalid Input'..'')
@ -72,6 +98,7 @@ AddEventHandler("pl_printer:openprinter", function()
end end
end) end)
-- Target-System-Konfiguration
for _, model in ipairs(Config.PrinterModel) do for _, model in ipairs(Config.PrinterModel) do
if GetResourceState('qb-target') == 'started' then if GetResourceState('qb-target') == 'started' then
exports['qb-target']:AddTargetModel(model, { exports['qb-target']:AddTargetModel(model, {
@ -86,7 +113,7 @@ for _, model in ipairs(Config.PrinterModel) do
}, },
distance = 2 distance = 2
}) })
elseif GetResourceState('qtarget') == 'started' or GetResourceState('ox_target') == 'started'then elseif GetResourceState('qtarget') == 'started' or GetResourceState('ox_target') == 'started' then
exports.ox_target:addModel(model, { exports.ox_target:addModel(model, {
{ {
name = 'printer_interaction', name = 'printer_interaction',
@ -101,7 +128,7 @@ for _, model in ipairs(Config.PrinterModel) do
end end
end end
-- Funktion zum Spawnen von Objekten
local function spawnObject(object, coords, heading) local function spawnObject(object, coords, heading)
lib.requestModel(object) lib.requestModel(object)
@ -109,6 +136,7 @@ local function spawnObject(object, coords, heading)
_debug('[DEBUG] '..object..' failed to load.'..'') _debug('[DEBUG] '..object..' failed to load.'..'')
return return
end end
local entity = CreateObject(object, coords.x, coords.y, coords.z, true, true, true) local entity = CreateObject(object, coords.x, coords.y, coords.z, true, true, true)
if DoesEntityExist(entity) then if DoesEntityExist(entity) then
@ -120,7 +148,7 @@ local function spawnObject(object, coords, heading)
end end
end end
-- Funktion zum Löschen von gespawnten Objekten
local function deleteSpawnedObjects() local function deleteSpawnedObjects()
for _, obj in ipairs(spawnedObjects) do for _, obj in ipairs(spawnedObjects) do
if DoesEntityExist(obj) then if DoesEntityExist(obj) then
@ -130,7 +158,7 @@ local function deleteSpawnedObjects()
spawnedObjects = {} spawnedObjects = {}
end end
-- Resource-Start-Event
AddEventHandler('onResourceStart', function(resourceName) AddEventHandler('onResourceStart', function(resourceName)
if GetCurrentResourceName() ~= resourceName then return end if GetCurrentResourceName() ~= resourceName then return end
for _, location in ipairs(Config.Locations) do for _, location in ipairs(Config.Locations) do
@ -138,12 +166,13 @@ AddEventHandler('onResourceStart', function(resourceName)
end end
end) end)
-- Resource-Stop-Event
AddEventHandler('onResourceStop', function(resourceName) AddEventHandler('onResourceStop', function(resourceName)
if GetCurrentResourceName() ~= resourceName then return end if GetCurrentResourceName() ~= resourceName then return end
deleteSpawnedObjects() deleteSpawnedObjects()
end) end)
-- Funktion für Spieler-Login
function onPlayerLoaded() function onPlayerLoaded()
Wait(3000) Wait(3000)
for _, location in ipairs(Config.Locations) do for _, location in ipairs(Config.Locations) do
@ -151,8 +180,52 @@ function onPlayerLoaded()
end end
end end
-- Debug-Hilfsfunktion
function _debug(...) function _debug(...)
if Config.Debug then if Config.Debug then
print(...) print(...)
end end
end end
-- Notfall-Thread zum Zurücksetzen des NUI-Focus, falls etwas schief geht
Citizen.CreateThread(function()
while true do
Citizen.Wait(1000)
if imageDisplayed then
-- Prüfe, ob ESC gedrückt wurde (Fallback für den Fall, dass der NUI-Callback nicht funktioniert)
if IsControlJustReleased(0, 177) then -- ESC-Taste
print("[DEBUG] ESC key detected in thread, resetting focus")
imageDisplayed = false
SetNuiFocus(false, false)
enableControls()
SendNUIMessage({
action = "hide"
})
end
else
Citizen.Wait(1000) -- Längere Wartezeit, wenn kein Bild angezeigt wird
end
end
end)
-- Füge diesen Code hinzu, um das HTML zu aktualisieren, wenn die Ressource neu gestartet wird
AddEventHandler('onResourceStart', function(resourceName)
if GetCurrentResourceName() == resourceName then
-- Stelle sicher, dass der NUI-Focus zurückgesetzt wird
SetNuiFocus(false, false)
imageDisplayed = false
enableControls()
end
end)
-- Füge diesen Code hinzu, um den NUI-Focus zurückzusetzen, wenn der Spieler stirbt
AddEventHandler('playerSpawned', function()
if imageDisplayed then
imageDisplayed = false
SetNuiFocus(false, false)
enableControls()
SendNUIMessage({
action = "hide"
})
end
end)

View file

@ -6,13 +6,13 @@ Config.Locale = 'en' -- 'en', 'fr', 'de', 'es', 'it', 'pt', 'tr' -- Language
Config.Debug = false Config.Debug = false
Config.Notify = 'ox' --ox, esx, okok,qb,wasabi,custom Config.Notify = 'okok' --ox, esx, okok,qb,wasabi,custom
Config.CheckItem = false --If you want player to have item before opening Config.CheckItem = false --If you want player to have item before opening
Config.PrinterModel = {`prop_printer_02`,`prop_printer_01`} Config.PrinterModel = {`prop_printer_02`,`prop_printer_01`,`v_res_printer`}
Config.ItemName = 'paper' Config.ItemName = 'printerdocument'
Config.Print = { Config.Print = {
Price = 50, --Price Price = 50, --Price

View file

@ -1,7 +1,7 @@
if GetResourceState('qb-core') == 'started' then if GetResourceState('qb-core') == 'started' then
QBCore = exports['qb-core']:GetCoreObject() QBCore = exports['qb-core']:GetCoreObject()
elseif GetResourceState('es_extended') == 'started' then elseif GetResourceState('es_extended') == 'started' then
ESX = exports['es_extended']:getSharedObject() ESX = exports['es_extended']:getSharedObject()
end end
local resourceName = 'pl_printer' local resourceName = 'pl_printer'
lib.versionCheck('pulsepk/pl_printer') lib.versionCheck('pulsepk/pl_printer')
@ -19,7 +19,7 @@ AddEventHandler('pl_printer:insertImageData', function(imageUrl, amount)
['@image_name'] = tostring(imageName), ['@image_name'] = tostring(imageName),
['@image_link'] = imageUrl ['@image_link'] = imageUrl
}, function(rowsChanged) }, function(rowsChanged)
print("[DEBUG] Image saved to database: " .. imageName)
end) end)
RemovePlayerMoney(Player,account,TotalBill) RemovePlayerMoney(Player,account,TotalBill)
TriggerClientEvent('pl_printer:notification',source,Locale("Money_Removed") .. TotalBill,'success') TriggerClientEvent('pl_printer:notification',source,Locale("Money_Removed") .. TotalBill,'success')
@ -31,18 +31,26 @@ AddEventHandler('pl_printer:insertImageData', function(imageUrl, amount)
end end
end) end)
RegisterServerEvent('pl_printer:fetchImageLink') RegisterServerEvent('pl_printer:fetchImageLink')
AddEventHandler('pl_printer:fetchImageLink', function(imageName,playerSource) AddEventHandler('pl_printer:fetchImageLink', function(imageName, playerSource)
local hasItem = HasItem(playerSource) local src = playerSource or source
if not hasItem then return end local hasItem = HasItem(src)
if not hasItem then
print("[DEBUG] Player doesn't have the required item")
return
end
print("[DEBUG] Fetching image with name: " .. tostring(imageName))
MySQL.Async.fetchScalar('SELECT image_link FROM printer WHERE image_name = @imageName', { MySQL.Async.fetchScalar('SELECT image_link FROM printer WHERE image_name = @imageName', {
['@imageName'] = imageName ['@imageName'] = imageName
}, function(imageLink) }, function(imageLink)
if imageLink then if imageLink then
TriggerClientEvent('pl_printer:showImage',playerSource,imageLink) print("[DEBUG] Found image link: " .. tostring(imageLink))
TriggerClientEvent('pl_printer:showImage', src, imageLink)
else else
_debug('[DEBUG] '..' No Image Link Found for '..imageName..'') print("[DEBUG] No Image Link Found for " .. tostring(imageName))
_debug('[DEBUG] '..' No Image Link Found for '..tostring(imageName)..'')
end end
end) end)
end) end)
@ -54,27 +62,62 @@ function AddItem(source, amount, imageName)
} }
if GetResourceState('qb-inventory') == 'started' then if GetResourceState('qb-inventory') == 'started' then
if lib.checkDependency('qb-inventory', '2.0.0') then if lib.checkDependency('qb-inventory', '2.0.0') then
exports['qb-inventory']:AddItem(src,Config.ItemName,amount,false,info) exports['qb-inventory']:AddItem(src, Config.ItemName, amount, false, info)
TriggerClientEvent('qb-inventory:client:ItemBox', src, QBCore.Shared.Items[Config.ItemName], 'add', amount) TriggerClientEvent('qb-inventory:client:ItemBox', src, QBCore.Shared.Items[Config.ItemName], 'add', amount)
else else
local Player = getPlayer(src) local Player = getPlayer(src)
Player.Functions.AddItem(Config.ItemName, amount,false, info) Player.Functions.AddItem(Config.ItemName, amount, false, info)
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[Config.ItemName], "add") TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[Config.ItemName], "add")
end end
elseif GetResourceState('ox_inventory') == 'started' then elseif GetResourceState('ox_inventory') == 'started' then
exports.ox_inventory:AddItem(src,Config.ItemName,amount,imageName,false) exports.ox_inventory:AddItem(src, Config.ItemName, amount, {type = imageName}, false)
elseif GetResourceState('qs-inventory') == 'started' then elseif GetResourceState('qs-inventory') == 'started' then
local itemMetadata ={ id = imageName } local itemMetadata = {id = imageName}
exports['qs-inventory']:AddItem(src,Config.ItemName,amount,false,itemMetadata) exports['qs-inventory']:AddItem(src, Config.ItemName, amount, false, itemMetadata)
end end
end end
AddEventHandler('onServerResourceStart', function() -- Registriere verwendbare Items für verschiedene Frameworks
AddEventHandler('onResourceStart', function(resourceName)
if GetCurrentResourceName() ~= resourceName then return end
-- QB-Core Item Registration
if GetResourceState('qb-core') == 'started' then
QBCore.Functions.CreateUseableItem(Config.ItemName, function(source, item)
local src = source
local imageName = item.info and item.info.id
if imageName then
TriggerEvent('pl_printer:fetchImageLink', imageName, src)
else
print("[DEBUG] No image ID found in item info")
end
end)
end
-- ESX Item Registration
if GetResourceState('es_extended') == 'started' then
ESX.RegisterUsableItem(Config.ItemName, function(source, item)
local src = source
local metadata = item.metadata or {}
local imageName = metadata.id
if imageName then
TriggerEvent('pl_printer:fetchImageLink', imageName, src)
else
print("[DEBUG] No image ID found in item metadata")
end
end)
end
-- ox_inventory export
if GetResourceState('ox_inventory') == 'started' then if GetResourceState('ox_inventory') == 'started' then
exports(Config.ItemName,function (event,item,inventory,slot,data) exports(Config.ItemName, function(event, item, inventory, slot, data)
if event == 'usingItem' then if event == 'usingItem' then
local item_metadata = exports.ox_inventory:GetSlot(inventory.id, slot) local item_metadata = exports.ox_inventory:GetSlot(inventory.id, slot)
TriggerEvent('pl_printer:fetchImageLink', item_metadata.metadata.type, inventory.id) if item_metadata and item_metadata.metadata and item_metadata.metadata.type then
TriggerEvent('pl_printer:fetchImageLink', item_metadata.metadata.type, inventory.id)
else
print("[DEBUG] No metadata type found in ox_inventory item")
end
end end
end) end)
end end
@ -86,13 +129,7 @@ local WaterMark = function()
print('^1['..resourceName..'] ^2If you encounter any issues please Join the discord https://discord.gg/c6gXmtEf3H to get support..^0') print('^1['..resourceName..'] ^2If you encounter any issues please Join the discord https://discord.gg/c6gXmtEf3H to get support..^0')
print('^1['..resourceName..'] ^2Enjoy a secret 20% OFF any script of your choice on https://pulsescripts.tebex.io/freescript^0') print('^1['..resourceName..'] ^2Enjoy a secret 20% OFF any script of your choice on https://pulsescripts.tebex.io/freescript^0')
print('^1['..resourceName..'] ^2Using the coupon code: SPECIAL20 (one-time use coupon, choose wisely)^0') print('^1['..resourceName..'] ^2Using the coupon code: SPECIAL20 (one-time use coupon, choose wisely)^0')
end) end)
end end
WaterMark() WaterMark()

View file

@ -10,39 +10,75 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
overflow: hidden; overflow: hidden;
/* Entferne den Hintergrund, der den Schleier verursacht */
background-color: transparent;
} }
#image { #image-container {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
max-width: 90%; max-width: 90%;
max-height: 90%; max-height: 90%;
display: none;
}
#image {
max-width: 100%;
max-height: 100%;
}
#document-id {
position: absolute;
bottom: 10px;
left: 10px;
color: white;
background-color: rgba(0, 0, 0, 0.5);
padding: 5px;
border-radius: 3px;
font-family: Arial, sans-serif;
display: none; /* Verstecke die Dokument-ID standardmäßig */
} }
</style> </style>
</head> </head>
<body> <body>
<img id="image" src="" alt="Image" style="display:none;"> <div id="image-container">
<img id="image" src="" alt="Document">
<div id="document-id"></div>
</div>
<script> <script>
window.addEventListener('message', function(event) { window.addEventListener('message', function(event) {
if (event.data.action === 'show') { if (event.data.action === 'show') {
// Zeige das spezifische Dokument basierend auf der URL
document.getElementById('image').src = event.data.imageUrl; document.getElementById('image').src = event.data.imageUrl;
document.getElementById('image').style.display = 'block';
// Zeige optional die Dokument-ID an (nur wenn Debug aktiviert ist)
if (event.data.documentId && false) { // Setze auf true für Debug
document.getElementById('document-id').textContent = "Dokument: " + event.data.documentId;
document.getElementById('document-id').style.display = 'block';
} else {
document.getElementById('document-id').style.display = 'none';
}
document.getElementById('image-container').style.display = 'block';
// Logge die Dokument-Informationen zur Fehlersuche
console.log("Dokument angezeigt:", event.data);
} else if (event.data.action === 'hide') { } else if (event.data.action === 'hide') {
document.getElementById('image').style.display = 'none'; document.getElementById('image-container').style.display = 'none';
} }
}); });
document.addEventListener("keydown", function(event) { document.addEventListener("keydown", function(event) {
if (event.key === "Escape") { if (event.key === "Escape") {
document.getElementById('image').style.display = 'none'; document.getElementById('image-container').style.display = 'none';
axios.post(`https://${GetParentResourceName()}/hideFrame`, {}) axios.post(`https://${GetParentResourceName()}/hideFrame`, {})
.then(function (response) { .then(function (response) {
}) console.log("Frame versteckt");
.catch(function (error) { })
}); .catch(function (error) {
} console.error("Fehler beim Verstecken des Frames:", error);
}); });
}
});
</script> </script>
</body> </body>
</html> </html>

View file

@ -241,7 +241,7 @@ Config.WeaponRecoil = {
[984333226] = 5.0, --WEAPON_HEAVYSHOTGUN [984333226] = 5.0, --WEAPON_HEAVYSHOTGUN
[-275439685] = 5.5, --WEAPON_DOUBLEBARRELSHOTGUN [-275439685] = 5.5, --WEAPON_DOUBLEBARRELSHOTGUN
[317205821] = 6.0, --WEAPON_AUTOSHOTGUN [317205821] = 6.0, --WEAPON_AUTOSHOTGUN
[94989220] = 0.3, --WEAPON_COMBATSHOTGUN [94989220] = 0.2, --WEAPON_COMBATSHOTGUN
--HEAVY WEAPONS --HEAVY WEAPONS
[-1568386805] = 2.5, --WEAPON_GRENADELAUNCHER [-1568386805] = 2.5, --WEAPON_GRENADELAUNCHER
@ -317,7 +317,7 @@ Config.WeaponShake = {
[984333226] = 0.3, --WEAPON_HEAVYSHOTGUN [984333226] = 0.3, --WEAPON_HEAVYSHOTGUN
[-275439685] = 0.3, --WEAPON_DOUBLEBARRELSHOTGUN [-275439685] = 0.3, --WEAPON_DOUBLEBARRELSHOTGUN
[317205821] = 0.3, --WEAPON_AUTOSHOTGUN [317205821] = 0.3, --WEAPON_AUTOSHOTGUN
[94989220] = 0.3, --WEAPON_COMBATSHOTGUN [94989220] = 0.1, --WEAPON_COMBATSHOTGUN
--HEAVY WEAPONS --HEAVY WEAPONS
[-1568386805] = 0.04, --WEAPON_GRENADELAUNCHER [-1568386805] = 0.04, --WEAPON_GRENADELAUNCHER

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<fwClipSetManager>
<clipSets>
<Item type="fwClipSet" key="anim@melee@colbaton@holster">
<fallbackId>melee@holster</fallbackId>
<clipDictionaryName>anim@melee@colbaton@holster</clipDictionaryName>
<clipItems />
<moveNetworkFlags />
</Item>
</clipSets>
<clipDictionaryMetadatas>
<Item key="anim@melee@colbaton@holster">
<streamingPolicy>SP_STREAMING</streamingPolicy>
<memoryGroup>MG_Melee</memoryGroup>
<streamingPriority>SP_Medium</streamingPriority>
</Item>
</clipDictionaryMetadatas>
</fwClipSetManager>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<SContentUnlocks>
<listOfUnlocks>
<Item>CU_WEP_COLBATON</Item>
</listOfUnlocks>
</SContentUnlocks>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<CExtraTextMetaFile>
<hasGlobalTextFile value="true"/>
<hasAdditionalText value="false"/>
<isTitleUpdate value="false"/>
</CExtraTextMetaFile>

View file

@ -0,0 +1,35 @@
fx_version 'cerulean'
game 'gta5'
description 'Telescopic Baton'
version '1.2'
files {
'dlctext.meta',
'audio/colbaton_game.dat151.rel',
'audio/colbaton_sounds.dat54.rel',
'pickups.meta',
'contentunlocks.meta',
'shop_weapon.meta',
'weaponarchetypes.meta',
'weaponcomponents.meta',
'weaponanimations.meta',
'pedpersonality.meta',
'weapon_colbaton.meta',
'clip_sets.xml'
}
data_file 'TEXTFILE_METAFILE' 'dlctext.meta'
data_file 'AUDIO_GAMEDATA' 'audio/colbaton_game.dat'
data_file 'AUDIO_SOUNDDATA' 'audio/colbaton_sounds.dat'
data_file 'DLC_WEAPON_PICKUPS' 'pickups.meta'
data_file 'CONTENT_UNLOCKING_META_FILE' 'contentunlocks.meta'
data_file 'WEAPON_SHOP_INFO_METADATA_FILE' 'shop_weapon.meta'
data_file 'WEAPON_METADATA_FILE' 'weaponarchetypes.meta'
data_file 'WEAPONCOMPONENTSINFO_FILE' 'weaponcomponents.meta'
data_file 'WEAPON_ANIMATIONS_FILE' 'weaponanimations.meta'
data_file 'PED_PERSONALITY_FILE' 'pedpersonality.meta'
data_file 'WEAPONINFO_FILE' 'weapon_colbaton.meta'
data_file 'CLIP_SETS_FILE' 'clip_sets.xml'
client_script 'names.lua'

View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<CPedInventoryLoadOutManager>
<LoadOuts>
<Item>
<Name>LOADOUT_CHEAT_0</Name>
<Items>
<Item type="CLoadOutWeapon">
<WeaponName>WEAPON_COLBATON</WeaponName>
<Ammo />
<Flags/>
<ComponentNames/>
</Item>
</Items>
</Item>
<Item>
<Name>LOADOUT_CHEAT_1</Name>
<Items>
<Item type="CLoadOutWeapon">
<WeaponName>WEAPON_COLBATON</WeaponName>
<Ammo />
<Flags/>
<ComponentNames/>
</Item>
</Items>
</Item>
</LoadOuts>
</CPedInventoryLoadOutManager>

View file

@ -0,0 +1,7 @@
Citizen.CreateThread(function()
AddTextEntry("WCT_CBTN_GRIP", "Tactical Grip")
AddTextEntry("WTD_COLBATON", "The prolapse assraper rapes your ass until you collaps with a prolapse (eminem starts raping)=")
AddTextEntry("WTT_COLBATON", "The Telescopic Baton")
AddTextEntry("WTU_COLBATON", "TELESCOPIC BATON")
AddTextEntry("WT_COLBATON", "Telescopic Baton")
end)

View file

@ -0,0 +1,361 @@
<?xml version="1.0" encoding="UTF-8"?>
<CPedModelInfo__PersonalityDataList>
<MovementModeUnholsterData>
<Item>
<Name>UNHOLSTER_UNARMED</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<Clip>unarmed_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_2H_MELEE</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<Clip>2h_melee_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_1H</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<Clip>1h_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_2H</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<Clip>2h_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_MINIGUN</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<Clip>mini_holster_2h_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_UNARMED_STEALTH</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<Clip>unarmed_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_2H_MELEE_STEALTH</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<Clip>unarmed_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_1H_STEALTH</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<Clip>1h_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_2H_STEALTH</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<Clip>2h_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
</MovementModeUnholsterData>
<MovementModes>
<Item>
<Name>DEFAULT_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_action@p_m_zero@unarmed@core</MovementClipSetId>
<WeaponClipSetId />
<WeaponClipFilterId />
<UpperBodyShadowExpressionEnabled value="false" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="true" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>MOVE_ACTION@GENERIC@TRANS@UNARMED</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>anim@melee@colbaton@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED" />
</Item>
</ClipSets>
</Item>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_stealth@p_m_zero@unarmed@core</MovementClipSetId>
<WeaponClipSetId>Wpn_Switchblade_Stealth</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="false" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>move_stealth@generic@trans@unarmed</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>anim@melee@colbaton@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED_STEALTH" />
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
</Item>
<Item>
<Name>MP_FEMALE_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_action@p_m_zero@unarmed@core</MovementClipSetId>
<WeaponClipSetId />
<WeaponClipFilterId />
<UpperBodyShadowExpressionEnabled value="false" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="true" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>MOVE_ACTION@MP_FEMALE@UNARMED@TRANS@</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>anim@melee@colbaton@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED" />
</Item>
</ClipSets>
</Item>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_stealth@p_m_zero@unarmed@core</MovementClipSetId>
<WeaponClipSetId>Wpn_Switchblade_Stealth</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="false" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>MOVE_STEALTH@MP_FEMALE@UNARMED@TRANS</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>anim@melee@colbaton@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED_STEALTH" />
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
</Item>
<Item>
<Name>MICHAEL_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_action@p_m_zero@unarmed@core</MovementClipSetId>
<WeaponClipSetId />
<WeaponClipFilterId />
<UpperBodyShadowExpressionEnabled value="false" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="true" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>MOVE_ACTION@P_M_ZERO@UNARMED@TRANS@A</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>anim@melee@colbaton@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED" />
</Item>
</ClipSets>
</Item>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_stealth@p_m_zero@unarmed@core</MovementClipSetId>
<WeaponClipSetId>Wpn_Switchblade_Stealth</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="false" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>move_stealth@p_m_zero@unarmed@trans@a</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>anim@melee@colbaton@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED_STEALTH" />
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
</Item>
<Item>
<Name>FRANKLIN_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_action@p_m_one@unarmed@core</MovementClipSetId>
<WeaponClipSetId />
<WeaponClipFilterId />
<UpperBodyShadowExpressionEnabled value="false" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="true" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>MOVE_ACTION@P_M_ONE@UNARMED@TRANS@A</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>anim@melee@colbaton@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED" />
</Item>
</ClipSets>
</Item>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_stealth@p_m_one@unarmed@core</MovementClipSetId>
<WeaponClipSetId>Wpn_Switchblade_Stealth</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="false" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>move_stealth@p_m_one@unarmed@trans@a</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>anim@melee@colbaton@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED_STEALTH" />
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
</Item>
<Item>
<Name>TREVOR_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_action@p_m_two@unarmed@core</MovementClipSetId>
<WeaponClipSetId />
<WeaponClipFilterId />
<UpperBodyShadowExpressionEnabled value="false" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="true" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>MOVE_ACTION@P_M_TWO@UNARMED@TRANS@A</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>anim@melee@colbaton@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED" />
</Item>
</ClipSets>
</Item>
<Item>
<Weapons>
<Item>WEAPON_COLBATON</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_stealth@p_m_two@unarmed@core</MovementClipSetId>
<WeaponClipSetId>Wpn_Switchblade_Stealth</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="false" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>move_stealth@p_m_two@unarmed@trans@a</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>anim@melee@colbaton@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED_STEALTH" />
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
</Item>
</MovementModes>
</CPedModelInfo__PersonalityDataList>

View file

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<CPickupDataManager>
<pickupData>
<Item type="CPickupData">
<Name>PICKUP_WEAPON_COLBATON</Name>
<Model>w_me_colbaton</Model>
<GenerationRange value="80.000000"/>
<RegenerationTime value="60.000000"/>
<CollectionRadiusFirstPerson value="2.000000"/>
<CollectionRadius value="1.000000"/>
<Scale value="1.000000"/>
<LoopingAudioRef>NULL_SOUND</LoopingAudioRef>
<GlowRed value="1.000000" />
<GlowGreen value="0.225000" />
<GlowBlue value="0.000000" />
<GlowIntensity value="0.500000" />
<DarkGlowIntensity value="0.500000" />
<MPGlowIntensity value="0.500000" />
<MPDarkGlowIntensity value="3.000000" />
<GlowRange value="2.000000" />
<AttachmentBone>BONETAG_ROOT</AttachmentBone>
<AttachmentOffset x="0.000000" y="0.000000" z="0.000000"/>
<AttachmentRotation x="0.000000" y="0.000000" z="0.000000"/>
<PickupFlags>CollectableOnFoot</PickupFlags>
<OnFootPickupActions>
<Item>ACTION_GROUP_ONFOOT</Item>
<Item>ACTION_AUDIO_MELEE</Item>
</OnFootPickupActions>
<InCarPickupActions/>
<OnShotPickupActions/>
<Rewards>
<Item>REWARD_WEAPON_COLBATON</Item>
<Item>REWARD_STAT_WEAPON</Item>
</Rewards>
</Item>
</pickupData>
<actionData/>
<rewardData>
<Item type="CPickupRewardWeapon">
<Name>REWARD_WEAPON_COLBATON</Name>
<WeaponRef>WEAPON_COLBATON</WeaponRef>
<Equip value="true"/>
</Item>
</rewardData>
</CPickupDataManager>

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<WeaponShopItemArray>
<weaponShopItems>
<Item>
<lockHash>CU_WEP_COLBATON</lockHash>
<nameHash>WEAPON_COLBATON</nameHash>
<cost value="2800"/>
<ammoCost value="0"/>
<textLabel>WT_COLBATON</textLabel>
<weaponDesc>WTD_COLBATON</weaponDesc>
<weaponTT>WTT_COLBATON</weaponTT>
<weaponUppercase>WTU_COLBATON</weaponUppercase>
<weaponComponents>
<Item>
<componentName>COMPONENT_COLBATON_GRIP_01</componentName>
<cost value="300"/>
<textLabel>WCT_CBTN_GRIP</textLabel>
<componentDesc>WCD_INVALID</componentDesc>
</Item>
</weaponComponents>
</Item>
</weaponShopItems>
</WeaponShopItemArray>

View file

@ -0,0 +1,363 @@
<?xml version="1.0" encoding="UTF-8"?>
<CWeaponInfoBlob>
<SlotNavigateOrder>
<Item>
<WeaponSlots>
<Item>
<OrderNumber value="2175"/>
<Entry>SLOT_COLBATON</Entry>
</Item>
</WeaponSlots>
</Item>
</SlotNavigateOrder>
<SlotBestOrder>
<WeaponSlots>
<Item>
<OrderNumber value="2075"/>
<Entry>SLOT_COLBATON</Entry>
</Item>
</WeaponSlots>
</SlotBestOrder>
<TintSpecValues>
<Item>
<Name>TINT_COLBATON</Name>
<Tints>
<!-- Base -->
<Item>
<SpecFresnel value="0.750000"/>
<SpecFalloffMult value="40.000000"/>
<SpecIntMult value="0.750000"/>
<Spec2Factor value="80.000000"/>
<Spec2ColorInt value="1.000000"/>
<Spec2Color value="0x00000000fdfaec"/>
</Item>
<!-- Green -->
<Item>
<SpecFresnel value="0.750000"/>
<SpecFalloffMult value="40.000000"/>
<SpecIntMult value="0.750000"/>
<Spec2Factor value="80.000000"/>
<Spec2ColorInt value="1.000000"/>
<Spec2Color value="0x00000000fdfaec"/>
</Item>
<!-- Gold -->
<Item>
<SpecFresnel value="1.000000"/>
<SpecFalloffMult value="115.000000"/>
<SpecIntMult value="1.000000"/>
<Spec2Factor value="40.000000"/>
<Spec2ColorInt value="1.000000"/>
<Spec2Color value="0x00000000ffba00"/>
</Item>
<!-- Pink -->
<Item>
<SpecFresnel value="0.750000"/>
<SpecFalloffMult value="40.000000"/>
<SpecIntMult value="0.750000"/>
<Spec2Factor value="80.000000"/>
<Spec2ColorInt value="1.000000"/>
<Spec2Color value="0x00000000fdfaec"/>
</Item>
<!-- Army -->
<Item>
<SpecFresnel value="0.800000"/>
<SpecFalloffMult value="40.000000"/>
<SpecIntMult value="0.500000"/>
<Spec2Factor value="10.000000"/>
<Spec2ColorInt value="1.000000"/>
<Spec2Color value="0x00000000dbd5bb"/>
</Item>
<!-- LSPD -->
<Item>
<SpecFresnel value="0.750000"/>
<SpecFalloffMult value="40.000000"/>
<SpecIntMult value="0.750000"/>
<Spec2Factor value="80.000000"/>
<Spec2ColorInt value="1.000000"/>
<Spec2Color value="0x00000000fdfaec"/>
</Item>
<!-- Orange -->
<Item>
<SpecFresnel value="0.750000"/>
<SpecFalloffMult value="40.000000"/>
<SpecIntMult value="0.750000"/>
<Spec2Factor value="80.000000"/>
<Spec2ColorInt value="1.000000"/>
<Spec2Color value="0x00000000fdfaec"/>
</Item>
<!-- Platinum -->
<Item>
<SpecFresnel value="0.500000"/>
<SpecFalloffMult value="650.000000"/>
<SpecIntMult value="1.000000"/>
<Spec2Factor value="115.000000"/>
<Spec2ColorInt value="1.000000"/>
<Spec2Color value="0x00000000ffffff"/>
</Item>
<!-- Training Blue -->
<Item>
<SpecFresnel value="0.750000"/>
<SpecFalloffMult value="50.000000"/>
<SpecIntMult value="0.250000"/>
<Spec2Factor value="30.000000"/>
<Spec2ColorInt value="1.000000"/>
<Spec2Color value="0x000000006a93b5"/>
</Item>
<!-- Wine -->
<Item>
<SpecFresnel value="0.750000"/>
<SpecFalloffMult value="40.000000"/>
<SpecIntMult value="0.750000"/>
<Spec2Factor value="80.000000"/>
<Spec2ColorInt value="1.000000"/>
<Spec2Color value="0x0000000033162e"/>
</Item>
</Tints>
</Item>
</TintSpecValues>
<FiringPatternAliases/>
<UpperBodyFixupExpressionData/>
<AimingInfos/>
<Infos>
<Item>
<Infos>
<Item type="CWeaponInfo">
<Name>WEAPON_COLBATON</Name>
<Model>w_me_colbaton</Model>
<Audio>AUDIO_ITEM_MELEE_COLBATON</Audio>
<Slot>SLOT_COLBATON</Slot>
<DamageType>MELEE</DamageType>
<Explosion>
<Default>DONTCARE</Default>
<HitCar>DONTCARE</HitCar>
<HitTruck>DONTCARE</HitTruck>
<HitBike>DONTCARE</HitBike>
<HitBoat>DONTCARE</HitBoat>
<HitPlane>DONTCARE</HitPlane>
</Explosion>
<FireType>MELEE</FireType>
<WheelSlot>WHEEL_UNARMED_MELEE</WheelSlot>
<Group>GROUP_MELEE</Group>
<AmmoInfo ref="NULL"/>
<AimingInfo ref="UNARMED_TARGETING_RESTRAINTS"/>
<ClipSize value="0"/>
<AccuracySpread value="0.000000"/>
<AccurateModeAccuracyModifier value="0.500000"/>
<RunAndGunAccuracyModifier value="2.000000"/>
<RunAndGunAccuracyMinOverride value="-1.000000"/>
<RecoilAccuracyMax value="1.000000"/>
<RecoilErrorTime value="0.000000"/>
<RecoilRecoveryRate value="1.000000"/>
<RecoilAccuracyToAllowHeadShotAI value="1000.000000"/>
<MinHeadShotDistanceAI value="1000.000000"/>
<MaxHeadShotDistanceAI value="1000.000000"/>
<HeadShotDamageModifierAI value="1000.000000"/>
<RecoilAccuracyToAllowHeadShotPlayer value="0.175000"/>
<MinHeadShotDistancePlayer value="5.000000"/>
<MaxHeadShotDistancePlayer value="40.000000"/>
<HeadShotDamageModifierPlayer value="18.000000"/>
<Damage value="0.000000"/>
<DamageTime value="0.000000"/>
<DamageTimeInVehicle value="0.000000"/>
<DamageTimeInVehicleHeadShot value="0.000000"/>
<HitLimbsDamageModifier value="0.500000"/>
<NetworkHitLimbsDamageModifier value="0.800000"/>
<LightlyArmouredDamageModifier value="0.750000"/>
<Force value="0.000000"/>
<ForceHitPed value="100.000000"/>
<ForceHitVehicle value="0.000000"/>
<ForceHitFlyingHeli value="0.000000"/>
<OverrideForces>
<Item>
<BoneTag>BONETAG_HEAD</BoneTag>
<ForceFront value="65.000000"/>
<ForceBack value="75.500000"/>
</Item>
<Item>
<BoneTag>BONETAG_NECK</BoneTag>
<ForceFront value="45.000000"/>
<ForceBack value="45.000000"/>
</Item>
<Item>
<BoneTag>BONETAG_R_CLAVICLE</BoneTag>
<ForceFront value="75.000000"/>
<ForceBack value="80.000000"/>
</Item>
<Item>
<BoneTag>BONETAG_L_CLAVICLE</BoneTag>
<ForceFront value="75.000000"/>
<ForceBack value="80.000000"/>
</Item>
<Item>
<BoneTag>BONETAG_SPINE3</BoneTag>
<ForceFront value="60.500000"/>
<ForceBack value="75.000000"/>
</Item>
</OverrideForces>
<ForceMaxStrengthMult value="1.000000"/>
<ForceFalloffRangeStart value="0.000000"/>
<ForceFalloffRangeEnd value="50.000000"/>
<ForceFalloffMin value="1.000000"/>
<ProjectileForce value="0.000000"/>
<FragImpulse value="2250.000000"/>
<Penetration value="0.000000"/>
<VerticalLaunchAdjustment value="0.000000"/>
<DropForwardVelocity value="0.000000"/>
<Speed value="2000.000000"/>
<BulletsInBatch value="1"/>
<BatchSpread value="0.000000"/>
<ReloadTimeMP value="-1.000000"/>
<ReloadTimeSP value="-1.000000"/>
<VehicleReloadTime value="-1.000000"/>
<AnimReloadRate value="1.000000"/>
<BulletsPerAnimLoop value="1"/>
<TimeBetweenShots value="0.000000"/>
<TimeLeftBetweenShotsWhereShouldFireIsCached value="-1.000000"/>
<SpinUpTime value="0.000000"/>
<SpinTime value="0.000000"/>
<SpinDownTime value="0.000000"/>
<AlternateWaitTime value="-1.000000"/>
<BulletBendingNearRadius value="0.000000"/>
<BulletBendingFarRadius value="0.000000"/>
<BulletBendingZoomedRadius value="0.000000"/>
<Fx>
<EffectGroup>WEAPON_EFFECT_GROUP_MELEE_WOOD</EffectGroup>
<FlashFx/>
<FlashFxAlt/>
<MuzzleSmokeFx/>
<MuzzleSmokeFxMinLevel value="0.000000"/>
<MuzzleSmokeFxIncPerShot value="0.000000"/>
<MuzzleSmokeFxDecPerSec value="0.000000"/>
<ShellFx/>
<TracerFx/>
<PedDamageHash/>
<TracerFxChanceSP value="0.000000"/>
<TracerFxChanceMP value="0.000000"/>
<FlashFxChanceSP value="0.000000"/>
<FlashFxChanceMP value="0.000000"/>
<FlashFxAltChance value="0.000000"/>
<FlashFxScale value="1.000000"/>
<FlashFxLightEnabled value="false"/>
<FlashFxLightCastsShadows value="false"/>
<FlashFxLightOffsetDist value="0.000000"/>
<FlashFxLightRGBAMin x="0.000000" y="0.000000" z="0.000000"/>
<FlashFxLightRGBAMax x="0.000000" y="0.000000" z="0.000000"/>
<FlashFxLightIntensityMinMax x="0.000000" y="0.000000"/>
<FlashFxLightRangeMinMax x="0.000000" y="0.000000"/>
<FlashFxLightFalloffMinMax x="0.000000" y="0.000000"/>
<GroundDisturbFxEnabled value="false"/>
<GroundDisturbFxDist value="5.000000"/>
<GroundDisturbFxNameDefault/>
<GroundDisturbFxNameSand/>
<GroundDisturbFxNameDirt/>
<GroundDisturbFxNameWater/>
<GroundDisturbFxNameFoliage/>
</Fx>
<InitialRumbleDuration value="0"/>
<InitialRumbleIntensity value="0.000000"/>
<InitialRumbleIntensityTrigger value="0.000000"/>
<RumbleDuration value="0"/>
<RumbleIntensity value="0.000000"/>
<RumbleIntensityTrigger value="0.000000"/>
<RumbleDamageIntensity value="1.000000"/>
<NetworkPlayerDamageModifier value="1.000000"/>
<NetworkPedDamageModifier value="1.000000"/>
<NetworkHeadShotPlayerDamageModifier value="1.000000"/>
<LockOnRange value="10.000000"/>
<WeaponRange value="1.500000"/>
<BulletDirectionOffsetInDegrees value="0.000000"/>
<AiSoundRange value="-1.000000"/>
<AiPotentialBlastEventRange value="-1.000000"/>
<DamageFallOffRangeMin value="1.600000"/>
<DamageFallOffRangeMax value="1.600000"/>
<DamageFallOffModifier value="0.300000"/>
<VehicleWeaponHash/>
<DefaultCameraHash>MELEE_AIM_CAMERA</DefaultCameraHash>
<CoverCameraHash>MELEE_AIM_IN_COVER_CAMERA</CoverCameraHash>
<CoverReadyToFireCameraHash/>
<RunAndGunCameraHash/>
<CinematicShootingCameraHash/>
<AlternativeOrScopedCameraHash/>
<RunAndGunAlternativeOrScopedCameraHash/>
<CinematicShootingAlternativeOrScopedCameraHash/>
<CameraFov value="50.000000"/>
<ZoomFactorForAccurateMode value="1.000000"/>
<RecoilShakeHash/>
<RecoilShakeHashFirstPerson/>
<AccuracyOffsetShakeHash/>
<MinTimeBetweenRecoilShakes value="150"/>
<RecoilShakeAmplitude value="1.000000"/>
<ExplosionShakeAmplitude value="-1.000000"/>
<ReticuleHudPosition x="0.000000" y="0.000000"/>
<AimOffsetMin x="0.000000" y="0.000000" z="0.000000"/>
<AimProbeLengthMin value="0.000000"/>
<AimOffsetMax x="0.000000" y="0.000000" z="0.000000"/>
<AimProbeLengthMax value="0.000000"/>
<AimOffsetMinFPSIdle x="0.178000" y="0.392000" z="0.135000"/>
<AimOffsetMedFPSIdle x="0.169000" y="0.312000" z="0.420000"/>
<AimOffsetMaxFPSIdle x="0.187000" y="0.064000" z="0.649000"/>
<AimOffsetMinFPSLT x="0.009000" y="0.334000" z="0.555000"/>
<AimOffsetMaxFPSLT x="0.062000" y="-0.164000" z="0.588000"/>
<AimOffsetMinFPSRNG x="0.114000" y="0.390000" z="0.485000"/>
<AimOffsetMaxFPSRNG x="0.113000" y="-0.263000" z="0.586000"/>
<AimOffsetMinFPSScope x="0.009000" y="0.421000" z="0.462000"/>
<AimOffsetMaxFPSScope x="0.037000" y="-0.224000" z="0.639000"/>
<AimOffsetEndPosMinFPSIdle x="0.208000" y="0.700000" z="0.003000"/>
<AimOffsetEndPosMedFPSIdle x="0.203000" y="0.604000" z="0.553000"/>
<AimOffsetEndPosMaxFPSIdle x="0.207000" y="-0.040000" z="0.942000"/>
<TorsoAimOffset x="0.000000" y="0.000000"/>
<TorsoCrouchedAimOffset x="0.000000" y="0.000000"/>
<LeftHandIkOffset x="0.000000" y="0.000000" z="0.000000"/>
<ReticuleMinSizeStanding value="1.000000"/>
<ReticuleMinSizeCrouched value="1.000000"/>
<ReticuleScale value="1.000000"/>
<ReticuleStyleHash/>
<FirstPersonReticuleStyleHash/>
<PickupHash>PICKUP_WEAPON_COLBATON</PickupHash>
<MPPickupHash/>
<HumanNameHash>WT_COLBATON</HumanNameHash>
<MovementModeConditionalIdle/>
<StatName>NIGHTSTICK</StatName>
<KnockdownCount value="-1"/>
<KillshotImpulseScale value="1.000000"/>
<NmShotTuningSet>Normal</NmShotTuningSet>
<AttachPoints>
<Item>
<AttachBone>Gun_Main_Bone</AttachBone>
<Components>
<Item>
<Name>COMPONENT_COLBATON_GRIP_01</Name>
<Default value="false"/>
</Item>
</Components>
</Item>
</AttachPoints>
<GunFeedBone/>
<TargetSequenceGroup/>
<WeaponFlags>AllowMeleeBlock CarriedInHand ArmourPenetrating CanLockonOnFoot CanLockonInVehicle MeleeClub UsableOnFoot UsableClimbing UsableInCover DoesRevivableDamage AllowCloseQuarterKills HasLowCoverSwaps NoWheelStats NoAmmoDisplay QuitTransitionToIdleIntroOnWeaponChange DisableLeftHandIkWhenOnFoot UseFPSAimIK UseFPSSecondaryMotion UseHolsterAnimation</WeaponFlags>
<TintSpecValues ref="TINT_COLBATON"/>
<FiringPatternAliases ref="NULL"/>
<ReloadUpperBodyFixupExpressionData ref="default"/>
<AmmoDiminishingRate value="0"/>
<AimingBreathingAdditiveWeight value="1.000000"/>
<FiringBreathingAdditiveWeight value="1.000000"/>
<StealthAimingBreathingAdditiveWeight value="0.000000"/>
<StealthFiringBreathingAdditiveWeight value="0.000000"/>
<AimingLeanAdditiveWeight value="1.000000"/>
<FiringLeanAdditiveWeight value="1.000000"/>
<StealthAimingLeanAdditiveWeight value="0.000000"/>
<StealthFiringLeanAdditiveWeight value="0.000000"/>
<ExpandPedCapsuleRadius value="0.000000"/>
<AudioCollisionHash/>
<HudDamage value="10"/>
<HudSpeed value="20"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="0"/>
</Item>
</Infos>
</Item>
</Infos>
<VehicleWeaponInfos/>
<Name>Telescopic Baton by w/</Name>
</CWeaponInfoBlob>

View file

@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<CWeaponAnimationsSets>
<WeaponAnimationsSets>
<Item key="Default">
<WeaponAnimations>
<Item key="WEAPON_COLBATON">
<CoverMovementClipSetHash/>
<CoverMovementExtraClipSetHash/>
<CoverAlternateMovementClipSetHash/>
<CoverWeaponClipSetHash>Cover_Wpn_Melee1h</CoverWeaponClipSetHash>
<MotionClipSetHash>weapons@melee_1h</MotionClipSetHash>
<MotionFilterHash>BothArms_filter</MotionFilterHash>
<MotionCrouchClipSetHash/>
<MotionStrafingClipSetHash>move_strafe_melee_unarmed</MotionStrafingClipSetHash>
<MotionStrafingStealthClipSetHash>move_ped_strafing_stealth</MotionStrafingStealthClipSetHash>
<MotionStrafingUpperBodyClipSetHash>move_strafe@melee_small_weapon</MotionStrafingUpperBodyClipSetHash>
<WeaponClipSetHash>anim@melee@colbaton@holster</WeaponClipSetHash>
<WeaponClipSetStreamedHash/>
<WeaponClipSetHashInjured/>
<WeaponClipSetHashStealth/>
<WeaponClipSetHashHiCover/>
<AlternativeClipSetWhenBlocked/>
<ScopeWeaponClipSet/>
<AlternateAimingStandingClipSetHash/>
<AlternateAimingCrouchingClipSetHash/>
<FiringVariationsStandingClipSetHash/>
<FiringVariationsCrouchingClipSetHash/>
<AimTurnStandingClipSetHash/>
<AimTurnCrouchingClipSetHash/>
<MeleeClipSetHash>melee@small_wpn@streamed_core</MeleeClipSetHash>
<MeleeVariationClipSetHash>melee@small_wpn@streamed_variations</MeleeVariationClipSetHash>
<MeleeTauntClipSetHash/>
<MeleeSupportTauntClipSetHash/>
<MeleeStealthClipSetHash/>
<ShellShockedClipSetHash>reaction@shellshock@unarmed</ShellShockedClipSetHash>
<JumpUpperbodyClipSetHash>MOVE_JUMP@WEAPONS@1H_MELEE@NIGHTSTICK</JumpUpperbodyClipSetHash>
<FallUpperbodyClipSetHash/>
<FromStrafeTransitionUpperBodyClipSetHash/>
<SwapWeaponFilterHash>RightArm_NoSpine_filter</SwapWeaponFilterHash>
<SwapWeaponInLowCoverFilterHash>RightArm_NoSpine_filter</SwapWeaponInLowCoverFilterHash>
<AnimFireRateModifier value="0.000000"/>
<AnimBlindFireRateModifier value="0.000000"/>
<AnimWantingToShootFireRateModifier value="-1.000000"/>
<UseFromStrafeUpperBodyAimNetwork value="false"/>
<AimingDownTheBarrel value="true"/>
<WeaponSwapData ref="SWAP_COLBATON"/>
<AimGrenadeThrowNormalClipsetHash/>
<AimGrenadeThrowAlternateClipsetHash/>
</Item>
</WeaponAnimations>
</Item>
<Item key="FirstPerson">
<Fallback>Default</Fallback>
<WeaponAnimations>
<Item key="WEAPON_COLBATON">
<MovementOverrideClipSetHash>move_m@generic</MovementOverrideClipSetHash>
<CoverMovementClipSetHash/>
<CoverMovementExtraClipSetHash/>
<CoverAlternateMovementClipSetHash/>
<CoverWeaponClipSetHash>Cover_Wpn_Melee1h</CoverWeaponClipSetHash>
<MotionClipSetHash>weapons@first_person@aim_idle@generic@melee@small_wpn@nightstick@</MotionClipSetHash>
<MotionFilterHash>BothArms_filter</MotionFilterHash>
<MotionCrouchClipSetHash/>
<MotionStrafingClipSetHash>move_strafe_melee_unarmed_fps</MotionStrafingClipSetHash>
<MotionStrafingStealthClipSetHash>move_ped_strafing_stealth</MotionStrafingStealthClipSetHash>
<MotionStrafingUpperBodyClipSetHash>move_strafe@melee_small_weapon_fps</MotionStrafingUpperBodyClipSetHash>
<WeaponClipSetHash>weapons@first_person@aim_idle@generic@melee@small_wpn@nightstick@</WeaponClipSetHash>
<WeaponClipSetStreamedHash/>
<WeaponClipSetHashInjured/>
<WeaponClipSetHashStealth>weapons@first_person@aim_stealth@generic@melee@nightstick@</WeaponClipSetHashStealth>
<WeaponClipSetHashHiCover/>
<AlternativeClipSetWhenBlocked/>
<ScopeWeaponClipSet/>
<AlternateAimingStandingClipSetHash/>
<AlternateAimingCrouchingClipSetHash/>
<FiringVariationsStandingClipSetHash/>
<FiringVariationsCrouchingClipSetHash/>
<AimTurnStandingClipSetHash/>
<AimTurnCrouchingClipSetHash/>
<MeleeClipSetHash>melee@small_wpn@streamed_core_fps</MeleeClipSetHash>
<MeleeVariationClipSetHash>melee@small_wpn@streamed_variations</MeleeVariationClipSetHash>
<MeleeTauntClipSetHash/>
<MeleeSupportTauntClipSetHash/>
<MeleeStealthClipSetHash/>
<ShellShockedClipSetHash>reaction@shellshock@unarmed</ShellShockedClipSetHash>
<JumpUpperbodyClipSetHash>MOVE_JUMP@WEAPONS@1H_MELEE@NIGHTSTICK</JumpUpperbodyClipSetHash>
<FallUpperbodyClipSetHash/>
<FromStrafeTransitionUpperBodyClipSetHash/>
<SwapWeaponFilterHash>RightArm_NoSpine_filter</SwapWeaponFilterHash>
<SwapWeaponInLowCoverFilterHash>RightArm_NoSpine_filter</SwapWeaponInLowCoverFilterHash>
<AnimFireRateModifier value="0.000000"/>
<AnimBlindFireRateModifier value="0.000000"/>
<AnimWantingToShootFireRateModifier value="-1.000000"/>
<UseFromStrafeUpperBodyAimNetwork value="false"/>
<AimingDownTheBarrel value="true"/>
<WeaponSwapData ref="SWAP_COLBATON"/>
<AimGrenadeThrowNormalClipsetHash/>
<AimGrenadeThrowAlternateClipsetHash/>
<FPSTransitionFromUnholsterHash>weapons@first_person@aim_idle@p_m_zero@melee@small_wpn@nightstick@aim_trans@unholster_to_idle</FPSTransitionFromUnholsterHash>
<WeaponClipSetHashForClone>weapons@first_person@aim_idle@remote_clone@melee@one_handed@shared@core</WeaponClipSetHashForClone>
<FPSFidgetClipsetHashes>
<Item>weapons@first_person@aim_idle@p_m_zero@melee@small_wpn@nightstick@fidgets@a</Item>
<Item>weapons@first_person@aim_idle@p_m_zero@melee@small_wpn@nightstick@fidgets@b</Item>
<Item>weapons@first_person@aim_idle@p_m_zero@melee@small_wpn@nightstick@fidgets@c</Item>
</FPSFidgetClipsetHashes>
</Item>
</WeaponAnimations>
</Item>
</WeaponAnimationsSets>
</CWeaponAnimationsSets>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<CWeaponModelInfo__InitDataList>
<InitDatas>
<Item>
<modelName>w_me_colbaton</modelName>
<txdName>w_me_colbaton</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="50"/>
</Item>
<Item>
<modelName>w_me_colbaton_grip_01</modelName>
<txdName>w_me_colbaton</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="50"/>
</Item>
</InitDatas>
</CWeaponModelInfo__InitDataList>

View file

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<CWeaponComponentInfoBlob>
<Data>
<Item type="CWeaponSwapData">
<Name>SWAP_COLBATON</Name>
<PedHolsterClipId>holster</PedHolsterClipId>
<PedHolsterCrouchClipId>Holster_Crouch</PedHolsterCrouchClipId>
<PedHolsterCoverClipId>low_holster</PedHolsterCoverClipId>
<PedHolsterDiscardClipId>Discard</PedHolsterDiscardClipId>
<PedHolsterCrouchDiscardClipId>discard_crouch</PedHolsterCrouchDiscardClipId>
<PedHolsterWeaponClipId>w_holster</PedHolsterWeaponClipId>
<PedUnHolsterClipId>unholster</PedUnHolsterClipId>
<PedUnHolsterCrouchClipId>Unholster_Crouch</PedUnHolsterCrouchClipId>
<PedUnHolsterLeftCoverClipId>low_l_unholster</PedUnHolsterLeftCoverClipId>
<PedUnHolsterRightCoverClipId>low_r_unholster</PedUnHolsterRightCoverClipId>
<PedUnHolsterWeaponClipId>w_unholster</PedUnHolsterWeaponClipId>
<AnimPlaybackRate value="0.9" />
</Item>
</Data>
<Infos>
<Item type="CWeaponComponentInfo">
<Name>COMPONENT_COLBATON_GRIP_01</Name>
<Model>w_me_colbaton_grip_01</Model>
<LocName>WCT_CBTN_GRIP</LocName>
<LocDesc>WCD_INVALID</LocDesc>
<AttachBone />
<AccuracyModifier type="NULL" />
<DamageModifier type="NULL" />
<bShownOnWheel value="true" />
<CreateObject value="true" />
<HudDamage value="0" />
<HudSpeed value="0" />
<HudCapacity value="0" />
<HudAccuracy value="5" />
<HudRange value="0" />
</Item>
</Infos>
<InfoBlobName>Telescopic Baton by w/</InfoBlobName>
</CWeaponComponentInfoBlob>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<SContentUnlocks>
<listOfUnlocks>
<Item>CU_WEP_POCKETLIGHT</Item>
</listOfUnlocks>
</SContentUnlocks>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<CExtraTextMetaFile>
<hasGlobalTextFile value="true"/>
<hasAdditionalText value="false"/>
<isTitleUpdate value="false"/>
</CExtraTextMetaFile>

View file

@ -0,0 +1,29 @@
fx_version 'cerulean'
game 'gta5'
description 'Pocket Flashlight'
version '1.3'
files {
'dlctext.meta',
'pickups.meta',
'contentunlocks.meta',
'shop_weapon.meta',
'pedpersonality.meta',
'weaponarchetypes.meta',
'weaponanimations.meta',
'weaponcomponents.meta',
'weapon_pocketlight.meta',
}
data_file 'TEXTFILE_METAFILE' 'dlctext.meta'
data_file 'DLC_WEAPON_PICKUPS' 'pickups.meta'
data_file 'CONTENT_UNLOCKING_META_FILE' 'contentunlocks.meta'
data_file 'WEAPON_SHOP_INFO_METADATA_FILE' 'shop_weapon.meta'
data_file 'PED_PERSONALITY_FILE' 'pedpersonality.meta'
data_file 'WEAPON_METADATA_FILE' 'weaponarchetypes.meta'
data_file 'WEAPON_ANIMATIONS_FILE' 'weaponanimations.meta'
data_file 'WEAPONCOMPONENTSINFO_FILE' 'weaponcomponents.meta'
data_file 'WEAPONINFO_FILE' 'weapon_pocketlight.meta'
client_script 'names.lua'

View file

@ -0,0 +1,18 @@
Citizen.CreateThread(function()
AddTextEntry("WT_POCKETLIGHT", "Pocket Flashlight")
AddTextEntry("WTD_POCKETLIGHT", "Small flashlight. As easy to conceal in your pocket, as it is easy to bust someone's car window open with it.")
AddTextEntry("WTT_POCKETLIGHT", "The Pocket Flashlight")
AddTextEntry("WTU_POCKETLIGHT", "POCKET FLASHLIGHT")
AddTextEntry("WCT_PFLASH", "White Light")
AddTextEntry("WCD_PFLASH", "Powerful white LED. Can light up 8 meters ahead with up to 10 hours battery life.")
AddTextEntry("WCT_PFLASH_UV", "UV Light")
AddTextEntry("WCD_PFLASH_UV", "A diode that emits light closer to ultraviolet spectrum. For revealing secrets, reading concealed letters, or making precise suntan.")
AddTextEntry("WCT_PFLASH_RED", "Redlight")
AddTextEntry("WCD_PFLASH_RED", "Scientists say eyes adapt quicker for the red color, and dim bloody light beam is much less noticeable from distance, making this filter ideal for those who doesn't want to be seen.")
AddTextEntry("WCT_PFLASH_PSD", "Pocket-sized fleshlight")
AddTextEntry("WCD_PFLASH_WAND", "*insert fallic joke here*")
AddTextEntry("WCT_PFLASH_WAND_A", "Amber Wand")
AddTextEntry("WCT_PFLASH_WAND_G", "Green Wand")
AddTextEntry("WCT_PFLASH_WAND_R", "Red Wand")
AddTextEntry("WCT_PFLASH_WAND_W", "White Wand")
end)

View file

@ -0,0 +1,372 @@
<?xml version="1.0" encoding="UTF-8"?>
<CPedModelInfo__PersonalityDataList>
<MovementModeUnholsterData>
<Item>
<Name>UNHOLSTER_UNARMED</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<Clip>unarmed_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_2H_MELEE</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<Clip>2h_melee_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_1H</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<Clip>1h_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_2H</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<Clip>2h_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_MINIGUN</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<Clip>mini_holster_2h_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_UNARMED_STEALTH</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<Clip>unarmed_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_2H_MELEE_STEALTH</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<Clip>unarmed_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_1H_STEALTH</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<Clip>1h_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_2H_STEALTH</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<Clip>2h_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
</MovementModeUnholsterData>
<MovementModes>
<Item>
<Name>DEFAULT_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_action@p_m_zero@unarmed@core</MovementClipSetId>
<WeaponClipSetId />
<WeaponClipFilterId />
<UpperBodyShadowExpressionEnabled value="false" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="true" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>MOVE_ACTION@GENERIC@TRANS@UNARMED</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>MOVE_ACTION@P_M_ZERO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED" />
</Item>
</ClipSets>
</Item>
</Item>
<Item>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_stealth@p_m_zero@unarmed@core</MovementClipSetId>
<WeaponClipSetId>weapons@melee_stealth_1h</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="false" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>move_stealth@generic@trans@unarmed</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>move_stealth@p_m_zero@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED_STEALTH" />
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
</Item>
<Item>
<Name>MP_FEMALE_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_action@p_m_zero@unarmed@core</MovementClipSetId>
<WeaponClipSetId />
<WeaponClipFilterId />
<UpperBodyShadowExpressionEnabled value="false" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="true" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>MOVE_ACTION@MP_FEMALE@UNARMED@TRANS@</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>MOVE_ACTION@P_M_ZERO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED" />
</Item>
</ClipSets>
</Item>
</Item>
<Item>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_stealth@p_m_zero@unarmed@core</MovementClipSetId>
<WeaponClipSetId>weapons@melee_stealth_1h</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="false" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>MOVE_STEALTH@MP_FEMALE@UNARMED@TRANS</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>move_stealth@p_m_zero@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED_STEALTH" />
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
</Item>
<Item>
<Name>MICHAEL_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_action@p_m_zero@unarmed@core</MovementClipSetId>
<WeaponClipSetId />
<WeaponClipFilterId />
<UpperBodyShadowExpressionEnabled value="false" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="true" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>MOVE_ACTION@P_M_ZERO@UNARMED@TRANS@A</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>MOVE_ACTION@P_M_ZERO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED" />
</Item>
</ClipSets>
</Item>
</Item>
<Item>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_stealth@p_m_zero@unarmed@core</MovementClipSetId>
<WeaponClipSetId>weapons@melee_stealth_1h</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="false" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>move_stealth@p_m_zero@unarmed@trans@a</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>move_stealth@p_m_zero@holster</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED_STEALTH" />
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
</Item>
<Item>
<Name>FRANKLIN_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_action@p_m_one@unarmed@core</MovementClipSetId>
<WeaponClipSetId />
<WeaponClipFilterId />
<UpperBodyShadowExpressionEnabled value="false" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="true" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>MOVE_ACTION@P_M_ONE@UNARMED@TRANS@A</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>MOVE_ACTION@P_M_ONE@HOLSTER</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED" />
</Item>
</ClipSets>
</Item>
</Item>
<Item>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_stealth@p_m_one@unarmed@core</MovementClipSetId>
<WeaponClipSetId>weapons@melee_stealth_1h@p_m_one</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="false" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>move_stealth@p_m_one@unarmed@trans@a</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>MOVE_STEALTH@P_M_ONE@HOLSTER</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED_STEALTH" />
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
</Item>
<Item>
<Name>TREVOR_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_action@p_m_two@unarmed@core</MovementClipSetId>
<WeaponClipSetId />
<WeaponClipFilterId />
<UpperBodyShadowExpressionEnabled value="false" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="true" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>MOVE_ACTION@P_M_TWO@UNARMED@TRANS@A</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>MOVE_ACTION@P_M_TWO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED" />
</Item>
</ClipSets>
</Item>
</Item>
<Item>
<Item>
<Weapons>
<Item>WEAPON_POCKETLIGHT</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>move_stealth@p_m_two@unarmed@core</MovementClipSetId>
<WeaponClipSetId>weapons@melee_stealth_1h@p_m_two</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true" />
<UpperBodyFeatheredLeanEnabled value="false" />
<UseWeaponAnimsForGrip value="false" />
<UseLeftHandIk value="false" />
<IdleTransitions>
<Item>move_stealth@p_m_two@unarmed@trans@a</Item>
</IdleTransitions>
<IdleTransitionBlendOutTime value="0.500000"/>
<UnholsterClipSetId>MOVE_STEALTH@P_M_TWO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData ref="UNHOLSTER_UNARMED_STEALTH" />
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
</Item>
</MovementModes>
</CPedModelInfo__PersonalityDataList>

View file

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<CPickupDataManager>
<pickupData>
<Item type="CPickupData">
<Name>PICKUP_WEAPON_POCKETLIGHT</Name>
<Model>w_me_pocketlight</Model>
<GenerationRange value="80.000000"/>
<RegenerationTime value="60.000000"/>
<CollectionRadiusFirstPerson value="2.000000"/>
<CollectionRadius value="1.000000"/>
<Scale value="1.000000"/>
<LoopingAudioRef>NULL_SOUND</LoopingAudioRef>
<GlowRed value="1.000000" />
<GlowGreen value="0.225000" />
<GlowBlue value="0.000000" />
<GlowIntensity value="0.500000" />
<DarkGlowIntensity value="0.500000" />
<MPGlowIntensity value="0.500000" />
<MPDarkGlowIntensity value="3.000000" />
<GlowRange value="2.000000" />
<AttachmentBone>BONETAG_ROOT</AttachmentBone>
<AttachmentOffset x="0.000000" y="0.000000" z="0.000000"/>
<AttachmentRotation x="0.000000" y="0.000000" z="0.000000"/>
<PickupFlags>CollectableOnFoot ManualPickUp</PickupFlags>
<OnFootPickupActions>
<Item>ACTION_GROUP_ONFOOT</Item>
<Item>ACTION_AUDIO_MELEE</Item>
</OnFootPickupActions>
<InCarPickupActions/>
<OnShotPickupActions/>
<Rewards>
<Item>REWARD_WEAPON_POCKETLIGHT</Item>
<Item>REWARD_STAT_WEAPON</Item>
</Rewards>
</Item>
</pickupData>
<actionData/>
<rewardData>
<Item type="CPickupRewardWeapon">
<Name>REWARD_WEAPON_POCKETLIGHT</Name>
<WeaponRef>WEAPON_POCKETLIGHT</WeaponRef>
<Equip value="false"/>
</Item>
</rewardData>
</CPickupDataManager>

View file

@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<WeaponShopItemArray>
<weaponShopItems>
<Item>
<lockHash>CU_WEP_POCKETLIGHT</lockHash>
<nameHash>WEAPON_POCKETLIGHT</nameHash>
<cost value="2500"/>
<ammoCost value="0"/>
<textLabel>WT_POCKETLIGHT</textLabel>
<weaponDesc>WTD_POCKETLIGHT</weaponDesc>
<weaponTT>WTT_POCKETLIGHT</weaponTT>
<weaponUppercase>WTU_POCKETLIGHT</weaponUppercase>
<weaponComponents>
<Item>
<componentName>COMPONENT_PLIGHT_W</componentName>
<cost value="0"/>
<textLabel>WCT_PFLASH</textLabel>
<componentDesc>WCD_PFLASH</componentDesc>
</Item>
<Item>
<componentName>COMPONENT_PLIGHT_UV</componentName>
<cost value="1250"/>
<textLabel>WCT_PFLASH_UV</textLabel>
<componentDesc>WCD_PFLASH_UV</componentDesc>
</Item>
<Item>
<componentName>COMPONENT_PLIGHT_RED</componentName>
<cost value="250"/>
<textLabel>WCT_PFLASH_RED</textLabel>
<componentDesc>WCD_PFLASH_RED</componentDesc>
</Item>
<Item>
<componentName>COMPONENT_PLIGHT_WAND_W</componentName>
<cost value="300"/>
<textLabel>WCT_PFLASH_WAND_W</textLabel>
<componentDesc>WCD_PFLASH_WAND</componentDesc>
</Item>
<Item>
<componentName>COMPONENT_PLIGHT_WAND_R</componentName>
<cost value="300"/>
<textLabel>WCT_PFLASH_WAND_R</textLabel>
<componentDesc>WCD_PFLASH_WAND</componentDesc>
</Item>
<Item>
<componentName>COMPONENT_PLIGHT_WAND_A</componentName>
<cost value="300"/>
<textLabel>WCT_PFLASH_WAND_A</textLabel>
<componentDesc>WCD_PFLASH_WAND</componentDesc>
</Item>
<Item>
<componentName>COMPONENT_PLIGHT_WAND_G</componentName>
<cost value="300"/>
<textLabel>WCT_PFLASH_WAND_G</textLabel>
<componentDesc>WCD_PFLASH_WAND</componentDesc>
</Item>
<!--
<Item>
<componentName>COMPONENT_PLIGHT_CAMO_01</componentName>
<cost value="500"/>
<textLabel>WCT_CAMO_1</textLabel>
<componentDesc>WCD_INVALID</componentDesc>
</Item>
<Item>
<componentName>COMPONENT_PLIGHT_CAMO_02</componentName>
<cost value="500"/>
<textLabel>WCT_CAMO_2</textLabel>
<componentDesc>WCD_INVALID</componentDesc>
</Item>
<Item>
<componentName>COMPONENT_PLIGHT_CAMO_03</componentName>
<cost value="425"/>
<textLabel>WCT_CAMO_3</textLabel>
<componentDesc>WCD_INVALID</componentDesc>
</Item>
<Item>
<componentName>COMPONENT_PLIGHT_CAMO_04</componentName>
<cost value="500"/>
<textLabel>WCT_CAMO_9</textLabel>
<componentDesc>WCD_INVALID</componentDesc>
</Item>
-->
</weaponComponents>
</Item>
</weaponShopItems>
</WeaponShopItemArray>

View file

@ -0,0 +1,475 @@
<?xml version="1.0" encoding="UTF-8"?>
<CWeaponInfoBlob>
<SlotNavigateOrder>
<Item>
<WeaponSlots>
<Item>
<OrderNumber value="1865" />
<Entry>SLOT_POCKETLIGHT</Entry>
</Item>
</WeaponSlots>
</Item>
<Item>
<WeaponSlots>
<Item>
<OrderNumber value="2165" />
<Entry>SLOT_POCKETLIGHT</Entry>
</Item>
</WeaponSlots>
</Item>
</SlotNavigateOrder>
<SlotBestOrder>
<WeaponSlots>
<Item>
<OrderNumber value="2065" />
<Entry>SLOT_POCKETLIGHT</Entry>
</Item>
</WeaponSlots>
</SlotBestOrder>
<TintSpecValues>
<Item>
<Name>TINT_POCKETLIGHT</Name>
<Tints>
<!-- Base -->
<Item>
<SpecFresnel value="0.750000" />
<SpecFalloffMult value="40.000000" />
<SpecIntMult value="0.750000" />
<Spec2Factor value="80.000000" />
<Spec2ColorInt value="1.000000" />
<Spec2Color value="0x00000000fdfaec" />
</Item>
<!-- Green -->
<Item>
<SpecFresnel value="0.80000" />
<SpecFalloffMult value="40.000000" />
<SpecIntMult value="0.500000" />
<Spec2Factor value="20.000000" />
<Spec2ColorInt value="1.000000" />
<Spec2Color value="0x00000000e7e3d1" />
</Item>
<!-- Gold -->
<Item>
<SpecFresnel value="0.500000" />
<SpecFalloffMult value="225.000000" />
<SpecIntMult value="5.000000" />
<Spec2Factor value="125.000000" />
<Spec2ColorInt value="10.000000" />
<Spec2Color value="0x00000000C48227" />
</Item>
<!-- Pink -->
<Item>
<SpecFresnel value="0.500000" />
<SpecFalloffMult value="120.000000" />
<SpecIntMult value="5.000000" />
<Spec2Factor value="225.000000" />
<Spec2ColorInt value="10.000000" />
<Spec2Color value="0x00000000F61E7A" />
</Item>
<!-- Army -->
<Item>
<SpecFresnel value="0.800000" />
<SpecFalloffMult value="40.000000" />
<SpecIntMult value="0.500000" />
<Spec2Factor value="10.000000" />
<Spec2ColorInt value="1.000000" />
<Spec2Color value="0x00000000dbd5bb" />
</Item>
<!-- LSPD -->
<Item>
<SpecFresnel value="0.750000" />
<SpecFalloffMult value="60.000000" />
<SpecIntMult value="0.750000" />
<Spec2Factor value="20.000000" />
<Spec2ColorInt value="1.000000" />
<Spec2Color value="0x00000000cfe7fc" />
</Item>
<!-- Orange -->
<Item>
<SpecFresnel value="0.750000" />
<SpecFalloffMult value="60.000000" />
<SpecIntMult value="0.800000" />
<Spec2Factor value="20.000000" />
<Spec2ColorInt value="1.000000" />
<Spec2Color value="0x00000000fbefde" />
</Item>
<!-- Platinum -->
<Item>
<SpecFresnel value="0.500000" />
<SpecFalloffMult value="200.000000" />
<SpecIntMult value="5.000000" />
<Spec2Factor value="50.000000" />
<Spec2ColorInt value="10.000000" />
<Spec2Color value="0x00000000C2DDF4" />
</Item>
<!-- Blue -->
<Item>
<SpecFresnel value="0.500000" />
<SpecFalloffMult value="120.000000" />
<SpecIntMult value="5.000000" />
<Spec2Factor value="225.000000" />
<Spec2ColorInt value="10.000000" />
<Spec2Color value="0x000000001010A3" />
</Item>
<!-- Yellow Utility -->
<Item>
<SpecFresnel value="0.750000" />
<SpecFalloffMult value="40.000000" />
<SpecIntMult value="0.750000" />
<Spec2Factor value="80.000000" />
<Spec2ColorInt value="1.000000" />
<Spec2Color value="0x00000000fdfaec" />
</Item>
</Tints>
</Item>
</TintSpecValues>
<FiringPatternAliases />
<UpperBodyFixupExpressionData />
<AimingInfos/>
<Infos>
<Item>
<Infos>
<Item type="CWeaponInfo">
<Name>WEAPON_POCKETLIGHT</Name>
<Model>w_me_pocketlight</Model>
<Audio />
<Slot>SLOT_POCKETLIGHT</Slot>
<DamageType>MELEE</DamageType>
<Explosion>
<Default>DONTCARE</Default>
<HitCar>DONTCARE</HitCar>
<HitTruck>DONTCARE</HitTruck>
<HitBike>DONTCARE</HitBike>
<HitBoat>DONTCARE</HitBoat>
<HitPlane>DONTCARE</HitPlane>
</Explosion>
<FireType>MELEE</FireType>
<WheelSlot>WHEEL_UNARMED_MELEE</WheelSlot>
<Group>GROUP_MELEE</Group>
<AmmoInfo ref="NULL" />
<AimingInfo ref="FLASHLIGHT_TARGETING_RESTRAINTS" />
<ClipSize value="0" />
<AccuracySpread value="0.000000" />
<AccurateModeAccuracyModifier value="0.500000" />
<RunAndGunAccuracyModifier value="2.000000" />
<RunAndGunAccuracyMinOverride value="-1.000000" />
<RecoilAccuracyMax value="1.000000" />
<RecoilErrorTime value="0.000000" />
<RecoilRecoveryRate value="1.000000" />
<RecoilAccuracyToAllowHeadShotAI value="1000.000000" />
<MinHeadShotDistanceAI value="1000.000000" />
<MaxHeadShotDistanceAI value="1000.000000" />
<HeadShotDamageModifierAI value="1000.000000" />
<RecoilAccuracyToAllowHeadShotPlayer value="0.175000" />
<MinHeadShotDistancePlayer value="5.000000" />
<MaxHeadShotDistancePlayer value="40.000000" />
<HeadShotDamageModifierPlayer value="18.000000" />
<Damage value="0.000000" />
<DamageTime value="0.000000" />
<DamageTimeInVehicle value="0.000000" />
<DamageTimeInVehicleHeadShot value="0.000000" />
<HitLimbsDamageModifier value="0.500000" />
<NetworkHitLimbsDamageModifier value="0.800000" />
<LightlyArmouredDamageModifier value="0.750000" />
<VehicleDamageModifier value="1.000000" />
<Force value="0.000000" />
<ForceHitPed value="30.000000" />
<ForceHitVehicle value="0.000000" />
<ForceHitFlyingHeli value="0.000000" />
<OverrideForces>
<Item>
<BoneTag>BONETAG_HEAD</BoneTag>
<ForceFront value="40.000000" />
<ForceBack value="32.500000" />
</Item>
<Item>
<BoneTag>BONETAG_NECK</BoneTag>
<ForceFront value="45.000000" />
<ForceBack value="40.000000" />
</Item>
<Item>
<BoneTag>BONETAG_R_CLAVICLE</BoneTag>
<ForceFront value="45.000000" />
<ForceBack value="50.000000" />
</Item>
<Item>
<BoneTag>BONETAG_L_CLAVICLE</BoneTag>
<ForceFront value="45.000000" />
<ForceBack value="50.000000" />
</Item>
<Item>
<BoneTag>BONETAG_SPINE3</BoneTag>
<ForceFront value="40.000000" />
<ForceBack value="35.000000" />
</Item>
</OverrideForces>
<ForceMaxStrengthMult value="1.000000" />
<ForceFalloffRangeStart value="0.000000" />
<ForceFalloffRangeEnd value="50.000000" />
<ForceFalloffMin value="1.000000" />
<ProjectileForce value="0.000000" />
<FragImpulse value="2250.000000" />
<Penetration value="0.000000" />
<VerticalLaunchAdjustment value="0.000000" />
<DropForwardVelocity value="0.000000" />
<Speed value="2000.000000" />
<BulletsInBatch value="1" />
<BatchSpread value="0.000000" />
<ReloadTimeMP value="-1.000000" />
<ReloadTimeSP value="-1.000000" />
<VehicleReloadTime value="-1.000000" />
<AnimReloadRate value="1.000000" />
<BulletsPerAnimLoop value="1" />
<TimeBetweenShots value="0.000000" />
<TimeLeftBetweenShotsWhereShouldFireIsCached value="-1.000000" />
<SpinUpTime value="0.000000" />
<SpinTime value="0.000000" />
<SpinDownTime value="0.000000" />
<AlternateWaitTime value="-1.000000" />
<BulletBendingNearRadius value="0.000000" />
<BulletBendingFarRadius value="0.000000" />
<BulletBendingZoomedRadius value="0.000000" />
<FirstPersonBulletBendingNearRadius value="0.000000" />
<FirstPersonBulletBendingFarRadius value="0.000000" />
<FirstPersonBulletBendingZoomedRadius value="0.000000" />
<Fx>
<EffectGroup>WEAPON_EFFECT_GROUP_MELEE_WOOD</EffectGroup>
<FlashFx />
<FlashFxAlt />
<FlashFxFP />
<FlashFxFPAlt />
<MuzzleSmokeFx />
<MuzzleSmokeFxFP />
<MuzzleSmokeFxMinLevel value="0.000000" />
<MuzzleSmokeFxIncPerShot value="0.000000" />
<MuzzleSmokeFxDecPerSec value="0.000000" />
<MuzzleOverrideOffset x="0.000000" y="0.000000" z="0.000000" />
<ShellFx />
<ShellFxFP />
<TracerFx />
<PedDamageHash />
<TracerFxChanceSP value="0.000000" />
<TracerFxChanceMP value="0.000000" />
<FlashFxChanceSP value="0.000000" />
<FlashFxChanceMP value="0.000000" />
<FlashFxAltChance value="0.000000" />
<FlashFxScale value="1.000000" />
<FlashFxLightEnabled value="false" />
<FlashFxLightCastsShadows value="false" />
<FlashFxLightOffsetDist value="0.000000" />
<FlashFxLightRGBAMin x="0.000000" y="0.000000" z="0.000000" />
<FlashFxLightRGBAMax x="0.000000" y="0.000000" z="0.000000" />
<FlashFxLightIntensityMinMax x="0.000000" y="0.000000" />
<FlashFxLightRangeMinMax x="0.000000" y="0.000000" />
<FlashFxLightFalloffMinMax x="0.000000" y="0.000000" />
<GroundDisturbFxEnabled value="false" />
<GroundDisturbFxDist value="5.000000" />
<GroundDisturbFxNameDefault />
<GroundDisturbFxNameSand />
<GroundDisturbFxNameDirt />
<GroundDisturbFxNameWater />
<GroundDisturbFxNameFoliage />
</Fx>
<InitialRumbleDuration value="0" />
<InitialRumbleIntensity value="0.000000" />
<InitialRumbleIntensityTrigger value="0.000000" />
<RumbleDuration value="0" />
<RumbleIntensity value="0.000000" />
<RumbleIntensityTrigger value="0.000000" />
<RumbleDamageIntensity value="1.000000" />
<InitialRumbleDurationFps value="0" />
<InitialRumbleIntensityFps value="0.000000" />
<RumbleDurationFps value="0" />
<RumbleIntensityFps value="0.000000" />
<NetworkPlayerDamageModifier value="1.000000" />
<NetworkPedDamageModifier value="1.000000" />
<NetworkHeadShotPlayerDamageModifier value="1.000000" />
<LockOnRange value="10.000000" />
<WeaponRange value="10.000000" />
<BulletDirectionOffsetInDegrees value="0.000000" />
<AiSoundRange value="-1.000000" />
<AiPotentialBlastEventRange value="-1.000000" />
<DamageFallOffRangeMin value="10.000000" />
<DamageFallOffRangeMax value="10.000000" />
<DamageFallOffModifier value="1.000000" />
<VehicleWeaponHash />
<DefaultCameraHash>FLASHLIGHT_AIM_CAMERA</DefaultCameraHash>
<AimCameraHash />
<FireCameraHash />
<CoverCameraHash>DEFAULT_THIRD_PERSON_PED_AIM_IN_COVER_CAMERA</CoverCameraHash>
<CoverReadyToFireCameraHash />
<RunAndGunCameraHash>FLASHLIGHT_AIM_CAMERA</RunAndGunCameraHash>
<CinematicShootingCameraHash>DEFAULT_THIRD_PERSON_PED_CINEMATIC_SHOOTING_CAMERA</CinematicShootingCameraHash>
<AlternativeOrScopedCameraHash />
<RunAndGunAlternativeOrScopedCameraHash />
<CinematicShootingAlternativeOrScopedCameraHash />
<CameraFov value="45.000000" />
<FirstPersonAimFovMin value="42.000000" />
<FirstPersonAimFovMax value="47.000000" />
<FirstPersonScopeFov value="0.000000" />
<FirstPersonScopeAttachmentFov value="0.000000" />
<FirstPersonRNGOffset x="0.000000" y="-0.010000" z="-0.0035000" />
<FirstPersonRNGRotationOffset x="3.000000" y="0.000000" z="0.000000" />
<FirstPersonLTOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonLTRotationOffset x="2.000000" y="0.000000" z="0.000000" />
<FirstPersonScopeOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonScopeAttachmentOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonScopeRotationOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonScopeAttachmentRotationOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonAsThirdPersonIdleOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonAsThirdPersonRNGOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonAsThirdPersonLTOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonAsThirdPersonScopeOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonAsThirdPersonWeaponBlockedOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonDofSubjectMagnificationPowerFactorNear value="1.025000" />
<FirstPersonDofMaxNearInFocusDistance value="0.000000" />
<FirstPersonDofMaxNearInFocusDistanceBlendLevel value="0.300000" />
<ZoomFactorForAccurateMode value="1.000000" />
<RecoilShakeHash />
<RecoilShakeHashFirstPerson />
<AccuracyOffsetShakeHash />
<MinTimeBetweenRecoilShakes value="150" />
<RecoilShakeAmplitude value="1.000000" />
<ExplosionShakeAmplitude value="-1.000000" />
<IkRecoilDisplacement value="0.000000" />
<IkRecoilDisplacementScope value="0.000000" />
<IkRecoilDisplacementScaleBackward value="1.000000" />
<IkRecoilDisplacementScaleVertical value="0.400000" />
<ReticuleHudPosition x="0.000000" y="0.000000" />
<AimOffsetMin x="0.000000" y="0.000000" z="0.000000" />
<AimProbeLengthMin value="0.000000" />
<AimOffsetMax x="0.000000" y="0.000000" z="0.000000" />
<AimProbeLengthMax value="0.000000" />
<AimOffsetMinFPSIdle x="0.178000" y="0.392000" z="0.135000" />
<AimOffsetMedFPSIdle x="0.169000" y="0.312000" z="0.420000" />
<AimOffsetMaxFPSIdle x="0.187000" y="0.064000" z="0.649000" />
<AimOffsetMinFPSLT x="0.009000" y="0.334000" z="0.555000" />
<AimOffsetMaxFPSLT x="0.062000" y="-0.164000" z="0.588000" />
<AimOffsetMinFPSRNG x="0.114000" y="0.390000" z="0.485000" />
<AimOffsetMaxFPSRNG x="0.113000" y="-0.263000" z="0.586000" />
<AimOffsetMinFPSScope x="0.009000" y="0.421000" z="0.462000" />
<AimOffsetMaxFPSScope x="0.037000" y="-0.224000" z="0.639000" />
<AimOffsetEndPosMinFPSIdle x="0.208000" y="0.700000" z="0.003000" />
<AimOffsetEndPosMedFPSIdle x="0.203000" y="0.604000" z="0.553000" />
<AimOffsetEndPosMaxFPSIdle x="0.207000" y="-0.040000" z="0.942000" />
<AimOffsetEndPosMinFPSLT x="0.000000" y="0.000000" z="0.000000" />
<AimOffsetEndPosMedFPSLT x="0.000000" y="0.000000" z="0.000000" />
<AimOffsetEndPosMaxFPSLT x="0.000000" y="0.000000" z="0.000000" />
<AimProbeRadiusOverrideFPSIdle value="0.000000" />
<AimProbeRadiusOverrideFPSIdleStealth value="0.000000" />
<AimProbeRadiusOverrideFPSLT value="0.000000" />
<AimProbeRadiusOverrideFPSRNG value="0.000000" />
<AimProbeRadiusOverrideFPSScope value="0.000000" />
<TorsoAimOffset x="0.000000" y="0.000000" />
<TorsoCrouchedAimOffset x="0.000000" y="0.000000" />
<LeftHandIkOffset x="0.000000" y="0.000000" z="0.000000" />
<ReticuleMinSizeStanding value="1.000000" />
<ReticuleMinSizeCrouched value="1.000000" />
<ReticuleScale value="1.000000" />
<ReticuleStyleHash />
<FirstPersonReticuleStyleHash />
<PickupHash>PICKUP_WEAPON_POCKETLIGHT</PickupHash>
<MPPickupHash />
<HumanNameHash>WT_POCKETLIGHT</HumanNameHash>
<MovementModeConditionalIdle />
<StatName>FLASHLIGHT</StatName>
<KnockdownCount value="-1" />
<KillshotImpulseScale value="1.000000" />
<NmShotTuningSet>normal</NmShotTuningSet>
<AttachPoints>
<Item>
<AttachBone>WAPFlsh</AttachBone>
<Components>
<Item>
<Name>COMPONENT_PLIGHT_W</Name>
<Default value="true" />
</Item>
<Item>
<Name>COMPONENT_PLIGHT_UV</Name>
<Default value="false" />
</Item>
<Item>
<Name>COMPONENT_PLIGHT_RED</Name>
<Default value="false" />
</Item>
<Item>
<Name>COMPONENT_PLIGHT_WAND_W</Name>
<Default value="false" />
</Item>
<Item>
<Name>COMPONENT_PLIGHT_WAND_R</Name>
<Default value="false" />
</Item>
<Item>
<Name>COMPONENT_PLIGHT_WAND_A</Name>
<Default value="false" />
</Item>
<Item>
<Name>COMPONENT_PLIGHT_WAND_G</Name>
<Default value="false" />
</Item>
<Item>
<Name>COMPONENT_PLIGHT_PS</Name>
<Default value="false" />
</Item>
</Components>
</Item>
<Item>
<AttachBone>gun_root</AttachBone>
<Components>
<Item>
<Name>COMPONENT_PLIGHT_CAMO_01</Name>
<Default value="false" />
</Item>
<Item>
<Name>COMPONENT_PLIGHT_CAMO_02</Name>
<Default value="false" />
</Item>
<Item>
<Name>COMPONENT_PLIGHT_CAMO_03</Name>
<Default value="false" />
</Item>
<Item>
<Name>COMPONENT_PLIGHT_CAMO_04</Name>
<Default value="false" />
</Item>
</Components>
</Item>
</AttachPoints>
<GunFeedBone />
<TargetSequenceGroup />
<WeaponFlags>CarriedInHand MeleeBlade CanFreeAim UsableOnFoot UsableClimbing UsableInCover UsableUnderwater DoesRevivableDamage NonViolent AllowCloseQuarterKills HasLowCoverSwaps DisableCombatRoll NoWheelStats QuitTransitionToIdleIntroOnWeaponChange DisableLeftHandIkWhenOnFoot UseFPSAimIK AllowMeleeBlock CanBeAimedLikeGunWithoutFiring HideReticule</WeaponFlags>
<TintSpecValues ref="TINT_POCKETLIGHT" />
<FiringPatternAliases ref="NULL" />
<ReloadUpperBodyFixupExpressionData ref="default" />
<AmmoDiminishingRate value="0" />
<AimingBreathingAdditiveWeight value="1.000000" />
<FiringBreathingAdditiveWeight value="1.000000" />
<StealthAimingBreathingAdditiveWeight value="1.000000" />
<StealthFiringBreathingAdditiveWeight value="0.000000" />
<AimingLeanAdditiveWeight value="1.000000" />
<FiringLeanAdditiveWeight value="1.000000" />
<StealthAimingLeanAdditiveWeight value="0.000000" />
<StealthFiringLeanAdditiveWeight value="0.000000" />
<ExpandPedCapsuleRadius value="0.000000" />
<AudioCollisionHash />
<HudDamage value="10" />
<HudSpeed value="15" />
<HudCapacity value="0" />
<HudAccuracy value="0" />
<HudRange value="2" />
<VehicleAttackAngle value="25.000000" />
<TorsoIKAngleLimit value="-1.000000" />
<MeleeRightFistTargetHealthDamageScaler value="-1.000000" />
<AirborneAircraftLockOnMultiplier value="1.000000" />
<CamoDiffuseTexIdxs />
<RotateBarrelBone />
<RotateBarrelBone2 />
</Item>
</Infos>
</Item>
</Infos>
<VehicleWeaponInfos />
<Name>Pocket Flashlight by w/</Name>
</CWeaponInfoBlob>

View file

@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?>
<CWeaponAnimationsSets>
<WeaponAnimationsSets>
<Item key="Default">
<WeaponAnimations>
<Item key="WEAPON_POCKETLIGHT">
<CoverMovementClipSetHash />
<CoverMovementExtraClipSetHash />
<CoverAlternateMovementClipSetHash />
<CoverWeaponClipSetHash>Cover_Wpn_Pistol</CoverWeaponClipSetHash>
<MotionClipSetHash>weapons@melee_1h</MotionClipSetHash>
<MotionFilterHash>BothArms_filter</MotionFilterHash>
<MotionCrouchClipSetHash />
<MotionStrafingClipSetHash>move_strafe_melee_unarmed</MotionStrafingClipSetHash>
<MotionStrafingStealthClipSetHash>move_ped_strafing_stealth</MotionStrafingStealthClipSetHash>
<MotionStrafingUpperBodyClipSetHash>move_strafe@melee_small_weapon</MotionStrafingUpperBodyClipSetHash>
<WeaponClipSetHash>anim@weapons@flashlight@</WeaponClipSetHash>
<WeaponClipSetStreamedHash />
<WeaponClipSetHashInjured />
<WeaponClipSetHashStealth>anim@weapons@flashlight@stealth</WeaponClipSetHashStealth>
<WeaponClipSetHashHiCover />
<AlternativeClipSetWhenBlocked />
<ScopeWeaponClipSet />
<AlternateAimingStandingClipSetHash />
<AlternateAimingCrouchingClipSetHash />
<FiringVariationsStandingClipSetHash />
<FiringVariationsCrouchingClipSetHash />
<AimTurnStandingClipSetHash />
<AimTurnCrouchingClipSetHash />
<MeleeClipSetHash>melee@small_wpn@streamed_core</MeleeClipSetHash>
<MeleeVariationClipSetHash>melee@hatchet@streamed_core</MeleeVariationClipSetHash>
<MeleeTauntClipSetHash />
<MeleeSupportTauntClipSetHash />
<MeleeStealthClipSetHash />
<ShellShockedClipSetHash>reaction@shellshock@unarmed</ShellShockedClipSetHash>
<JumpUpperbodyClipSetHash>move_jump@weapons@1h_melee@hammer</JumpUpperbodyClipSetHash>
<FallUpperbodyClipSetHash />
<FromStrafeTransitionUpperBodyClipSetHash />
<SwapWeaponFilterHash>RightArm_NoSpine_filter</SwapWeaponFilterHash>
<SwapWeaponInLowCoverFilterHash>RightArm_NoSpine_filter</SwapWeaponInLowCoverFilterHash>
<AnimFireRateModifier value="0.000000" />
<AnimBlindFireRateModifier value="0.000000" />
<AnimWantingToShootFireRateModifier value="-1.000000" />
<UseFromStrafeUpperBodyAimNetwork value="false" />
<AimingDownTheBarrel value="true" />
<WeaponSwapData ref="SWAP_DEFAULT" />
</Item>
</WeaponAnimations>
</Item>
<Item key="FirstPerson">
<Fallback>Default</Fallback>
<WeaponAnimations>
<Item key="WEAPON_POCKETLIGHT">
<MovementOverrideClipSetHash>move_m@generic</MovementOverrideClipSetHash>
<CoverMovementClipSetHash />
<CoverMovementExtraClipSetHash />
<CoverAlternateMovementClipSetHash />
<CoverWeaponClipSetHash>Cover_Wpn_Melee1h</CoverWeaponClipSetHash>
<MotionClipSetHash>weapons@first_person@aim_idle@generic@melee@knife@shared@core</MotionClipSetHash>
<MotionFilterHash>BothArms_filter</MotionFilterHash>
<MotionCrouchClipSetHash />
<MotionStrafingClipSetHash>move_strafe_melee_unarmed_fps</MotionStrafingClipSetHash>
<MotionStrafingStealthClipSetHash>move_ped_strafing_stealth</MotionStrafingStealthClipSetHash>
<MotionStrafingUpperBodyClipSetHash>move_strafe@melee_knife_fps</MotionStrafingUpperBodyClipSetHash>
<WeaponClipSetHash>weapons@first_person@aim_idle@generic@melee@knife@shared@core</WeaponClipSetHash>
<WeaponClipSetStreamedHash />
<WeaponClipSetHashInjured />
<WeaponClipSetHashStealth>weapons@first_person@aim_stealth@generic@melee@knife@</WeaponClipSetHashStealth>
<WeaponClipSetHashHiCover />
<AlternativeClipSetWhenBlocked />
<ScopeWeaponClipSet />
<AlternateAimingStandingClipSetHash />
<AlternateAimingCrouchingClipSetHash />
<FiringVariationsStandingClipSetHash />
<FiringVariationsCrouchingClipSetHash />
<AimTurnStandingClipSetHash />
<AimTurnCrouchingClipSetHash />
<MeleeClipSetHash>melee@knife@streamed_core_fps</MeleeClipSetHash>
<MeleeVariationClipSetHash>melee@knife@streamed_variations</MeleeVariationClipSetHash>
<MeleeTauntClipSetHash />
<MeleeSupportTauntClipSetHash />
<MeleeStealthClipSetHash />
<ShellShockedClipSetHash>reaction@shellshock@unarmed</ShellShockedClipSetHash>
<JumpUpperbodyClipSetHash>MOVE_JUMP@WEAPONS@1H_MELEE@KNIFE</JumpUpperbodyClipSetHash>
<FallUpperbodyClipSetHash />
<FromStrafeTransitionUpperBodyClipSetHash />
<SwapWeaponFilterHash>RightArm_NoSpine_filter</SwapWeaponFilterHash>
<SwapWeaponInLowCoverFilterHash>RightArm_NoSpine_filter</SwapWeaponInLowCoverFilterHash>
<AnimFireRateModifier value="0.000000" />
<AnimBlindFireRateModifier value="0.000000" />
<AnimWantingToShootFireRateModifier value="-1.000000" />
<UseFromStrafeUpperBodyAimNetwork value="false" />
<AimingDownTheBarrel value="true" />
<WeaponSwapData ref="SWAP_DEFAULT" />
<AimGrenadeThrowNormalClipsetHash />
<AimGrenadeThrowAlternateClipsetHash />
<FPSTransitionFromUnholsterHash>weapons@first_person@aim_idle@p_m_zero@melee@knife@aim_trans@unholster_to_idle</FPSTransitionFromUnholsterHash>
<FPSTransitionFromLTHash>weapons@first_person@aim_idle@p_m_zero@melee@knife@aim_trans@unholster_to_idle</FPSTransitionFromLTHash>
<WeaponClipSetHashForClone>weapons@first_person@aim_idle@remote_clone@melee@one_handed@shared@core</WeaponClipSetHashForClone>
<FPSFidgetClipsetHashes>
<Item>weapons@first_person@aim_idle@p_m_zero@melee@knife@fidgets@a</Item>
<Item>weapons@first_person@aim_idle@p_m_zero@melee@knife@fidgets@b</Item>
<Item>weapons@first_person@aim_idle@p_m_zero@melee@knife@fidgets@c</Item>
</FPSFidgetClipsetHashes>
</Item>
</WeaponAnimations>
</Item>
<Item key="FirstPersonAiming">
<Fallback>Default</Fallback>
</Item>
<Item key="FirstPersonRNG">
<Fallback>Default</Fallback>
</Item>
<Item key="FirstPersonScope">
<Fallback>Default</Fallback>
</Item>
</WeaponAnimationsSets>
</CWeaponAnimationsSets>

View file

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<CWeaponModelInfo__InitDataList>
<InitDatas>
<Item>
<modelName>w_me_pocketlight</modelName>
<txdName>w_me_pocketlight</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="30"/>
</Item>
<Item>
<modelName>w_me_pocketlight_light</modelName>
<txdName>w_me_pocketlight</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="50"/>
</Item>
<Item>
<modelName>w_me_pocketlight_light_red</modelName>
<txdName>w_me_pocketlight_lights</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="50"/>
</Item>
<Item>
<modelName>w_me_pocketlight_light_uv</modelName>
<txdName>w_me_pocketlight_lights</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="50"/>
</Item>
<Item>
<modelName>w_me_pocketlight_wand_white</modelName>
<txdName>w_me_pocketlight_lights</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="50"/>
</Item>
<Item>
<modelName>w_me_pocketlight_wand_red</modelName>
<txdName>w_me_pocketlight_lights</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="50"/>
</Item>
<Item>
<modelName>w_me_pocketlight_wand_amber</modelName>
<txdName>w_me_pocketlight_lights</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="50"/>
</Item>
<Item>
<modelName>w_me_pocketlight_wand_green</modelName>
<txdName>w_me_pocketlight_lights</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="50"/>
</Item>
<Item>
<modelName>w_me_pocketlight_ps</modelName>
<txdName>w_me_pocketlight_lights</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="30"/>
</Item>
<Item>
<modelName>w_me_pocketlight_camo_01</modelName>
<txdName>w_me_pocketlight_camo_01</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="30"/>
</Item>
<Item>
<modelName>w_me_pocketlight_camo_02</modelName>
<txdName>w_me_pocketlight_camo_02</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="30"/>
</Item>
<Item>
<modelName>w_me_pocketlight_camo_03</modelName>
<txdName>w_me_pocketlight_camo_03</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="30"/>
</Item>
<Item>
<modelName>w_me_pocketlight_camo_04</modelName>
<txdName>w_me_pocketlight_camo_04</txdName>
<ptfxAssetName>null</ptfxAssetName>
<lodDist value="30"/>
</Item>
</InitDatas>
</CWeaponModelInfo__InitDataList>

View file

@ -0,0 +1,410 @@
<?xml version="1.0" encoding="UTF-8"?>
<CWeaponComponentInfoBlob>
<Data/>
<Infos>
<Item type="CWeaponComponentFlashLightInfo">
<Name>COMPONENT_PLIGHT_W</Name>
<Model>w_me_pocketlight_light</Model>
<LocName>WCT_PFLASH</LocName>
<LocDesc>WCD_PFLASH</LocDesc>
<AttachBone>AAPFlsh</AttachBone>
<AccuracyModifier type="NULL"/>
<DamageModifier type="NULL"/>
<bShownOnWheel value="true"/>
<CreateObject value="true"/>
<HudDamage value="0"/>
<HudSpeed value="0"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="0"/>
<MainLightIntensity value="8.50000"/>
<MainLightColor value="0xFFB1C8FF"/>
<MainLightRange value="18.000000"/>
<MainLightFalloffExponent value="32.000000"/>
<MainLightInnerAngle value="0.000000"/>
<MainLightOuterAngle value="10.00000"/>
<MainLightCoronaIntensity value="2.000000"/>
<MainLightCoronaSize value="0.18000"/>
<MainLightVolumeIntensity value="0.400000"/>
<MainLightVolumeSize value="0.100000"/>
<MainLightVolumeExponent value="70.000000"/>
<MainLightVolumeOuterColor value="0xFFB1C8FF"/>
<MainLightShadowFadeDistance value="15.000000"/>
<MainLightSpecularFadeDistance value="15.000000"/>
<SecondaryLightIntensity value="5.500000"/>
<SecondaryLightColor value="0xFFB1C8FF"/>
<SecondaryLightRange value="8.000000"/>
<SecondaryLightFalloffExponent value="64.000000"/>
<SecondaryLightInnerAngle value="2.000000"/>
<SecondaryLightOuterAngle value="25.000000"/>
<SecondaryLightVolumeIntensity value="0.20000"/>
<SecondaryLightVolumeSize value="0.300000"/>
<SecondaryLightVolumeExponent value="24.000000"/>
<SecondaryLightVolumeOuterColor value="0x00FFFFFF"/>
<SecondaryLightFadeDistance value="10.000000"/>
<fTargetDistalongAimCamera value="8.000000"/>
<FlashLightBone>Gun_FLMuzzle</FlashLightBone>
<FlashLightBoneBulbOn>Bulb_On</FlashLightBoneBulbOn>
<FlashLightBoneBulbOff>Bulb_Off</FlashLightBoneBulbOff>
<ToggleWhenAiming value="true"/>
</Item>
<Item type="CWeaponComponentFlashLightInfo">
<Name>COMPONENT_PLIGHT_UV</Name>
<Model>w_me_pocketlight_light_uv</Model>
<LocName>WCT_PFLASH_UV</LocName>
<LocDesc>WCD_PFLASH_UV</LocDesc>
<AttachBone>AAPFlsh</AttachBone>
<AccuracyModifier type="NULL"/>
<DamageModifier type="NULL"/>
<bShownOnWheel value="true"/>
<CreateObject value="true"/>
<HudDamage value="0"/>
<HudSpeed value="0"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="0"/>
<MainLightIntensity value="6.500000"/>
<MainLightColor value="0xFF881AAF"/>
<MainLightRange value="5.500000"/>
<MainLightFalloffExponent value="48.000000"/>
<MainLightInnerAngle value="0.000000"/>
<MainLightOuterAngle value="12.000000"/>
<MainLightCoronaIntensity value="1.000000"/>
<MainLightCoronaSize value="0.18000"/>
<MainLightVolumeIntensity value="0.22000"/>
<MainLightVolumeSize value="0.100000"/>
<MainLightVolumeExponent value="70.000000"/>
<MainLightVolumeOuterColor value="0xFF491487"/>
<MainLightShadowFadeDistance value="4.500000"/>
<MainLightSpecularFadeDistance value="4.500000"/>
<SecondaryLightIntensity value="2.800000"/>
<SecondaryLightColor value="0xFF3A05B7"/>
<SecondaryLightRange value="2.850000"/>
<SecondaryLightFalloffExponent value="64.000000"/>
<SecondaryLightInnerAngle value="0.000000"/>
<SecondaryLightOuterAngle value="14.000000"/>
<SecondaryLightVolumeIntensity value="0.20000"/>
<SecondaryLightVolumeSize value="0.300000"/>
<SecondaryLightVolumeExponent value="42.000000"/>
<SecondaryLightVolumeOuterColor value="0x00FFFFFF"/>
<SecondaryLightFadeDistance value="4.000000"/>
<fTargetDistalongAimCamera value="8.000000"/>
<FlashLightBone>Gun_FLMuzzle</FlashLightBone>
<FlashLightBoneBulbOn>Bulb_On</FlashLightBoneBulbOn>
<FlashLightBoneBulbOff>Bulb_Off</FlashLightBoneBulbOff>
<ToggleWhenAiming value="true"/>
</Item>
<Item type="CWeaponComponentFlashLightInfo">
<Name>COMPONENT_PLIGHT_RED</Name>
<Model>w_me_pocketlight_light_red</Model>
<LocName>WCT_PFLASH_RED</LocName>
<LocDesc>WCD_PFLASH_RED</LocDesc>
<AttachBone>AAPFlsh</AttachBone>
<AccuracyModifier type="NULL"/>
<DamageModifier type="NULL"/>
<bShownOnWheel value="true"/>
<CreateObject value="true"/>
<HudDamage value="0"/>
<HudSpeed value="0"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="0"/>
<MainLightIntensity value="7.000000"/>
<MainLightColor value="0xFF63101B"/>
<MainLightRange value="8.500000"/>
<MainLightFalloffExponent value="48.000000"/>
<MainLightInnerAngle value="0.000000"/>
<MainLightOuterAngle value="10.000000"/>
<MainLightCoronaIntensity value="1.400000"/>
<MainLightCoronaSize value="0.18000"/>
<MainLightVolumeIntensity value="0.325000"/>
<MainLightVolumeSize value="0.100000"/>
<MainLightVolumeExponent value="70.000000"/>
<MainLightVolumeOuterColor value="0xFF63101B"/>
<MainLightShadowFadeDistance value="4.500000"/>
<MainLightSpecularFadeDistance value="4.500000"/>
<SecondaryLightIntensity value="3.500000"/>
<SecondaryLightColor value="0xFF63101B"/>
<SecondaryLightRange value="5.500000"/>
<SecondaryLightFalloffExponent value="64.000000"/>
<SecondaryLightInnerAngle value="0.000000"/>
<SecondaryLightOuterAngle value="22.000000"/>
<SecondaryLightVolumeIntensity value="0.20000"/>
<SecondaryLightVolumeSize value="0.300000"/>
<SecondaryLightVolumeExponent value="42.000000"/>
<SecondaryLightVolumeOuterColor value="0x00FFFFFF"/>
<SecondaryLightFadeDistance value="4.000000"/>
<fTargetDistalongAimCamera value="8.000000"/>
<FlashLightBone>Gun_FLMuzzle</FlashLightBone>
<FlashLightBoneBulbOn>Bulb_On</FlashLightBoneBulbOn>
<FlashLightBoneBulbOff>Bulb_Off</FlashLightBoneBulbOff>
<ToggleWhenAiming value="true"/>
</Item>
<Item type="CWeaponComponentFlashLightInfo">
<Name>COMPONENT_PLIGHT_WAND_W</Name>
<Model>w_me_pocketlight_wand_white</Model>
<LocName>WCT_PFLASH_WAND_W</LocName>
<LocDesc>WCD_PFLASH_WAND</LocDesc>
<AttachBone>AAPFlsh</AttachBone>
<AccuracyModifier type="NULL"/>
<DamageModifier type="NULL"/>
<bShownOnWheel value="true"/>
<CreateObject value="true"/>
<HudDamage value="2"/>
<HudSpeed value="0"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="5"/>
<MainLightIntensity value="5"/>
<MainLightColor value="0xFFB1C8FF"/>
<MainLightRange value="3.500000"/>
<MainLightFalloffExponent value="48"/>
<MainLightInnerAngle value="20"/>
<MainLightOuterAngle value="360"/>
<MainLightCoronaIntensity value="2"/>
<MainLightCoronaSize value="0.85"/>
<MainLightVolumeIntensity value="0.75"/>
<MainLightVolumeSize value="0.4"/>
<MainLightVolumeExponent value="48"/>
<MainLightVolumeOuterColor value="0xFFB1C8FF"/>
<MainLightShadowFadeDistance value="4.500000"/>
<MainLightSpecularFadeDistance value="4.500000"/>
<SecondaryLightIntensity value="2.500000"/>
<SecondaryLightColor value="0xFFB1C8FF"/>
<SecondaryLightRange value="2.250000"/>
<SecondaryLightFalloffExponent value="64"/>
<SecondaryLightInnerAngle value="0"/>
<SecondaryLightOuterAngle value="120"/>
<SecondaryLightVolumeIntensity value="0.20000"/>
<SecondaryLightVolumeSize value="0"/>
<SecondaryLightVolumeExponent value="42"/>
<SecondaryLightVolumeOuterColor value="0xFFB1C8FF"/>
<SecondaryLightFadeDistance value="4.000000"/>
<fTargetDistalongAimCamera value="8.000000"/>
<FlashLightBone>Gun_FLMuzzle</FlashLightBone>
<FlashLightBoneBulbOn>Bulb_On</FlashLightBoneBulbOn>
<FlashLightBoneBulbOff>Bulb_Off</FlashLightBoneBulbOff>
<ToggleWhenAiming value="false"/>
</Item>
<Item type="CWeaponComponentFlashLightInfo">
<Name>COMPONENT_PLIGHT_WAND_R</Name>
<Model>w_me_pocketlight_wand_red</Model>
<LocName>WCT_PFLASH_WAND_R</LocName>
<LocDesc>WCD_PFLASH_WAND</LocDesc>
<AttachBone>AAPFlsh</AttachBone>
<AccuracyModifier type="NULL"/>
<DamageModifier type="NULL"/>
<bShownOnWheel value="true"/>
<CreateObject value="true"/>
<HudDamage value="2"/>
<HudSpeed value="0"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="5"/>
<MainLightIntensity value="4.5"/>
<MainLightColor value="0xFF630A0A"/>
<MainLightRange value="3.500000"/>
<MainLightFalloffExponent value="48"/>
<MainLightInnerAngle value="20"/>
<MainLightOuterAngle value="360"/>
<MainLightCoronaIntensity value="2"/>
<MainLightCoronaSize value="0.85"/>
<MainLightVolumeIntensity value="0.6"/>
<MainLightVolumeSize value="0.3"/>
<MainLightVolumeExponent value="48"/>
<MainLightVolumeOuterColor value="0xFF630A0A"/>
<MainLightShadowFadeDistance value="4.500000"/>
<MainLightSpecularFadeDistance value="4.500000"/>
<SecondaryLightIntensity value="2.500000"/>
<SecondaryLightColor value="0xFF630A0A"/>
<SecondaryLightRange value="2.250000"/>
<SecondaryLightFalloffExponent value="64"/>
<SecondaryLightInnerAngle value="0"/>
<SecondaryLightOuterAngle value="120"/>
<SecondaryLightVolumeIntensity value="0.20000"/>
<SecondaryLightVolumeSize value="0"/>
<SecondaryLightVolumeExponent value="42"/>
<SecondaryLightVolumeOuterColor value="0xFF630A0A"/>
<SecondaryLightFadeDistance value="4.000000"/>
<fTargetDistalongAimCamera value="8.000000"/>
<FlashLightBone>Gun_FLMuzzle</FlashLightBone>
<FlashLightBoneBulbOn>Bulb_On</FlashLightBoneBulbOn>
<FlashLightBoneBulbOff>Bulb_Off</FlashLightBoneBulbOff>
<ToggleWhenAiming value="false"/>
</Item>
<Item type="CWeaponComponentFlashLightInfo">
<Name>COMPONENT_PLIGHT_WAND_A</Name>
<Model>w_me_pocketlight_wand_amber</Model>
<LocName>WCT_PFLASH_WAND_A</LocName>
<LocDesc>WCD_PFLASH_WAND</LocDesc>
<AttachBone>AAPFlsh</AttachBone>
<AccuracyModifier type="NULL"/>
<DamageModifier type="NULL"/>
<bShownOnWheel value="true"/>
<CreateObject value="true"/>
<HudDamage value="2"/>
<HudSpeed value="0"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="5"/>
<MainLightIntensity value="4.5"/>
<MainLightColor value="0xFF6B3B12"/>
<MainLightRange value="3.500000"/>
<MainLightFalloffExponent value="48"/>
<MainLightInnerAngle value="20"/>
<MainLightOuterAngle value="360"/>
<MainLightCoronaIntensity value="2"/>
<MainLightCoronaSize value="0.85"/>
<MainLightVolumeIntensity value="0.6"/>
<MainLightVolumeSize value="0.3"/>
<MainLightVolumeExponent value="48"/>
<MainLightVolumeOuterColor value="0xFF6B3B12"/>
<MainLightShadowFadeDistance value="4.500000"/>
<MainLightSpecularFadeDistance value="4.500000"/>
<SecondaryLightIntensity value="2.500000"/>
<SecondaryLightColor value="0xFF6B3B12"/>
<SecondaryLightRange value="2.250000"/>
<SecondaryLightFalloffExponent value="64"/>
<SecondaryLightInnerAngle value="0"/>
<SecondaryLightOuterAngle value="120"/>
<SecondaryLightVolumeIntensity value="0.20000"/>
<SecondaryLightVolumeSize value="0"/>
<SecondaryLightVolumeExponent value="42"/>
<SecondaryLightVolumeOuterColor value="0xFF6B3B12"/>
<SecondaryLightFadeDistance value="4.000000"/>
<fTargetDistalongAimCamera value="8.000000"/>
<FlashLightBone>Gun_FLMuzzle</FlashLightBone>
<FlashLightBoneBulbOn>Bulb_On</FlashLightBoneBulbOn>
<FlashLightBoneBulbOff>Bulb_Off</FlashLightBoneBulbOff>
<ToggleWhenAiming value="false"/>
<!--<TintIndexOverride value="9"/>-->
</Item>
<Item type="CWeaponComponentFlashLightInfo">
<Name>COMPONENT_PLIGHT_WAND_G</Name>
<Model>w_me_pocketlight_wand_green</Model>
<LocName>WCT_PFLASH_WAND_G</LocName>
<LocDesc>WCD_PFLASH_WAND</LocDesc>
<AttachBone>AAPFlsh</AttachBone>
<AccuracyModifier type="NULL"/>
<DamageModifier type="NULL"/>
<bShownOnWheel value="true"/>
<CreateObject value="true"/>
<HudDamage value="2"/>
<HudSpeed value="0"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="5"/>
<MainLightIntensity value="4.5"/>
<MainLightColor value="0xFF18560A"/>
<MainLightRange value="3.500000"/>
<MainLightFalloffExponent value="48"/>
<MainLightInnerAngle value="20"/>
<MainLightOuterAngle value="360"/>
<MainLightCoronaIntensity value="2"/>
<MainLightCoronaSize value="0.85"/>
<MainLightVolumeIntensity value="0.6"/>
<MainLightVolumeSize value="0.3"/>
<MainLightVolumeExponent value="48"/>
<MainLightVolumeOuterColor value="0xFF18560A"/>
<MainLightShadowFadeDistance value="4.500000"/>
<MainLightSpecularFadeDistance value="4.500000"/>
<SecondaryLightIntensity value="2.500000"/>
<SecondaryLightColor value="0xFF18560A"/>
<SecondaryLightRange value="2.250000"/>
<SecondaryLightFalloffExponent value="64"/>
<SecondaryLightInnerAngle value="0"/>
<SecondaryLightOuterAngle value="120"/>
<SecondaryLightVolumeIntensity value="0.20000"/>
<SecondaryLightVolumeSize value="0"/>
<SecondaryLightVolumeExponent value="42"/>
<SecondaryLightVolumeOuterColor value="0xFF18560A"/>
<SecondaryLightFadeDistance value="4.000000"/>
<fTargetDistalongAimCamera value="8.000000"/>
<FlashLightBone>Gun_FLMuzzle</FlashLightBone>
<FlashLightBoneBulbOn>Bulb_On</FlashLightBoneBulbOn>
<FlashLightBoneBulbOff>Bulb_Off</FlashLightBoneBulbOff>
<ToggleWhenAiming value="false"/>
</Item>
<Item type="CWeaponComponentInfo">
<Name>COMPONENT_PLIGHT_PS</Name>
<Model>w_me_pocketlight_ps</Model>
<LocName>WCT_PFLASH_PSD</LocName>
<LocDesc>WCD_INVALID</LocDesc>
<AttachBone>AAPFlsh</AttachBone>
<AccuracyModifier type="NULL"/>
<DamageModifier type="NULL"/>
<bShownOnWheel value="true"/>
<CreateObject value="true"/>
<HudDamage value="0"/>
<HudSpeed value="0"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="0"/>
</Item>
<Item type="CWeaponComponentInfo">
<Name>COMPONENT_PLIGHT_CAMO_01</Name>
<Model>w_me_pocketlight_camo_01</Model>
<LocName>WCT_CAMO_1</LocName>
<LocDesc>WCD_INVALID</LocDesc>
<AttachBone>AAPCamo</AttachBone>
<AccuracyModifier type="NULL"/>
<DamageModifier type="NULL"/>
<bShownOnWheel value="false"/>
<CreateObject value="true"/>
<HudDamage value="0"/>
<HudSpeed value="0"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="0"/>
</Item>
<Item type="CWeaponComponentInfo">
<Name>COMPONENT_PLIGHT_CAMO_02</Name>
<Model>w_me_pocketlight_camo_02</Model>
<LocName>WCT_CAMO_2</LocName>
<LocDesc>WCD_INVALID</LocDesc>
<AttachBone>AAPCamo</AttachBone>
<AccuracyModifier type="NULL"/>
<DamageModifier type="NULL"/>
<bShownOnWheel value="false"/>
<CreateObject value="true"/>
<HudDamage value="0"/>
<HudSpeed value="0"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="0"/>
</Item>
<Item type="CWeaponComponentInfo">
<Name>COMPONENT_PLIGHT_CAMO_03</Name>
<Model>w_me_pocketlight_camo_03</Model>
<LocName>WCT_CAMO_3</LocName>
<LocDesc>WCD_INVALID</LocDesc>
<AttachBone>AAPCamo</AttachBone>
<AccuracyModifier type="NULL"/>
<DamageModifier type="NULL"/>
<bShownOnWheel value="false"/>
<CreateObject value="true"/>
<HudDamage value="0"/>
<HudSpeed value="0"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="0"/>
</Item>
<Item type="CWeaponComponentInfo">
<Name>COMPONENT_PLIGHT_CAMO_04</Name>
<Model>w_me_pocketlight_camo_04</Model>
<LocName>WCT_CAMO_9</LocName>
<LocDesc>WCD_INVALID</LocDesc>
<AttachBone>AAPCamo</AttachBone>
<AccuracyModifier type="NULL"/>
<DamageModifier type="NULL"/>
<bShownOnWheel value="false"/>
<CreateObject value="true"/>
<HudDamage value="0"/>
<HudSpeed value="0"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="0"/>
</Item>
</Infos>
<InfoBlobName>Pocket Flashlight by w/</InfoBlobName>
</CWeaponComponentInfoBlob>

View file

@ -1,38 +1,38 @@
local QBCore = exports['qb-core']:GetCoreObject() local QBCore = exports['qb-core']:GetCoreObject()
local savedLocation = nil local savedLocation = nil
RegisterCommand("relog", function() RegisterCommand("relog", function()
local ped = PlayerPedId() local ped = PlayerPedId()
local coords = GetEntityCoords(ped) local coords = GetEntityCoords(ped)
local heading = GetEntityHeading(ped) local heading = GetEntityHeading(ped)
local cid = QBCore.Functions.GetPlayerData().citizenid local cid = QBCore.Functions.GetPlayerData().citizenid
-- Speicher Ort vor Relog -- Speicher Ort vor Relog
TriggerServerEvent("qb-relogsave:server:saveLocation", cid, { TriggerServerEvent("qb-relogsave:server:saveLocation", cid, {
x = coords.x, x = coords.x,
y = coords.y, y = coords.y,
z = coords.z z = coords.z
}, heading) }, heading)
TriggerEvent("qb-multicharacter:client:chooseChar") TriggerEvent("qb-multicharacter:client:chooseChar")
end, false) end, false)
RegisterNetEvent("qb-relogsave:client:restoreLocation", function(pos, heading) RegisterNetEvent("qb-relogsave:client:restoreLocation", function(pos, heading)
savedLocation = { savedLocation = {
pos = pos, pos = pos,
heading = heading heading = heading
} }
end) end)
RegisterNetEvent("qb-spawn:client:spawned", function() RegisterNetEvent("qb-spawn:client:spawned", function()
if savedLocation then if savedLocation then
DoScreenFadeOut(500) DoScreenFadeOut(500)
Wait(500) Wait(500)
SetEntityCoords(PlayerPedId(), savedLocation.pos.x, savedLocation.pos.y, savedLocation.pos.z) SetEntityCoords(PlayerPedId(), savedLocation.pos.x, savedLocation.pos.y, savedLocation.pos.z)
SetEntityHeading(PlayerPedId(), savedLocation.heading) SetEntityHeading(PlayerPedId(), savedLocation.heading)
Wait(500) Wait(500)
DoScreenFadeIn(500) DoScreenFadeIn(500)
savedLocation = nil savedLocation = nil
end end
end) end)

View file

@ -1,12 +1,13 @@
fx_version 'cerulean' fx_version 'cerulean'
game 'gta5' game 'gta5'
description 'relog system' description 'relog system'
author 'Duck' author 'Duck'
version '1.0.0' version '1.0.1'
client_script 'client.lua' client_script 'client.lua'
server_script 'server.lua' server_script 'server.lua'
shared_script '@qb-core/shared/locale.lua' shared_script '@qb-core/shared/locale.lua'
dependency 'qb-core' dependency 'qb-core'
dependency 'um-multicharacter'

View file

@ -1,23 +1,34 @@
local savedLocations = {} local savedLocations = {}
local QBCore = exports['qb-core']:GetCoreObject()
local QBCore = exports['qb-core']:GetCoreObject()
RegisterNetEvent("qb-relogsave:server:saveLocation", function(cid, coords, heading)
RegisterNetEvent("qb-relogsave:server:saveLocation", function(cid, coords, heading) if not cid or not coords then return end
savedLocations[cid] = {
pos = coords, savedLocations[cid] = {
heading = heading pos = coords,
} heading = heading,
end) timestamp = os.time()
}
AddEventHandler('QBCore:Server:PlayerLoaded', function(Player)
local cid = Player.PlayerData.citizenid print("Position für " .. cid .. " gespeichert: " .. json.encode(coords))
end)
if savedLocations[cid] then
local pos = savedLocations[cid].pos AddEventHandler('QBCore:Server:PlayerLoaded', function(Player)
local heading = savedLocations[cid].heading if not Player or not Player.PlayerData then return end
TriggerClientEvent("qb-relogsave:client:restoreLocation", Player.PlayerData.source, pos, heading) local cid = Player.PlayerData.citizenid
savedLocations[cid] = nil if savedLocations[cid] then
end local pos = savedLocations[cid].pos
end) local heading = savedLocations[cid].heading
if pos and pos.x and pos.y and pos.z then
TriggerClientEvent("qb-relogsave:client:restoreLocation", Player.PlayerData.source, pos, heading)
print("Position für " .. cid .. " wiederhergestellt")
else
print("Ungültige Position für " .. cid .. " gefunden")
end
savedLocations[cid] = nil
end
end)

File diff suppressed because it is too large Load diff

View file

@ -25,7 +25,18 @@ Config = {
Persons = { Persons = {
{ {
pedHash = `a_m_m_farmer_01`, -- Use ``(backticks) because it's faster than using GetHashKey pedHash = `a_m_m_farmer_01`, -- Use ``(backticks) because it's faster than using GetHashKey
pedCoords = vector4(1584.36, 2169.41, 78.29, 184.73), -- x, y, z, heading pedCoords = vector4(1561.6321, 3801.2871, 33.4187, 207.3153), -- x, y, z, heading
pedScenario = 'WORLD_HUMAN_STAND_MOBILE,
},
pedSettings = {
FreezePerson = true, -- Using only FreezeEntityPosition
Invincible = true, -- Using SetEntityInvincible, SetPedDiesWhenInjured, SetPedCanPlayAmbientAnims, SetPedCanRagdollFromPlayerImpact
BlockingOfNonTemporaryEvents = true, -- Using SetBlockingOfNonTemporaryEvents
},
},
{
pedHash = `a_m_m_farmer_01`, -- Use ``(backticks) because it's faster than using GetHashKey
pedCoords = vector4(1633.0272, 3863.1299, 33.1044, 308.1584), -- x, y, z, heading
pedAnimation = { pedAnimation = {
animDict = 'random@burial', animDict = 'random@burial',
animName = 'a_burial', animName = 'a_burial',