TXW Documentation

txw_lib

TXW Documentation

Integration docs for TXW resources with a cleaner customer UI.

Filter inactive

Built from markdown on 2026-04-02 10:30:44

Kunden-Dokumentation (Deutsch)

Integrationsdokumentation fuer alle TXW-Skripte ausser txw_lib.

Schnellstart

  • Exakte Ressourcennamen verwenden (txw_*).
  • txw_lib immer vor allen anderen txw_* starten.
  • Drittanbieter-Abhängigkeiten vorher starten (ox_inventory, ox_lib, DB-Resource).
  • SQL-Migrationen aus Abschnitt „Datenbank“ ausführen.
  • Jede config.lua pro Script anpassen.

Scripts

txw_IDFinder
  • Zweck: Hash-/Material-Inspektor über Taste G.
  • Abhängigkeiten: txw_lib.
  • Befehle: +inspect_target, -inspect_target, inspect_addoffline <unsignedModel> <mat1> [mat2] ... (nur Serverkonsole).
  • Exports: keine.
  • Integration: inspect:requestOffline, inspect:responseOffline, inspect:report.
txw_afk
  • Zweck: AFK-Erkennung, Schutzstatus und optionaler Kick.
  • Abhängigkeiten: txw_lib.
  • Befehle: keine.
  • Exports: keine.
  • Integration: txw_afk:kickPlayer, txw_afk:statusHandler, txw_afk:setNeeds.
txw_airdrop
  • Zweck: Geplante oder manuelle Airdrops mit temporären Loot-Stashes.
  • Abhängigkeiten: txw_lib (Manifest), ox_inventory (Laufzeit).
  • Befehle: /airdrop <dropType>.
  • Exports: keine.
  • Integration: TarXWin_Airdrop:generateAirDrop(coords, dropTypeKey).
  • Hinweis: Scheduler in config.lua über SchedulerMode (interval/fixed).
txw_backpack
  • Zweck: Rucksack-Slots/Gewicht + Ausrüstungslogik.
  • Abhängigkeiten: txw_lib, ox_inventory, ox_lib, oxmysql.
  • Optional: es_extended, qb-core.
  • Befehle: /backpack (oder Config.BackpackCommand).
  • Exports: openBackpack_<itemName>(data, slot) pro Eintrag in Config.Backpacks.
  • Standard-Exports: openBackpack_small_bag, openBackpack_medium_pack, openBackpack_hiking_pack, openBackpack_military_pack.
  • Integration: TarXWin_Backpack:recalculateWeight, TarXWin_Backpack:save.
  • ox_inventory Item-Beispiel:
['small_bag'] = {
  label = 'Backpack',
  stack = false,
  consume = 0,
  client = { export = 'txw_backpack.openBackpack_small_bag' }
}
txw_changeplate
  • Zweck: Kennzeichen ändern, Fakeplate ausblenden/einblenden.
  • Abhängigkeiten: txw_lib, mysql-async.
  • Befehle: keine.
  • Exports: keine.
  • Callback: kennzeichen:checkPlate(newPlate) -> boolean.
  • Integration: kennzeichen:updatePlate, kennzeichen:removeItem, kennzeichen:openMenu, kennzeichen:respawnVehicle, kennzeichen:hide, kennzeichen:show.
txw_containern
  • Zweck: Container/Dumpster durchsuchen mit Cooldown und Loot.
  • Abhängigkeiten: txw_lib, ox_lib, ox_inventory.
  • Befehle: keine.
  • Exports: keine.
  • Callback: tarxwin_dd:canSearch(key) -> canSearch, reasonSeconds.
  • Integration: tarxwin_dd:finishSearch, tarxwin_dd:cancelSearch.
txw_crafting
  • Zweck: Werkbank-Crafting mit Level/XP.
  • Abhängigkeiten: txw_lib.
  • Befehle: givecraftingxp <playerId> <amount>, setcraftingxp <playerId> <amount>.
  • Exports: keine.
  • Callbacks: TarXWin_Crafting:getData, TarXWin_Crafting:getLevel.
  • Integration: TarXWin_Crafting:craft, TarXWin_Crafting:itemCrafted, TarXWin_Crafting:craftStart.
  • Hinweis: DB-Spalte users.crafting_level erforderlich.
txw_deathbag
  • Zweck: Death-Loot über Skelett + Stash.
  • Abhängigkeiten: txw_lib, ox_inventory.
  • Laufzeit-Erwartung: baseevents:onPlayerDied.
  • Befehle: keine.
  • Exports: keine.
  • Integration: deathLoot:server:playerSpawned, deathLoot:server:lootSkeleton, deathLoot:client:spawnSkeleton, deathLoot:client:removeSkeleton, deathLoot:client:openLootInventory.
txw_gather
  • Zweck: Ressourcen farmen über Tool-/Material-Hashes.
  • Abhängigkeiten: txw_lib, ox_inventory, ox_lib.
  • Befehle: /checktool.
  • Exports: keine.
  • Integration: TarXWin_Gather:server:giveLoot, TarXWin_Gather:server:setObjectDepleted, TarXWin_Gather:server:fillEmptyItem.
  • Hinweis: Config.tools und Config.types korrekt pflegen.
txw_gather/idfinder
  • Zweck: Integrierte IDFinder-Variante im Gather-Paket.
  • Abhängigkeiten: keine im Manifest deklariert.
  • Befehle: +inspect_target, -inspect_target, inspect_addoffline ....
  • Exports: keine.
  • Integration: inspect:requestOffline, inspect:responseOffline, inspect:report.
txw_hazardzone
  • Zweck: Strahlungszonen, Hazmat-Suit, Radiation-Pills.
  • Abhängigkeiten: txw_lib, ox_lib, xsound.
  • Laufzeit-Nutzung: ESX-Skin/skinchanger-Callbacks im Client.
  • Befehle: keine.
  • Exports: isWearingHazmat() -> boolean.
  • Beispiel:
local hasSuit = exports.txw_hazardzone:isWearingHazmat()
  • Integration: hazard:client:toggleHazmatSkin, hazard:client:useRadiationPill.
txw_immigration
  • Zweck: Einreise-System mit Duty, Tablet und Fragebogen.
  • Abhängigkeiten: txw_lib.
  • Laufzeit-Abhängigkeit: screenshot-basic.
  • Befehle: /gduty, /einreise, /watch.
  • Exports: keine.
  • Integration:
  • einreise:server:getEntryStatus
  • einreise:server:ringBell
  • einreise:server:fetchPlayers
  • einreise:server:performAction
  • einreise:server:startQuestionnaire
  • einreise:server:submitAnswers
  • einreise:server:letPlayerIn
  • einreise:server:logLocalScreenshot
  • einreise:server:uploadScreenshot
  • Hinweis: DB-Spalte users.entry_status erforderlich.
txw_looting
  • Zweck: Looting für tote Peds/Props mit Cooldowns.
  • Abhängigkeiten: txw_lib, ox_inventory, ox_lib.
  • Befehle: keine.
  • Exports: keine.
  • Callback: TarXWin_loot:checkCooldown(entityType, identifier, lootType) -> boolean.
  • Integration: TarXWin_loot:requestPedLoot, TarXWin_loot:requestPropLoot, TarXWin_loot:closedLootStash, TarXWin_loot:openLootInventory, TarXWin_loot:showNotification, TarXWin_loot:deletePed.
txw_pedchanger
  • Zweck: Ped-Verwandlung (temporär/permanent) mit UI.
  • Abhängigkeiten: txw_lib, oxmysql.
  • Befehle: /<Config.Open.command> (Standard: pedmenu).
  • Exports: keine.
  • Integration: NeoPremiumPedChanger:server:getPlayers, NeoPremiumPedChanger:server:TempTransform, NeoPremiumPedChanger:server:PermTransform, NeoPremiumPedChanger:server:ResetPlayerTransform, NeoPremiumPedChanger:client:sendPlayers, NeoPremiumPedChanger:client:ApplyTransform, NeoPremiumPedChanger:client:ResetTransform.
  • Hinweis: Tabelle player_ped erforderlich.
txw_planecrash
  • Zweck: Plane-Crash-Events (automatisch/manuell) mit Loot.
  • Abhängigkeiten: txw_lib.
  • Befehle: /planecrash [lootType].
  • Exports: keine.
  • Integration: planecrash:collectItem, planecrash:startAnimation, planecrash:removeLootProp, planecrash:cleanup.
txw_presence
  • Zweck: Discord Rich Presence.
  • Abhängigkeiten: txw_lib.
  • Befehle: keine.
  • Exports: keine.
  • Integration: keine öffentliche API.
  • Hinweis: App-ID/Assets/Invite direkt in txw_presence/client.lua setzen.
txw_repairtools
  • Zweck: Konfigurierbare Reparaturkits.
  • Abhängigkeiten: txw_lib.
  • Befehle: keine.
  • Exports: keine.
  • Integration: custom_repairkits:server_syncTyres, custom_repairkits:server_syncBody, custom_repairkits:useKit, custom_repairkits:client_executeTyreRepair, custom_repairkits:client_executeBodyRepair.
txw_shipwrack
  • Zweck: Zeitgesteuertes Schiffswrack-Event mit Kistenloot.
  • Abhängigkeiten: txw_lib, ox_lib, ox_inventory.
  • Laufzeit-Nutzung: ox_target.
  • Befehle: keine.
  • Exports: keine.
  • Integration: tarxwin_shipwreck:clientNotify, tarxwin_shipwreck:spawn, tarxwin_shipwreck:cleanup.

Export-Übersicht

  • txw_backpack: openBackpack_<itemName>(data, slot).
  • txw_hazardzone: isWearingHazmat() -> boolean.
  • Alle anderen Scripts (außer txw_lib) haben keine direkten Exports.

Datenbank

  • txw_crafting/import.sql
ALTER TABLE `users` ADD COLUMN `crafting_level` INT(11) NOT NULL DEFAULT 0;
  • txw_immigration/sql.sql
ALTER TABLE `users` ADD COLUMN `entry_status` INT(11) NOT NULL DEFAULT 0;
  • Empfohlene Tabelle für txw_pedchanger
CREATE TABLE IF NOT EXISTS `player_ped` (
  `identifier` VARCHAR(80) NOT NULL,
  `charid` VARCHAR(80) NULL,
  `ped_data` LONGTEXT NOT NULL,
  PRIMARY KEY (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Customer Documentation (English)

Integration documentation for all TXW scripts except txw_lib.

Quick Start

  • Keep exact resource names (txw_*).
  • Start txw_lib before all other txw_* resources.
  • Start third-party dependencies first (ox_inventory, ox_lib, DB resource).
  • Run SQL migrations from the “Database” section.
  • Adjust each script config.lua.

Scripts

txw_IDFinder
  • Purpose: Hash/material inspector via G key.
  • Dependencies: txw_lib.
  • Commands: +inspect_target, -inspect_target, inspect_addoffline <unsignedModel> <mat1> [mat2] ... (server console only).
  • Exports: none.
  • Integration: inspect:requestOffline, inspect:responseOffline, inspect:report.
txw_afk
  • Purpose: AFK detection, protection state and optional kick.
  • Dependencies: txw_lib.
  • Commands: none.
  • Exports: none.
  • Integration: txw_afk:kickPlayer, txw_afk:statusHandler, txw_afk:setNeeds.
txw_airdrop
  • Purpose: Scheduled/manual airdrops with temporary loot stashes.
  • Dependencies: txw_lib (manifest), ox_inventory (runtime).
  • Commands: /airdrop <dropType>.
  • Exports: none.
  • Integration: TarXWin_Airdrop:generateAirDrop(coords, dropTypeKey).
  • Note: Scheduler is controlled by SchedulerMode in config.lua (interval/fixed).
txw_backpack
  • Purpose: Backpack slots/weight and equip logic.
  • Dependencies: txw_lib, ox_inventory, ox_lib, oxmysql.
  • Optional: es_extended, qb-core.
  • Commands: /backpack (or Config.BackpackCommand).
  • Exports: openBackpack_<itemName>(data, slot) for each Config.Backpacks key.
  • Default exports: openBackpack_small_bag, openBackpack_medium_pack, openBackpack_hiking_pack, openBackpack_military_pack.
  • Integration: TarXWin_Backpack:recalculateWeight, TarXWin_Backpack:save.
  • ox_inventory example:
['small_bag'] = {
  label = 'Backpack',
  stack = false,
  consume = 0,
  client = { export = 'txw_backpack.openBackpack_small_bag' }
}
txw_changeplate
  • Purpose: License plate changing and fake plate hide/show.
  • Dependencies: txw_lib, mysql-async.
  • Commands: none.
  • Exports: none.
  • Callback: kennzeichen:checkPlate(newPlate) -> boolean.
  • Integration: kennzeichen:updatePlate, kennzeichen:removeItem, kennzeichen:openMenu, kennzeichen:respawnVehicle, kennzeichen:hide, kennzeichen:show.
txw_containern
  • Purpose: Dumpster/container search with cooldown and loot.
  • Dependencies: txw_lib, ox_lib, ox_inventory.
  • Commands: none.
  • Exports: none.
  • Callback: tarxwin_dd:canSearch(key) -> canSearch, reasonSeconds.
  • Integration: tarxwin_dd:finishSearch, tarxwin_dd:cancelSearch.
txw_crafting
  • Purpose: Workbench crafting with level/xp progression.
  • Dependencies: txw_lib.
  • Commands: givecraftingxp <playerId> <amount>, setcraftingxp <playerId> <amount>.
  • Exports: none.
  • Callbacks: TarXWin_Crafting:getData, TarXWin_Crafting:getLevel.
  • Integration: TarXWin_Crafting:craft, TarXWin_Crafting:itemCrafted, TarXWin_Crafting:craftStart.
  • Note: Requires DB column users.crafting_level.
txw_deathbag
  • Purpose: Death loot using skeleton + stash.
  • Dependencies: txw_lib, ox_inventory.
  • Runtime requirement: baseevents:onPlayerDied.
  • Commands: none.
  • Exports: none.
  • Integration: deathLoot:server:playerSpawned, deathLoot:server:lootSkeleton, deathLoot:client:spawnSkeleton, deathLoot:client:removeSkeleton, deathLoot:client:openLootInventory.
txw_gather
  • Purpose: Resource gathering based on tool/material hashes.
  • Dependencies: txw_lib, ox_inventory, ox_lib.
  • Commands: /checktool.
  • Exports: none.
  • Integration: TarXWin_Gather:server:giveLoot, TarXWin_Gather:server:setObjectDepleted, TarXWin_Gather:server:fillEmptyItem.
  • Note: Keep Config.tools and Config.types aligned with your server data.
txw_gather/idfinder
  • Purpose: Embedded IDFinder variant shipped inside gather package.
  • Dependencies: none declared in manifest.
  • Commands: +inspect_target, -inspect_target, inspect_addoffline ....
  • Exports: none.
  • Integration: inspect:requestOffline, inspect:responseOffline, inspect:report.
txw_hazardzone
  • Purpose: Radiation zones, hazmat suit, radiation pills.
  • Dependencies: txw_lib, ox_lib, xsound.
  • Runtime usage: ESX skin/skinchanger callbacks in client.
  • Commands: none.
  • Exports: isWearingHazmat() -> boolean.
  • Example:
local hasSuit = exports.txw_hazardzone:isWearingHazmat()
  • Integration: hazard:client:toggleHazmatSkin, hazard:client:useRadiationPill.
txw_immigration
  • Purpose: Entry/immigration flow with duty mode, tablet and questionnaire.
  • Dependencies: txw_lib.
  • Runtime dependency: screenshot-basic.
  • Commands: /gduty, /einreise, /watch.
  • Exports: none.
  • Integration:
  • einreise:server:getEntryStatus
  • einreise:server:ringBell
  • einreise:server:fetchPlayers
  • einreise:server:performAction
  • einreise:server:startQuestionnaire
  • einreise:server:submitAnswers
  • einreise:server:letPlayerIn
  • einreise:server:logLocalScreenshot
  • einreise:server:uploadScreenshot
  • Note: Requires DB column users.entry_status.
txw_looting
  • Purpose: Looting dead peds/props with cooldown logic.
  • Dependencies: txw_lib, ox_inventory, ox_lib.
  • Commands: none.
  • Exports: none.
  • Callback: TarXWin_loot:checkCooldown(entityType, identifier, lootType) -> boolean.
  • Integration: TarXWin_loot:requestPedLoot, TarXWin_loot:requestPropLoot, TarXWin_loot:closedLootStash, TarXWin_loot:openLootInventory, TarXWin_loot:showNotification, TarXWin_loot:deletePed.
txw_pedchanger
  • Purpose: Ped transformation UI (temporary/permanent).
  • Dependencies: txw_lib, oxmysql.
  • Commands: /<Config.Open.command> (default: pedmenu).
  • Exports: none.
  • Integration: NeoPremiumPedChanger:server:getPlayers, NeoPremiumPedChanger:server:TempTransform, NeoPremiumPedChanger:server:PermTransform, NeoPremiumPedChanger:server:ResetPlayerTransform, NeoPremiumPedChanger:client:sendPlayers, NeoPremiumPedChanger:client:ApplyTransform, NeoPremiumPedChanger:client:ResetTransform.
  • Note: Requires table player_ped.
txw_planecrash
  • Purpose: Plane crash events (scheduled/manual) with loot.
  • Dependencies: txw_lib.
  • Commands: /planecrash [lootType].
  • Exports: none.
  • Integration: planecrash:collectItem, planecrash:startAnimation, planecrash:removeLootProp, planecrash:cleanup.
txw_presence
  • Purpose: Discord Rich Presence updater.
  • Dependencies: txw_lib.
  • Commands: none.
  • Exports: none.
  • Integration: no public API.
  • Note: Configure app ID/assets/invite in txw_presence/client.lua.
txw_repairtools
  • Purpose: Config-driven repair kits.
  • Dependencies: txw_lib.
  • Commands: none.
  • Exports: none.
  • Integration: custom_repairkits:server_syncTyres, custom_repairkits:server_syncBody, custom_repairkits:useKit, custom_repairkits:client_executeTyreRepair, custom_repairkits:client_executeBodyRepair.
txw_shipwrack
  • Purpose: Timed shipwreck event with crate loot.
  • Dependencies: txw_lib, ox_lib, ox_inventory.
  • Runtime usage: ox_target.
  • Commands: none.
  • Exports: none.
  • Integration: tarxwin_shipwreck:clientNotify, tarxwin_shipwreck:spawn, tarxwin_shipwreck:cleanup.

Export Summary

  • txw_backpack: openBackpack_<itemName>(data, slot).
  • txw_hazardzone: isWearingHazmat() -> boolean.
  • All other scripts (except txw_lib) expose no direct exports.

Database

  • txw_crafting/import.sql
ALTER TABLE `users` ADD COLUMN `crafting_level` INT(11) NOT NULL DEFAULT 0;
  • txw_immigration/sql.sql
ALTER TABLE `users` ADD COLUMN `entry_status` INT(11) NOT NULL DEFAULT 0;
  • Recommended table for txw_pedchanger
CREATE TABLE IF NOT EXISTS `player_ped` (
  `identifier` VARCHAR(80) NOT NULL,
  `charid` VARCHAR(80) NULL,
  `ped_data` LONGTEXT NOT NULL,
  PRIMARY KEY (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Documentation Client (Francais)

Documentation d integration pour tous les scripts TXW sauf txw_lib.

Démarrage Rapide

  • Gardez les noms de ressources exacts (txw_*).
  • Démarrez txw_lib avant toutes les autres ressources txw_*.
  • Démarrez d’abord les dépendances tierces (ox_inventory, ox_lib, ressource DB).
  • Exécutez les migrations SQL de la section « Base de données ».
  • Adaptez chaque config.lua.

Scripts

txw_IDFinder
  • Objectif: Inspecteur hash/matériau via la touche G.
  • Dépendances: txw_lib.
  • Commandes: +inspect_target, -inspect_target, inspect_addoffline <unsignedModel> <mat1> [mat2] ... (console serveur seulement).
  • Exports: aucun.
  • Intégration: inspect:requestOffline, inspect:responseOffline, inspect:report.
txw_afk
  • Objectif: Détection AFK, protection et kick optionnel.
  • Dépendances: txw_lib.
  • Commandes: aucune.
  • Exports: aucun.
  • Intégration: txw_afk:kickPlayer, txw_afk:statusHandler, txw_afk:setNeeds.
txw_airdrop
  • Objectif: Airdrops planifiés/manuels avec stashes temporaires.
  • Dépendances: txw_lib (manifest), ox_inventory (runtime).
  • Commandes: /airdrop <dropType>.
  • Exports: aucun.
  • Intégration: TarXWin_Airdrop:generateAirDrop(coords, dropTypeKey).
  • Note: Scheduler via SchedulerMode dans config.lua (interval/fixed).
txw_backpack
  • Objectif: Slots/poids de sac + logique d’équipement.
  • Dépendances: txw_lib, ox_inventory, ox_lib, oxmysql.
  • Optionnel: es_extended, qb-core.
  • Commandes: /backpack (ou Config.BackpackCommand).
  • Exports: openBackpack_<itemName>(data, slot) pour chaque clé dans Config.Backpacks.
  • Exports par défaut: openBackpack_small_bag, openBackpack_medium_pack, openBackpack_hiking_pack, openBackpack_military_pack.
  • Intégration: TarXWin_Backpack:recalculateWeight, TarXWin_Backpack:save.
  • Exemple ox_inventory:
['small_bag'] = {
  label = 'Backpack',
  stack = false,
  consume = 0,
  client = { export = 'txw_backpack.openBackpack_small_bag' }
}
txw_changeplate
  • Objectif: Changement de plaque et masquage/affichage fakeplate.
  • Dépendances: txw_lib, mysql-async.
  • Commandes: aucune.
  • Exports: aucun.
  • Callback: kennzeichen:checkPlate(newPlate) -> boolean.
  • Intégration: kennzeichen:updatePlate, kennzeichen:removeItem, kennzeichen:openMenu, kennzeichen:respawnVehicle, kennzeichen:hide, kennzeichen:show.
txw_containern
  • Objectif: Fouille de conteneurs avec cooldown et loot.
  • Dépendances: txw_lib, ox_lib, ox_inventory.
  • Commandes: aucune.
  • Exports: aucun.
  • Callback: tarxwin_dd:canSearch(key) -> canSearch, reasonSeconds.
  • Intégration: tarxwin_dd:finishSearch, tarxwin_dd:cancelSearch.
txw_crafting
  • Objectif: Crafting d’établi avec progression niveau/xp.
  • Dépendances: txw_lib.
  • Commandes: givecraftingxp <playerId> <amount>, setcraftingxp <playerId> <amount>.
  • Exports: aucun.
  • Callbacks: TarXWin_Crafting:getData, TarXWin_Crafting:getLevel.
  • Intégration: TarXWin_Crafting:craft, TarXWin_Crafting:itemCrafted, TarXWin_Crafting:craftStart.
  • Note: colonne DB users.crafting_level requise.
txw_deathbag
  • Objectif: Loot de mort via squelette + stash.
  • Dépendances: txw_lib, ox_inventory.
  • Runtime requis: baseevents:onPlayerDied.
  • Commandes: aucune.
  • Exports: aucun.
  • Intégration: deathLoot:server:playerSpawned, deathLoot:server:lootSkeleton, deathLoot:client:spawnSkeleton, deathLoot:client:removeSkeleton, deathLoot:client:openLootInventory.
txw_gather
  • Objectif: Récolte de ressources via hash outil/matériau.
  • Dépendances: txw_lib, ox_inventory, ox_lib.
  • Commandes: /checktool.
  • Exports: aucun.
  • Intégration: TarXWin_Gather:server:giveLoot, TarXWin_Gather:server:setObjectDepleted, TarXWin_Gather:server:fillEmptyItem.
  • Note: garder Config.tools et Config.types cohérents.
txw_gather/idfinder
  • Objectif: Variante IDFinder incluse dans le package gather.
  • Dépendances: aucune dans le manifest.
  • Commandes: +inspect_target, -inspect_target, inspect_addoffline ....
  • Exports: aucun.
  • Intégration: inspect:requestOffline, inspect:responseOffline, inspect:report.
txw_hazardzone
  • Objectif: Zones radioactives, combinaison hazmat, pilules anti-radiation.
  • Dépendances: txw_lib, ox_lib, xsound.
  • Runtime: callbacks ESX skin/skinchanger côté client.
  • Commandes: aucune.
  • Exports: isWearingHazmat() -> boolean.
  • Exemple:
local hasSuit = exports.txw_hazardzone:isWearingHazmat()
  • Intégration: hazard:client:toggleHazmatSkin, hazard:client:useRadiationPill.
txw_immigration
  • Objectif: Système d’entrée avec duty, tablette et questionnaire.
  • Dépendances: txw_lib.
  • Dépendance runtime: screenshot-basic.
  • Commandes: /gduty, /einreise, /watch.
  • Exports: aucun.
  • Intégration:
  • einreise:server:getEntryStatus
  • einreise:server:ringBell
  • einreise:server:fetchPlayers
  • einreise:server:performAction
  • einreise:server:startQuestionnaire
  • einreise:server:submitAnswers
  • einreise:server:letPlayerIn
  • einreise:server:logLocalScreenshot
  • einreise:server:uploadScreenshot
  • Note: colonne DB users.entry_status requise.
txw_looting
  • Objectif: Loot de peds/props morts avec logique cooldown.
  • Dépendances: txw_lib, ox_inventory, ox_lib.
  • Commandes: aucune.
  • Exports: aucun.
  • Callback: TarXWin_loot:checkCooldown(entityType, identifier, lootType) -> boolean.
  • Intégration: TarXWin_loot:requestPedLoot, TarXWin_loot:requestPropLoot, TarXWin_loot:closedLootStash, TarXWin_loot:openLootInventory, TarXWin_loot:showNotification, TarXWin_loot:deletePed.
txw_pedchanger
  • Objectif: UI de transformation ped (temporaire/permanente).
  • Dépendances: txw_lib, oxmysql.
  • Commandes: /<Config.Open.command> (défaut: pedmenu).
  • Exports: aucun.
  • Intégration: NeoPremiumPedChanger:server:getPlayers, NeoPremiumPedChanger:server:TempTransform, NeoPremiumPedChanger:server:PermTransform, NeoPremiumPedChanger:server:ResetPlayerTransform, NeoPremiumPedChanger:client:sendPlayers, NeoPremiumPedChanger:client:ApplyTransform, NeoPremiumPedChanger:client:ResetTransform.
  • Note: table player_ped requise.
txw_planecrash
  • Objectif: Événements crash avion (auto/manuels) avec loot.
  • Dépendances: txw_lib.
  • Commandes: /planecrash [lootType].
  • Exports: aucun.
  • Intégration: planecrash:collectItem, planecrash:startAnimation, planecrash:removeLootProp, planecrash:cleanup.
txw_presence
  • Objectif: Mise à jour Discord Rich Presence.
  • Dépendances: txw_lib.
  • Commandes: aucune.
  • Exports: aucun.
  • Intégration: pas d’API publique.
  • Note: configurer app ID/assets/invite dans txw_presence/client.lua.
txw_repairtools
  • Objectif: Kits de réparation pilotés par configuration.
  • Dépendances: txw_lib.
  • Commandes: aucune.
  • Exports: aucun.
  • Intégration: custom_repairkits:server_syncTyres, custom_repairkits:server_syncBody, custom_repairkits:useKit, custom_repairkits:client_executeTyreRepair, custom_repairkits:client_executeBodyRepair.
txw_shipwrack
  • Objectif: Événement épave navire avec loot en caisses.
  • Dépendances: txw_lib, ox_lib, ox_inventory.
  • Runtime: ox_target.
  • Commandes: aucune.
  • Exports: aucun.
  • Intégration: tarxwin_shipwreck:clientNotify, tarxwin_shipwreck:spawn, tarxwin_shipwreck:cleanup.

Résumé des Exports

  • txw_backpack: openBackpack_<itemName>(data, slot).
  • txw_hazardzone: isWearingHazmat() -> boolean.
  • Tous les autres scripts (hors txw_lib) n’exposent pas d’exports directs.

Base de Données

  • txw_crafting/import.sql
ALTER TABLE `users` ADD COLUMN `crafting_level` INT(11) NOT NULL DEFAULT 0;
  • txw_immigration/sql.sql
ALTER TABLE `users` ADD COLUMN `entry_status` INT(11) NOT NULL DEFAULT 0;
  • Table recommandée pour txw_pedchanger
CREATE TABLE IF NOT EXISTS `player_ped` (
  `identifier` VARCHAR(80) NOT NULL,
  `charid` VARCHAR(80) NULL,
  `ped_data` LONGTEXT NOT NULL,
  PRIMARY KEY (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;