[REL/QB] Wasabi Ambulance – ESX to QBCore ox/qb inv, okok, qb-phone,

3 replies2,398 views1y ago
Original post · 1y ago#1
Hey team 👋
I did this port for fun in about ~1 hour. I don’t guarantee it’s error-free, but I tried to keep it clean to learn and share.
Original source (ESX):

— it wasn’t QB, so I converted it myself to QBCore.
https://highleaks.com/threads/wasabi-ambulance-job-fixed.16166/

[img]/public/images/logo.png[/img]




[HEADING=2]Download[/HEADING]
https://drive.google.com/file/d/1TS-nZ9QbuUkUgdhoBr1eIsdh6wv4bwhz/view?usp=drive_link


[HEADING=2]What’s included (short version)[/HEADING]

  • [B]Full QBCore: player API, callbacks, commands, usable items.
    [/B]
  • [B]Inventory choice: ox_inventory or qb-inventory (toggle in config.lua).
    [/B]
  • [B]Billing: okokBilling or qb-banking / qb-management (your choice).
    [/B]
  • [B]Phone (distress): qb-phone → sends an email to EMS.
    [/B]
  • [B]Outfits: qb-clothing (or fivem-appearance, if you prefer).
    [/B]
  • [B]Target: wrapper compatible with qtarget and qb-target (auto-detects).
    [/B]
  • [B]UI/Notify: okokTextUI / okokNotify (falls back to ox_lib).
    [/B]
  • [B]Locales: FR/EN (set Config.Locale), centralized strings.
    [/B]
  • [B]EMS Job Menu: F7 by default (also /emsJobMenu).
    [/B]
  • [B]Props: stretcher & medical bag working (stream/config OK).
    [/B]
  • [B]Self-test: /emsSelfTest to validate ox_lib & UI/Notify.
    [/B]
  • [B]Database: no ESX column (users.is_dead) — uses QB metadata.
    (No SQL changes needed; just register items in your chosen inventory.)
    [/B]


[HEADING=2]Dependencies[/HEADING]

  • [B]Required: qb-core, ox_lib, oxmysql, one of qtarget or qb-target, one of ox_inventory or qb-inventory.
    [/B]
  • [B]Optional/Recommended: okokNotify, okokTextUI, qb-clothing (or fivem-appearance), okokBilling or qb-banking/qb-management, qb-phone.
    (If wasabi_carlock runs, EMS vehicle keys are handled — otherwise it’s silently ignored.)
    [/B]


[HEADING=2]Quick install[/HEADING]

[LIST=1]
[*]
[B]Start order (recommended):
ox_lib → qb-core → (qtarget or qb-target) → (ox_inventory or qb-inventory) → qb-clothing → okokNotify/okokTextUI → qb-banking/qb-management → this resource.
[/B]
[*][B]Items + images:
  • [B]ox_inventory: add items from INSTALL_QB/items_ox.lua into ox_inventory/data/items.lua + copy PNGs to ox_inventory/web/images.
    [/B]
  • [B]qb-inventory: add INSTALL_QB/items_qb.lua into qb-core/shared/items.lua + copy PNGs to qb-inventory/html/images.
    [/B]
[/B]
[*][B]Config(config.lua):
  • [B]Config.Inventory = 'ox' or 'qb'
    [/B]
  • [B]Config.billingSystem = 'okok' or 'qb'
    [/B]
  • [B]Config.skinScript = 'qb' or 'appearance'
    [/B]
  • [B]Config.Locale = 'fr' or 'en'
    [/B]
[/B]
[*]
[B]Run the resource → F7 opens the EMS menu.
Bonus: run /emsSelfTest to check ox_lib & UI/Notify availability.
[/B]
[/LIST]

[HEADING=2][/HEADING]

Have fun, and feel free to send feedback/PRs 🚑💙

3 replies

1y ago#2
[HEADING=2][RELEASE] wasabi_ambulance_qb — QBCore Update Patch V2 [/HEADING]

[URL='https://drive.google.com/file/d/1fy4XoGXjhYzou_2qTx7ih1ev0bpfMpUN/view?usp=drive_link']Google Drive - Patch V2 with script[/URL]

[HEADING=2]What’s new (short & precise)[/HEADING]

  • [B]Fixed /revive command (correct QBCore signature).[/B]
  • [B]Corrected AddMoney('cash', reward, ...) and Player → xPlayer references.[/B]
  • [B]Inventory wrappers for OX/QB (GetItemCount/RemoveItem/AddItem): works with ox_inventory or qb-inventory.[/B]
  • [B]Automatic billing on revive/heal/sedate: okokBilling or qb-banking/qb-management.[/B]
  • [B]Stronger server-side checks: job + proximity (~3.5 m).[/B]
  • [B]Unified target support: qtarget or qb-target.[/B]
  • [B]okokTextUI hide/close patch; cleaned fxmanifest.[/B]
  • [B]Added README, complete locales, kept provides { 'qb-ambulancejob' }.[/B]


[HEADING=2]Dependencies[/HEADING]

Required:


  • [B]qb-core, ox_lib, oxmysql[/B]


Choose-one (optional but still required by group):


  • [B]Inventory: ox_inventory or qb-inventory[/B]
  • [B]Target: qtarget or qb-target[/B]
  • [B]Billing: okokBilling or qb-banking / qb-management[/B]
  • [B]Clothing: qb-clothing or fivem-appearance[/B]



⚠️ “Optional” means you must have at least one from each group (e.g., ox_inventory or qb-inventory).


[HEADING=2]Installation & Usage[/HEADING]

[LIST=1]
[*][B]Place wasabi_ambulance_qb in resources/[jobs]/.[/B]
[*][B]Start oxmysql, ox_lib, then this script.[/B]
[*][B]Configure config.lua:
  • [B]Config.Inventory = 'ox' or 'qb'[/B]
  • [B]Config.Billing.system = 'okok' or 'qb'[/B]
  • [B]Config.Locale = 'fr' | 'en', Config.skinScript = 'qb' | 'appearance'[/B]
[/B]
[*][B]Add items via INSTALL First QB/ (matching your inventory).[/B]
[*][B]Admin commands: /revive [id], /reviveall.
Billing triggers automatically per your configuration.
okokTextUI/okokNotify are auto-detected if running.
[/B]
[/LIST]
0
1y ago#3
nopixeliloveyou, post: 409360, member: 96871

[HEADING=2][RELEASE] wasabi_ambulance_qb — QBCore Update Patch V2 [/HEADING]

[URL='https://drive.google.com/file/d/1fy4XoGXjhYzou_2qTx7ih1ev0bpfMpUN/view?usp=drive_link']Google Drive - Patch V2 with script[/URL]

[HEADING=2]What’s new (short & precise)[/HEADING]

  • [B]Fixed /revive command (correct QBCore signature).[/B]
  • [B]Corrected AddMoney('cash', reward, ...) and Player → xPlayer references.[/B]
  • [B]Inventory wrappers for OX/QB (GetItemCount/RemoveItem/AddItem): works with ox_inventory or qb-inventory.[/B]
  • [B]Automatic billing on revive/heal/sedate: okokBilling or qb-banking/qb-management.[/B]
  • [B]Stronger server-side checks: job + proximity (~3.5 m).[/B]
  • [B]Unified target support: qtarget or qb-target.[/B]
  • [B]okokTextUI hide/close patch; cleaned fxmanifest.[/B]
  • [B]Added README, complete locales, kept provides { 'qb-ambulancejob' }.[/B]


[HEADING=2]Dependencies[/HEADING]

Required:


  • [B]qb-core, ox_lib, oxmysql[/B]


Choose-one (optional but still required by group):


  • [B]Inventory: ox_inventory or qb-inventory[/B]
  • [B]Target: qtarget or qb-target[/B]
  • [B]Billing: okokBilling or qb-banking / qb-management[/B]
  • [B]Clothing: qb-clothing or fivem-appearance[/B]




[HEADING=2]Installation & Usage[/HEADING]

[LIST=1]
[*][B]Place wasabi_ambulance_qb in resources/[jobs]/.[/B]
[*][B]Start oxmysql, ox_lib, then this script.[/B]
[*][B]Configure config.lua:
  • [B]Config.Inventory = 'ox' or 'qb'[/B]
  • [B]Config.Billing.system = 'okok' or 'qb'[/B]
  • [B]Config.Locale = 'fr' | 'en', Config.skinScript = 'qb' | 'appearance'[/B]
[/B]
[*][B]Add items via INSTALL First QB/ (matching your inventory).[/B]
[*][B]Admin commands: /revive [id], /reviveall.
Billing triggers automatically per your configuration.
okokTextUI/okokNotify are auto-detected if running.
[/B]
[/LIST]

this is awesome! do you have the police?
0
1y ago#4
оk ok ok ok ok
0

Sign in to reply

Join the discussion — it takes less than a minute.