Sziasztok! Megpróbáltam megcsinálni ,hogy egy fegyverre két skint rakok stb stb és sikerült is az első!
Amelyik sikerült:
elseif(items[itemID][5] or itemID == 85 or itemID == 27 or itemID == 167)then --Weapons
triggerServerEvent(\"toggleGun\", getLocalPlayer(), getLocalPlayer(), itemSlot, itemID)
if itemID == 27 then
engineRestoreModel(348)
if fileExists(\"files/modell/\"..filename..\".txd\") then
txd = engineLoadTXD(\"files/modell/\" ..filename..\".txd\", 348 )
engineImportTXD(txd, 348)
end
if fileExists(\"files/modell/\" ..filename..\".dff\") then
dff = engineLoadDFF(\"files/modell/\" ..filename..\".dff\", 348 )
engineReplaceModel(dff, 348)
end
else
engineRestoreModel(348)
if fileExists(\":exg_weaponmod/weapon/desert.txd\") then
txd = engineLoadTXD(\":exg_weaponmod/weapon/desert.txd\", 348 )
engineImportTXD(txd, 348)
end
if fileExists(\":exg_weaponmod/weapon/desert.dff\") then
dff = engineLoadDFF(\":exg_weaponmod/weapon/desert.dff\", 348 )
engineReplaceModel(dff, 348)
end
end
slots = itemSlot
És amikor hozzátettem még egy pár sort!
elseif(items[itemID][5] or itemID == 85 or itemID == 27 or itemID == 167)then --Weapons
triggerServerEvent(\"toggleGun\", getLocalPlayer(), getLocalPlayer(), itemSlot, itemID)
if itemID == 27 then
engineRestoreModel(348)
if fileExists(\"files/modell/\"..filename..\".txd\") then
txd = engineLoadTXD(\"files/modell/\" ..filename..\".txd\", 348 )
engineImportTXD(txd, 348)
end
if fileExists(\"files/modell/\" ..filename..\".dff\") then
dff = engineLoadDFF(\"files/modell/\" ..filename..\".dff\", 348 )
engineReplaceModel(dff, 348)
end
else
engineRestoreModel(348)
if fileExists(\":exg_weaponmod/weapon/desert.txd\") then
txd = engineLoadTXD(\":exg_weaponmod/weapon/desert.txd\", 348 )
engineImportTXD(txd, 348)
end
if fileExists(\":exg_weaponmod/weapon/desert.dff\") then
dff = engineLoadDFF(\":exg_weaponmod/weapon/desert.dff\", 348 )
engineReplaceModel(dff, 348)
end
if itemID == 167 then
engineRestoreModel(355)
if fileExists(\"files/modell/\"..filename1..\".txd\") then
txd = engineLoadTXD(\"files/modell/\" ..filename1..\".txd\", 355 )
engineImportTXD(txd, 355)
end
if fileExists(\"files/modell/\" ..filename1..\".dff\") then
dff = engineLoadDFF(\"files/modell/\" ..filename1..\".dff\", 355 )
engineReplaceModel(dff, 355)
end
else
engineRestoreModel(