Studios
Fishing Jobhouse-3.jpg

Commands & Exports

SoonFishing JobQbox
PAGE 06 OF 06  ·  TROUBLESHOOTING → COMMANDS & EXPORTSdocs.glitchstudios.dev
Browse docs

Commands#

Command Who What
/fishingadmin ACE command.fishingadmin (group.admin by default) Location editor and testing mode. Every action checks the ACE again on the server.
fishingstatus Server console only Today's trophy count, anglers casting in each water and every running order.

Admin menu#

From /fishingadmin you can move the fishmonger, the cleaning table, the boat spawn and the boat mooring to where you stand, add a fishing water around you or remove the one you stand in, and show outlines for every point and nearby water. Changes are saved to data/locations.json.

Testing mode is per admin. It skips progress bars and minimum times, makes orders one fish long (two on supply orders), makes bites come after 1.5 seconds and ignores level gates. Testing orders pay only for the fish they ask for and give no completion XP. Every toggle goes to the job log.

Client exports#

Export What
useRod ox_inventory client export for the three rods. Takes the rod out and casts.
IsFishing() true while the player has a rod out.

Server exports#

Export What
HasLicence(citizenid, kind) true when the character holds the 'fishing' or 'boat' licence.
SetLicence(citizenid, kind, on) Grants (on = true) or removes a licence and clears the cache. Returns false for an unknown kind.
inspectFish ox_inventory server export for fish_catch and fish_fillet. Shows the current freshness. Nothing is used up.

Events#

Event Side Arguments
glitch-fishingJob:server:orderStarted Server (local) src, contractId
glitch-fishingJob:server:orderClosed Server (local) src, contractId, status ('done' or 'cancelled')
glitch-fishingJob:client:tabletOpened Client (local) none

These are local events for onboarding and quest scripts. Listen with AddEventHandler.

State#

GlobalState.fishingLocations holds the current market points and waters, including edits from /fishingadmin.

Callbacks#

The tablet and the fishing loop talk to the server through lib.callback callbacks named glitch-fishingJob:* (cast, strike, land, sell, fillet, order and admin calls). They check tokens, rate limits and position on the server and are not a public API. The few net events (glitch-fishingJob:server:abort, :abortCast, :ready and :hello) are internal too.

Database tables#

Table What
fishing_contracts Orders and their saved state, for restart recovery
fishing_entitlements Every payout, keyed once (ukey), from unclaimed to paying to paid
fishing_licences Fishing and boat licences per citizenid
fishing_quotas Daily trophy counts per character and server-wide

The resource also reads player_vehicles to find a crew car's owner, and writes the trunk column of a garaged crew car to take order fish out of it when the order ends.