wasvendel scripts

wasvendel_jobcreator

Installation

  1. Unzip wasvendel_jobcreator.
  2. Drag the wasvendel_jobcreator folder into your server's resources directory.
  3. Add the resource to your server.cfg after your framework core.
ensure oxmysql
ensure your_core
ensure wasvendel_jobcreator

Dependencies

Resource Required Description
oxmysql Yes Job, template, cooldown, and skill storage.
wasvendel_minigame No Required only when a step uses a minigame (Safe, Sequence, Arrows, Circle, Strip, Timing, Random).

Supports VORP and RSG. The active framework is detected automatically.

Database

Tables are created automatically on first start through server/schema.lua. No manual SQL import is required.

Created tables: wasvendel_jobs, wasvendel_job_templates, wasvendel_job_settings, wasvendel_job_versions, wasvendel_job_cooldowns, wasvendel_job_progress, wasvendel_job_statistics, wasvendel_job_audit, wasvendel_job_instances, wasvendel_job_backups, wasvendel_job_skills.

Configuration

Edit configs/config.lua for commands, permissions, notifications, progress bars, and step defaults.

The Discord webhook URL is server-only. Set it in configs/sv_config.lua.

Language files are in configs/locales/.

Setting Default Description
Config.Command jobcreator Opens the job creator.
Config.JobStop.command jobstop Stops the job the player is doing. In a co-op job this stops it for the whole crew.
Config.JobStop.enabled true Enables the stop command.
Config.SkillMenu.Command skills Opens the skills and XP menu.
Config.SkillMenu.Key F7 Default keybind for the skills menu. Players can rebind it.
Config.CreatorGroups user, admin, superadmin, god Groups allowed to open the creator when the Steam whitelist is off.
Config.PlayGroups empty Groups allowed to start jobs. Empty means everyone.
Config.NotifyProvider builtin builtin, framework, ox_lib, custom_event, or custom_export.
Config.Locale en UI language.

Commands

Command Usage Description
/jobcreator /jobcreator Opens the in-game job creator.
/jobstop /jobstop Stops the current job.
/skills /skills Opens the skills and XP menu.

Jobs themselves are started from in-world points created in the editor, not from a chat command.

Permissions

Creator access uses one of these modes in configs/config.lua:

Setting Description
Config.SteamPermission.enabled When true, only the Steam identifiers in creatorSteamIds can open the creator.
Config.CreatorGroups Used when the Steam whitelist is off.
Config.Permissions.useAce When true, each action also needs an ACE permission.
Config.Permissions.acePrefix ACE prefix. Default: wasvendel_jobcreator.

ACE examples: wasvendel_jobcreator.admin, or one ace per action (create, edit, delete, duplicate, publish, unpublish, import, export, test, view_logs, view_statistics, manage_templates, manage_xp).

Keep Steam identifiers in the server config. Do not publish them.

Step Modules

The creator builds jobs from these node categories:

Category Examples
Flow Job finish, fail, cancel
Navigation Go to zone, set or clear waypoint
Interactions Interact point, interact entity, progress work, NPC dialog
Spawns Wagon, horse, boat, object, ped
Attach / cargo Attach, detach, carry
Transport Cargo load and unload, stagecoach stop, fluid fill and deliver
Livestock Animal herding
Hunting Tracking, animal spawn
Forestry Woodcutting
Construction Interaction, material haul, build structure
Economy Give or take item, money, and XP; check item, money, and XP
Logic Wait, randomize, client event, server event
Notify Player notify, set or clear objective

Events

Framework Hook

Event Payload Description
wasvendel_jobcreator:bridge:ready fw Framework bridge is ready. fw is VORP or RSG.

Custom Events from Creator Steps

A server event node calls:

TriggerEvent(eventName, playerSource, instanceId, nodeId, payload)

A client event node is sent to the players in that job instance.

eventName must be listed in Config.Security.eventWhitelist, unless Config.Security.allowAnyEvent is set to true.

Exports

Client Exports

Export Signature Description
RefreshSync () Requests a fresh job sync from the server.
exports['wasvendel_jobcreator']:RefreshSync()

Server Exports

Export Signature Description
GetJob (jobId) -> table | nil Returns the stored job definition.
GetJobInstance (instanceId) -> table | nil Returns the live instance snapshot (job, node status, participants).
HasJobCreatorPermission (source, action) -> boolean Checks creator permission for an action such as edit or publish.
IsSchemaReady () -> boolean Returns whether the database schema has finished initializing.
local job = exports['wasvendel_jobcreator']:GetJob(jobId)
local allowed = exports['wasvendel_jobcreator']:HasJobCreatorPermission(src, 'edit')

New documentation page

The file is saved to the markdown/ folder. Editing is localhost-only.