v1.0.2
We've just pushed a new update introducing external integration hooks, inventory-agnostic weapon handling, and several stability fixes across jobs and UI.
Changes
New Integration Hooks (External Resources)
Config.OnClientVehicleSpawned(entity, model, netId)— client hook fired after every job vehicle spawn (anticheat whitelisting, fuel, keys, etc.)Config.OnServerVehicleSpawned(entity, owner, modelHash, plate)— server hook for anticheat / statebag / tracker integrationsConfig.RequiredXPFormula— formula-based XP requirements replace the table when definedConfig.RewardMultiplierResolver(source, identifier, jobId, baseAmount)— per-player reward multiplier hook (e.g. global XP bonuses)New event
tw-litejobpack:xpGained— fires after any XP award with source/identifier/jobId/amount/level/leveledUpNew exports:
AddGlobalXP,GetJobPlayerCount,GetAllJobPlayerCountsNew external pay-multiplier API with TTL:
SetJobPayMultiplier,GetJobPayMultiplier,ClearJobPayMultiplier,GetAllJobPayMultipliers
Inventory-Agnostic Helpers
New
GetItemCount(src, item)— works across ox, qs, codem, tgiann, ps, core, origen, qb, esxNew
IsItemBasedWeaponInventory()helper used by weapon-based jobsFixed
addItemsignatures for ox_inventory (passes info metadata), core_inventory, and origen_inventoryExtended
removeItemwith explicit paths for ps-inventory, core_inventory, origen_inventory
Hunting
Full server-side weapon handling for ox/core inventories (weapon + ammo items, replenish loop, cleanup on reset/end/resource-stop)
Friendly-fire protection now blocks firing at vehicles
Fixed
onContinue: properly cleans up animals/blips and re-selects the previous areacore_inventorydetection added alongside ox_inventory
Newspaper
Added
onContinueflow + serverserver:newspaper:continueJob— automatically picks the next eligible route (level/daily check) without restarting the jobAdded
core_inventorysupport for item-based weapon deliveryRemoved
noContinueflag on finish modal
Cleanup
Truck deposit switched from SphereZone to EntityTarget (proper TargetSystem integration)
Fixed truck delivery gate: only triggers when truck is full (>= maxCapacity), previously fired as soon as any bag was loaded
TargetSystem-aware notifications (new
hintCollectBinsTarget,bagPickedUpTarget,areaSelectedTargetlocale keys)Added
onContinuewith state/vehicle/area preservation
Dogwalking
Unified catch-interaction for both TargetSystem and default input (removes duplicate paths)
Reset runaway state on dog claim
Added
onContinuewith full entity cleanup (dog, managed dogs, leashes, poop, owner ped, ropes) and carry-over for bicycle/tool/payment
Diving
Fixed
pcallswallowing animation/progress errors — split anim/progress from post-processingActionProgressnow forwards extra options (e.g.allowSwimming) to ox_lib progress barRequireSelectedJobenforced on sell menu
Fishing
RequireSelectedJobenforced on both shop and sell menus
Forklift
Added
onContinue: cleans crates/belt/shelf/carry entities while preserving forklift ownership & totalsLocalized "Deliver crates to belt ({current}/{total})" progress label
Warehouse
Added
onContinue: deletes boxes/pallets/coop entities, preserves forklift/truck progress counters
Clothes Cabin
Fixed
NetworkGetNetworkIdFromEntitywarning spam for local (non-networked) cabin entities viaNetworkGetEntityIsNetworkedguardsFixed freeze/reposition race after clothes restore (qb-clothing/illenium skin reload can teleport or re-freeze the ped)
Re-fetch ped handle after external skin reload and reposition at cabin stop point before walking out
Tool Component
Replaced all hard-coded English error strings with localized keys (
notify.toolActionInProgress,toolCooldownActive,cannotTakeToolInVehicle,alreadyHoldingTool,noToolInTrunk,toolNotAssigned,toolNotYours,toolNotInTrunk,toolActionCancelled,toolAttachFailed,noJobCallbacks,serverDeniedTool,noToolInHand,noToolOnBelt,toolEntityNotFound,noActiveTool,noToolToReturn) — added to all 8 languages
Powerwash
Lazy TargetSystem scope creation (removed eager init on start)
Collectables
New
SafeDeleteEntityhelper — waits for network control, disables collision/freeze/visibility as fallback → prevents orphaned ghost vehicles
Truck Driver
Track attached pallet/box netIds; server-side cleanup on truck despawn prevents orphaned floating props when the truck despawns far from players (
FindFirstObjectiterator was client-local only)New export
RegisterTruckAttachedEntity
UI / DrawText
Flicker-safe DrawText: SHOW calls are payload-deduplicated (no NUI spam on Wait(0) loops); HIDE is deferred 120ms with a sequence token so rapid re-shows cancel the pending hide (absorbs frame-boundary oscillation at distance thresholds)
Job Center Carousel (HTML)
Fixed background video loading issues under rapid carousel scrolling: removed listener accumulation, removed redundant double-load (Vue
:srcauto-load was fighting manualvid.load()), silent handling of expected abort/error events on src change — no more log spam and stale "blank video" state
Changed Files
All files
Last updated

