Admin Guide

Admin commands and developer utilities for oxide-animalcontroljob.

Reference for all admin commands and developer utilities in oxide-animalcontroljob.


Commands Overview

CommandDescriptionPermission
/animalcontrolbuilderOpen the animal control job builder tooladmin.animalcontroljob (ACE)
/animalcontroltutorialsToggle tutorial tooltips on/offNone
/animalcontroltutorialresetReset all tutorial progress (re-show all tooltips)None

Animal Control Builder

The builder is a context menu for creating office locations and job events without editing config files directly. It provides real-time 3D marker previews, vehicle model testing, and Lua export.

Opening the Builder

/animalcontrolbuilder

Requires the admin.animalcontroljob ACE permission.

OptionDescription
New OfficeCreates a new office location at your current position
Set Vehicle SpawnCaptures current position as the vehicle spawn point
Finish LocationValidates and saves the current location
Add Aggressive Animal EventCaptures an aggressive animal event at your position
Add Stray Capture EventCaptures a stray capture event at your position
Add Wildlife Removal EventCaptures a wildlife removal event at your position
Add Deceased Pickup EventCaptures a deceased pickup event at your position
Set Shelter Delivery PointCaptures current position as the shelter delivery point
View StatusShows current builder state and event counts
Undo Last ActionReverses the most recent action (up to 20)
Import Current ConfigImports existing config into the builder for editing
Edit EventOpens submenu to delete or reposition events
Export AllSerializes all data to Lua files
Test VehicleSpawns a preview vehicle at your position

Workflow

  1. Run /animalcontrolbuilder to open the menu
  2. Click New Office and enter a name — captures your position as office coords
  3. Move to the vehicle spawn point and click Set Vehicle Spawn
  4. Click Finish Location when complete
  5. Move to each event position and use the appropriate Add Event button
  6. Set the shelter delivery point
  7. Use View Status to check progress
  8. Click Export All to save to exported_locations.lua and exported_events.lua

3D Markers

ColorMeaning
Green cylinderSaved event position
Blue cylinderFinished location
Cyan cylinderActive (unsaved) location
Orange cylinderShelter delivery point

Event markers display their type and animal model as 3D text within 30m.

Export Format

The export generates two files:

exported_locations.lua:

Config.ShelterDeliveryPoint = vector3(-1139.70, -319.82, 37.67)

Config.Locations = {
    {
        name = 'location.animal_control_office',
        coords = vector3(-1162.75, -321.83, 37.61),
        heading = 172.06,
        vehicleSpawn = vec4(-1181.48, -340.36, 37.29, 339.7),
    },
}

exported_events.lua:

Config.Events = {
    {
        type = JobType.AGGRESSIVE_ANIMAL,
        label = 'event.new_event',
        animalModel = 'a_c_rottweiler',
        coords = vec4(-1087.74, -266.90, 36.70, -22.3),
        reportingNpc = true,
        requiresDelivery = true,
    },
    {
        type = JobType.WILDLIFE_REMOVAL,
        label = 'event.new_event',
        animalModel = 'a_c_coyote',
        coords = vec4(51.74, -1071.37, 28.40, 143.6),
        reportingNpc = false,
        requiresDelivery = true,
        animalWaypoints = {
            vector3(66.93, -1047.70, 28.43),
            vector3(101.55, -1054.40, 28.33),
        },
    },
}

Copy these into shared/config/locations.lua and shared/config/events.lua respectively.


Tutorial Commands

/animalcontroltutorials

Toggles tutorial tooltips on or off for the local player. When disabled, no new tooltips appear.

/animalcontroltutorialreset

Resets all tutorial progress, clearing the "seen" state for every tooltip. All tutorials will appear again.

Both commands require no permissions and affect only the local player's client-side KVP storage.


Permissions

ACE Permission Setup

Add the following to your server.cfg:

add_ace group.admin admin.animalcontroljob allow

Or for specific players:

add_principal identifier.license:xxxx group.admin

Progression Management

Player progression is stored in the animalcontroljob_progression database table.

Reset a Player's Progression

UPDATE animalcontroljob_progression
SET level = 1, total_jobs = 0, daily_streak = 0, complaints = 0, timeout_until = NULL
WHERE char_id = ?;

Remove a Suspension

UPDATE animalcontroljob_progression SET timeout_until = NULL WHERE char_id = ?;

Clear Complaints

UPDATE animalcontroljob_progression SET complaints = 0 WHERE char_id = ?;

View a Player's Stats

SELECT * FROM animalcontroljob_progression WHERE char_id = ?;

Set a Player's Level

UPDATE animalcontroljob_progression SET level = 3 WHERE char_id = ?;

Next Steps