Esc to clear, Enter to open the best match, click an export to open it in its page
Get Started

Coming from QBCore, ESX or ox

WHIP is a framework of its own, with no bridge from QBCore, ESX or ox: a resource written for one of them won't run unchanged. Porting a small job means rewriting its glue code (about a day), and most of what it did by hand becomes one WHIP call.

Keep, replace, remove

ResourceWith WHIP
oxmysqlKeep: WHIP uses it. Ensure it before WHIP's resources
qb-core, es_extended, qbx_core, ox_coreRemove: one framework at a time. The setup report flags one that's running
ox_inventory, qb-inventoryRemove: WHIP has its own (F2)
ox_target, qb-targetReplace with AddAction
ox_libIts helpers (math, tables, lib.waitFor) are fine. For anything on screen, use WHIP's UI library: WHIP keeps one screen open at a time, and ox_lib's screens don't know about WHIP's
Garages, keys, fuel, banking, doorlock, housing, shops, multicharacter, spawn, HUDRemove: each is part of WHIP. Fuel is whip_fuel
pma-voice, mumble-voipRemove if you use whip_voice

Calls you know

QBCore / ESX / oxWHIP
GetCoreObject(), getSharedObject()Nothing to fetch: add dependency 'whip_core' and @whip_core/lib/satellite.lua to the manifest, then call Whip.core:… inside Whip.register and exports.whip_core:… anywhere else
QBCore.Functions.GetPlayer(src), ESX.GetPlayerFromId(src)GetPlayer(source): a plain table with no methods; act through exports
PlayerData.citizenid, xPlayer.identifierplayer.charId (a number; save this one)
PlayerData.job, xPlayer.jobOn duty: GetPlayerJob(source) (nil off duty). Has the job at all: GetPlayerRole(source, 'police')
PlayerData.gangNo gangs: make a gang a job with EnsureJob
PlayerData.metadataSetPlayerFlag or SetPlayerMetadata
AddMoney, xPlayer.addMoneyPayPlayer (cash, or method = 'bank')
RemoveMoney, xPlayer.removeMoneyChargePlayer, which returns a receipt for RefundPlayer
Cash as a number on the playerCash is an item (banknotes): it can be dropped, stolen or stashed
shared/items.lua, ox_inventory/data/items.luaRegisterItem in your resource, or /whip → Economy → Items
CreateUseableItem, ESX.RegisterUsableItemRegisterUseHandler; pass a table for a timed use
AddItem / RemoveItemAddItem, RemoveItem, GetItemCount
ox_inventory:RegisterStashEnsureContainer
RegisterNetEvent on the serverSecureEvent (side by side)
CreateCallback / TriggerCallback, lib.callbackSecureCallback / Callback: return the answer, no cb
qb-target:AddBoxZone, ox_target:addSphereZone, addLocalEntityAddAction with at = { coords }, { entity }, { model } or { vehiclePart }. job = 'police' becomes require = { job = 'police' }; distance becomes reach
qb-menu, lib.registerContextNo list menu: use options on a prompt (menus) or a select field in Input
QBCore:Notify, lib.notifyNotifyPlayer (server), Notify (client), or return false, 'why' from a SecureEvent
Progressbar, lib.progressBarProgress, on the server for anything handed out at the end
lib.skillCheck, lib.inputDialog, lib.alertDialogSkillCheck, Input, Alert / Confirm
lib.showTextUI, DrawText3DShowText (client), ShowPlayerText (server); usually a prompt says it already
PolyZone, lib.zonesZones (EnsureZone)
qb-vehiclekeys, SetFuel, qb-garagesGiveVehicleKey; the 'fuel' vehicle stat (whip_fuel); Garages; SpawnTempVehicle for a job car
SetVehicleProperties(veh, props)SetVehicleProperties({ entity = veh }, props) on the client: a bare number is a vehicleId. To keep the look, SetVehicleAppearance on the server
AddBlipForCoord + SetBlipRouteShowBlip from the server, with route = true
qb-doorlock, ox_doorlockEnsureDoors (Doors)
Lang:t(), localesNo locale system: your resource's text is your own

What will surprise you

A qb delivery job, call by call

The qb job doesThe WHIP version does
A job in shared/jobs.luaWhip.core:EnsureJob('delivery', { … }) in Whip.register
qb-target box at the depot, job = 'delivery'AddAction({ at = { coords = DEPOT }, require = { job = 'delivery', onDuty = true }, … })
Van deposit: RemoveMoney('bank', 500)ChargePlayer(source, 500, { method = 'bank' }); keep the receipt
CreateVehicle + vehiclekeys + SetFuelSpawnTempVehicle: the driver gets a key, and the van goes when you despawn it, after despawnAfter, or when your resource stops
Packages: AddItem + ItemBoxStoreGive into the van's boot, or AddItem
Blip and route to the drop-offShowBlip({ people = { source } }, 'drop', { coords = DROP, route = true })
Progressbar, then TriggerServerEvent('delivery:pay')A prompt at the door; a SecureEvent with near runs the server's Progress, takes the package and pays. near closes the classic exploit of firing the pay event from anywhere
Pay: AddMoney('cash', 120)PayPlayer(source, 120, { reason = 'Delivery' })
Van back: refund the depositRefundPlayer(receipt) within 30 minutes; after that PayPlayer

The whole job is in whip_core/docs/examples/whip_delivery_example, including what happens when the driver logs out or the van is taken back. Copy it into your resources and ensure it.