concept_flexhour)Watches for FiveM with boutique sales, negotiation, wrist fitting, services, serials, limited editions and counterfeits. Use this guide with the release notes for your installed version.
| Resource | Why |
|---|---|
ox_lib |
Menus, dialogs, callbacks and locales |
oxmysql |
Serials, wrist records, fits and vitrines. FlexHour creates its tables at startup. |
| Concept Bridge | Framework, inventory, target and notifications. A separate GPL-3.0 resource, not included in this package. |
| An inventory with per-item metadata | The whole watch build lives in its item's metadata. ox_inventory is tested in game. |
| A target resource | ox_target is tested. Without one, set Config.Interaction.mode = 'key' for [E] prompts. |
The ESX built-in inventory is unsupported. It has no item metadata or slots, and the server console says so at startup.
Download the asset from the Cfx.re Portal (Granted Assets) with the account that bought it, and keep the folder named concept_flexhour. The server must run under the same Cfx.re account's license key, or the encrypted files will not load. The asset includes the HTML/JS interface and built models, so installation needs no frontend or model build.
Start the framework, inventory and target before Concept Bridge, and the bridge before FlexHour:
ensure oxmysql
ensure ox_lib
# Start your framework here: ox_core, qbx_core, qb-core or es_extended.
ensure ox_inventory
ensure ox_target
ensure concept_bridge
ensure concept_flexhour
# Optional boutique map, installed as flexhour_boutique:
ensure flexhour_boutique
add_ace group.admin flexhour.admin allow
setr ox:locale en
Use your own inventory and target resource names when they differ. Keep Config.AdminOpenToAll = false and testing/debug switches disabled before players join. With AdminOpenToAll = true, every player is a FlexHour admin.
After the first start, read the server console:
[flexhour] concept_bridge means the bridge is not running or lacks a call FlexHour needs. Start it before FlexHour, or update it to its current release.items missing from ... line lists the items you have not registered yet.Every watch model is its own item named fh_, for example fh_rolux_classic. Its build (case metal, dial, bezel, ice, serial, engraving and condition) lives in the item's metadata. FlexHour also needs flexhour_box and flexhour_replica_kit, for 25 items in total.
| Inventory | Items | Status |
|---|---|---|
| ox_inventory | Merge docs/ox_items.lua into ox_inventory/data/items.lua. It includes all watches, the box and the replica kit. |
Recommended, tested in game |
| qb-inventory, ps-, jpr-, lj-, qs-, tgiann-, origen-, codem-, core-, one-inventory | Merge docs/qb_items.lua into qb-core/shared/items.lua or the inventory's item list. FlexHour registers the items as usable at startup. |
Must keep per-item metadata (info). Covered by automated tests, not yet played in game. |
| Other inventories | Register the same item names in that inventory's format | Works as far as the bridge's module for that inventory goes |
| ESX built-in inventory | None | Unsupported |
The ox_inventory support items look like this:
['flexhour_box'] = {
label = 'FlexHour Box', weight = 450,
stack = false, close = true,
description = 'Something shiny inside.',
client = { export = 'flexhour.useBox' },
},
['flexhour_replica_kit'] = {
label = 'Replica Kit', weight = 900,
stack = true, close = true,
description = 'Blank case, cheap movement, dial stencils, gold plating. Not from any boutique.',
},
The snippets call flexhour.useBox and flexhour.useWatch. The manifest's provide 'flexhour' line and FlexHour's export alias make those names reach concept_flexhour, so keep both the folder name and that line.
ox_inventory shows the model name as the label and the build as the description. qb-style inventories show the model name and picture only, because they do not read labels or descriptions from metadata. The build is still in the item's info and in the inspect view (I while worn).
Copy web/img/*.png and web/img/items/*.png into the inventory's image directory, for example ox_inventory/web/images/. web/img/items/ holds 78 icons: one per watch model and case material, plus one per limited edition. Keep the filenames, because each watch picks its icon through metadata.image. Restart the inventory and its dependents in the normal startup order after changing item definitions.
If an inventory module lacks a call FlexHour needs, such as SetMetadata or GetPlayerInventory, the affected services refuse the request and refund the player. Verify item use, purchases, services and wearing with your actual provider.
Config.PayAccounts lists the accounts buyers pay from, tried in order. It ships as { 'cash', 'bank' }.
| Framework | Accounts | Notes |
|---|---|---|
| ESX | cash, bank |
The bridge maps cash to ESX's money. Needs an inventory with metadata. |
| QBCore | cash, bank |
A wearer in last stand counts as down for a robbery. |
| Qbox | cash, bank |
Same as QBCore |
| ox_core | cash, bank |
Cash is the money item; bank is the character's account. |
| Standalone | Whatever your bridge module offers | The player's license is the owner ID, because there are no characters. |
Admins need the ACE named by Config.AdminAce, default flexhour.admin. To check the setup, join as an admin, use /fhgive to get a boxed watch, use the box to unbox it, use the watch to wear it, then adjust it with /watchfit.
| Command | Purpose |
|---|---|
/fhclerk [label] |
Without a label, list placed clerks to move, rename, set a waypoint or remove. With a label, place a new clerk with the ghost. |
/fhstand |
Place a boutique vitrine where you stand |
/fhfake [dealer|workshop|fence] |
Place or manage the replica dealer, workbench and fence |
/fhgive [id] |
Give a boxed watch, choosing model, case, dial and ice |
/fhwrist |
Open the wrist gizmo; G saves the fit as the server default for your ped model |
/fhmodels |
List catalog models that are not streamed |
Do not enable open-to-all admin access as a production workaround.
Placed clerks (data/clerks.json) and counterfeit locations (data/fakes.json) are resource data files. Keep the data directory writable and preserve these files during updates. Vitrine state, serials, fits and kept-wrist records live in MySQL.
The shipped clerk stands behind the counter of the separate flexhour_boutique map. Its repository is concept_flexhour_mlo, but the installed folder must be flexhour_boutique; start it after FlexHour.
Without the map, open /fhclerk and choose "Put the config.lua clerks back" to return the clerk to the Config.Clerks spot at Vangelico, Rockford Hills. You can also add clerks in config.lua, or run /fhclerk My Boutique and aim the ghost where the box should stand on a counter. The clerk stands behind it.
Vitrines belong to the boutique. An admin places one with /fhstand, then stocks each cushion from its menu. Vitrines sell at their ticket price with unlimited stock, and nobody is paid. A vitrine within Config.Stands.clerkRange (30 m) of a clerk can be haggled over with that clerk through "Ask the clerk". Players cannot own vitrines in this version.
config.lua contains owner settings. shared/defaults.lua fills every setting config.lua does not specify, with its shipped value and an explanation; put overrides in config.lua. A list setting, such as Config.PayAccounts or Config.Clerks, is taken whole from config.lua. shared/catalog.lua defines brands, tiers, bases, prices, materials, dials, straps and editions.
| Setting | Purpose |
|---|---|
Config.PayAccounts |
Purchase accounts, tried in order |
Config.Delivery |
Boxed or direct item delivery |
Config.Interaction |
Target or proximity-key interactions |
Config.Clerks, Config.Stands |
Clerks, vitrines, stock and price bounds |
Config.Negotiate, Config.Services |
Negotiation and service pricing |
Config.Wear |
Wearing, fitting, scaling, condition, GTA accessories and robbery |
Config.Limited |
Limited-model availability caps |
Config.Fakes |
Dealer, workbench, fence, pricing and alerts |
config.lua, shared/catalog.lua, server/riddles.lua and the locale files stay readable under Cfx escrow, so you can configure, reprice and translate. Using an existing catalog part needs no model build. A new watch model or part needs the model sources, which are not part of this package.
Config.Services.icePerLevel (shipped 0.40) of the case price.list × (1 − maxDiscount). The tier caps in shared/catalog.lua are 10% (Budget), 15% (Mid), 22% (Luxury) and 25% (Mythic).Config.Stands.priceBounds times the list price, shipped as 0.70 to 1.60.config.lua.Everything players read comes from locales/.json. English (en) and Hungarian (hu) are included. FlexHour uses ox_lib's language, so set it with setr ox:locale "hu" in the server config.
The locale files cover notifications, menus, the shop page (ui_*), negotiation cards (card_*, written as Label | Text), clerk tells (tell_*) and what clerks, the fence and the dealer say (neg_*). A neg_* entry holds a few variants separated by |, and FlexHour picks one at random.
To add a language, copy en.json to .json and translate the values. Riddles are per language in server/riddles.lua. Watch, material and strap names are product names in shared/catalog.lua.
| Command/key | Purpose |
|---|---|
/watch |
Put on or take off a watch, with a picker if you own several |
/watchhand |
Wear the watch on the other wrist |
/watchfit |
Fit the watch on your wrist with a synced drag gizmo |
I |
Inspect the worn watch: live time, serial, engraving and condition |
/flex, /flex2 |
Brief or looping flex emote; /flex2 again or X stops the loop |
/stealwatch |
Rob a nearby worn watch when the robbery rules allow it |
/fhhelp |
List the commands in chat |
Players use the clerk to buy, try on, negotiate and order services: strap swaps, replating, adding ice, engraving, polishing and serial authentication. The clerk and the fence only list watches in the player's pockets, so take a watch off before selling or servicing it.
FlexHour measures each ped's forearm and ships fits for the freemode characters. If a watch sits slightly wrong on a custom ped, wear it and run /watchfit:
TAB switches to rotate, and to resize when Config.Wear.allowScale is on.H moves the watch to the other wrist and R resets it.ENTER saves the fit for everyone to see. BACKSPACE cancels.Config.Wear.playerAdjust = false stops players adjusting their own fit. Admins can press G in the gizmo, or use /fhwrist, to save the fit as the server default for that ped model.
The shipped Config.Wear.keepWorn = false keeps a worn watch as an inventory item in its slot. Your inventory's death, confiscation, search and robbery behavior still applies.
With keepWorn = true, wearing removes the inventory item and FlexHour stores the watch in its flexhour_wrist table. Death wipes, admin clears, confiscations, searches, drops, stashes and trunks cannot reach it. Taking it off returns an item; if there is no room, the watch stays worn. FlexHour's own wrist robbery can still transfer it. A carried, unworn watch is an item like any other.
Switching back to false on a server that ran with true returns each worn watch to its character's inventory at the next login, or at the first login after the character makes room.
Inventories do not write every change to the database immediately, so a hard crash sets them back a few minutes. FlexHour's wrist records would then disagree with the inventory:
| Inventory | After a crash |
|---|---|
| ox_inventory | Exact, except a hard kill mid-handover (below). FlexHour tracks ox_inventory's saves (every five minutes, when a player leaves and on a txAdmin shutdown) and undoes unsaved put-ons and take-offs at that character's next login. |
| qb-inventory, ps-, jpr-, lj-inventory | Exact, except a hard kill mid-handover (below). FlexHour asks the inventory to save the player at every put-on and take-off. |
| Any other | Not guaranteed. A watch put on or taken off in the minutes before a hard crash can end up duplicated or lost, as any item on that inventory can. The console says so at startup. |
Shut the server down through txAdmin, with a scheduled restart or its stop button, rather than closing the window. Only then does ox_inventory save everything; FlexHour treats any other ending as a crash. A hard kill in the milliseconds between two steps of one handover can still leave that watch on the wrong side; FlexHour orders each step so the smaller loss wins and corrects the wrist at the next login. Back up the database before changing wearing mode and test recovery with your actual stack.
GTA's clothing menus can put a watch (prop slot 6, left wrist) or a bracelet (slot 7, right wrist) on a character. Config.Wear.gameWatch decides what happens to them:
| Value | Effect |
|---|---|
hide (default) |
While a FlexHour watch is on a wrist, FlexHour removes the GTA accessory on that wrist and restores it when the watch comes off. |
block |
FlexHour keeps the slots in gameWatchBlock empty, whichever clothing resource you run. |
off |
FlexHour leaves them alone, so two watches on one arm are possible. |
With block, consider removing the watch category from your clothing menu so players do not see an option that does nothing.
Config.Wear.rob.enabled ships true. The robber uses the target option on the wearer, the [E] prompt in key mode or /stealwatch, and the same watch with the same serial moves to the robber's pockets. Players must be nearby in the same routing bucket; by default the wearer must be dead or down, have their hands up or be cuffed. The shipped animation takes six seconds, with ten minutes between a robber's attempts and thirty minutes of victim protection.
Change these rules in Config.Wear.rob, or set enabled = false. The server checks state, timing, distance, cooldown and item capacity. Hands-up and cuff detection also depends on the wearer's client and your other scripts' state bags and animations, so verify the integration.
An optional client minigame can be supplied in the same configuration table:
minigame = function(victim)
return lib.skillCheck({ 'easy', 'easy', 'medium' }, { 'w', 'a', 's', 'd' }) == true
end,
minigameSeconds = 45,
This interaction does not replace server checks. Use flexhour:watchRobbed for your own police dispatch or logging integration.
FH.Editions and FH.EditionOrder define fixed, numbered builds and caps. Refer only to available catalog parts and provide the matching inventory icon. Services may change ice, engraving and condition; FlexHour refuses changes that would replace an edition's fixed parts, such as strap swaps or replating.
A back-alley dealer sells replica kits. At the hidden workbench, players print the dial, set the hands and polish the plating in a three-step minigame. Better results leave fewer tells: a dial printed a few degrees off, drifting time, a stuttering or stopped seconds hand, fast wear and gold plating that rubs through to steel. A replica looks genuine in the inventory, but clerk authentication exposes it and boutiques will not service it.
The fence buys replicas by quality and genuine pieces cheaply, after a haggle that reverses the boutique's negotiation minigame (Config.Fakes.fence.haggle). Some fence sales trigger Config.Fakes.onAlert and the flexhour:fenceAlert event. Configure positions and prices through Config.Fakes and /fhfake.
Use trusted server exports for rewards:
local given = exports['concept_flexhour']:GiveWatch(src, {
base = 'rolux_oyster', material = 'rose_gold',
dial = 'blue', strap = 'hlink', iced = 1,
}, true) -- boxed; handle false before treating the reward as delivered
local released, serial = exports['concept_flexhour']:ReleaseWrist(characterIdentifier)
ReleaseWrist is an optional character-deletion or ban hook for kept-wrist mode. A kept watch belongs to no inventory, so without this call a deleted character's watch, and any limited piece it holds, stays in flexhour_wrist forever. The call destroys that character's kept watch, removes it from the serial registry and frees its limited allocation, so the boutique can sell that piece and number again.
It takes the framework character identifier as Concept Bridge reports it (citizenid, charid or the ESX identifier; the owner column of flexhour_wrist shows the format on your server) or an online player's server ID. It returns true, serial when it releases a watch and false when that wrist was empty. It does not remove watches carried in inventories; the framework deletes those itself.
Server notifications keep the flexhour: prefix:
| Event | Arguments |
|---|---|
flexhour:purchased |
src, build, price, source ('clerk' or 'stand') |
flexhour:wristReleased |
owner, serial, build |
flexhour:watchRobbed |
robber, victim, serial, build |
flexhour:fenceAlert |
src, coords, build |
flexhour:suspect |
src, kind, detail |
Listen with server-side AddEventHandler. These are notifications, not client requests to grant inventory or money. Check export results and your own permissions.
flexhour:suspect reports:
'haggle' or 'replica' with the streak length as detail, every Config.MinigameStreak (shipped 5) perfect minigame scores in a row.'duplicate' with the serial as detail, when a copy of a watch somebody wears appears.'watch_twice' with the serial as detail, when a robbery could not be saved and the item could not be taken back from the robber. Check that watch by hand.Config.MinigameToleranceMs (shipped 120 ms) plus half the player's ping, because a tighter window punishes honest players on bad connections. A bot that presses on time therefore looks like a skilled player; flexhour:suspect reports runs of perfect scores for you to review.| Symptom | Fix |
|---|---|
[flexhour] concept_bridge error at startup |
Start the bridge before FlexHour, and providers before the bridge. Update the bridge to its current release. |
items missing from ... at startup |
Register the listed item names exactly. |
ESX's built-in inventory cannot hold a watch |
Install an inventory with per-item metadata. |
No such export useBox in resource flexhour |
Keep the folder named concept_flexhour and keep provide 'flexhour' in the manifest. |
model "fh_…" is not streamed in F8 |
Run /fhmodels as an admin and copy stream/ again from the release ZIP. |
| The watch floats next to the hand | Use /watchfit; an admin can save a ped default with G or /fhwrist. |
| The watch leaves the inventory when worn | That is Config.Wear.keepWorn = true. /watch takes it off and returns the item. |
| The clerk or fence does not list a watch | It is on the wrist. Take it off first. |
| Money is not taken or paid | Check that Config.PayAccounts uses account names your framework exposes through Concept Bridge. |
| Performance questions | Compare resmon at the same location with no watch, a worn watch, the boutique and nearby wearers. Release ZIPs exclude benchmark tools; do not assume timings from another server. |
Back up the database, configuration, item definitions, images and live placements before updates, and read CHANGELOG.md. Preserve the commercial license and notices; Concept Bridge is a separate GPL dependency. Include resource and provider versions, the failing action and console errors in support requests.
We aim to reply on Discord within 24 hours on business days.
Need help with setup? Join Discord or support@conceptstudio.store.