JixelPatterns
  • JixelPatterns Documentation
  • Troubleshooting
    • Common Issues
    • Setting Up Locations
    • FAQ
  • Dependency
    • Jim_Bridge
      • Animal Ped Support
      • Script Helpers
      • Loader Functions
      • Callbacks
      • Cameras
      • Context Menus
      • Crafting
      • DrawText
      • Dui Functions
      • Input Creator
      • Inventories
      • Job Functions
      • Make Functions
      • Meta Handlers
      • Notifications
      • Phones
      • Player Functions
      • Poly Zones
      • Progress Bars
      • Scale Entity
      • Shops
      • Skillcheck
      • Society Banking
      • Stash Control
      • Targets
      • Vehicles
      • Wrapper Functions
      • Scaleforms
  • Paid Assets
    • Jim-Mechanic
      • Common Issues
      • Installation
      • Locations
        • Creating a Location
      • Nitrous
      • Harness + Seatbelt
      • Emergency Repair Bench
      • Odometer
      • Speedometer
      • Performance Mods
      • Preview System
      • Repair System
      • Car Lifts
      • Plate Change
      • Push Vehicle
      • Stancer Kit
      • Vehicle Seat Picker
    • Jim-Bakery
      • Installation
    • Jim-BeanMachine
      • Installation
    • Jim-BurgerShot
      • Installation
    • Jim-CatCafe
      • Installation
    • Jim-Henhouse
      • Installation
    • Jim-PizzaThis
      • Installation
    • Jim-Popsdiner
      • Installation
  • Free Assets
    • Jim-Mining
      • Installation
      • How To Use
        • Mining
        • Stone Washing
        • Gold Panning
    • Jim-Recycle
      • Installation
      • How To Use
        • Recycling
        • Dumpster Diving
        • Scrapping
    • Jim-Payments
      • Installation
      • How To Use
    • Jim-Shops
      • Installation
      • How To Use
    • Jim-Boarding
      • Installation
      • How To Use
    • Jim-Trains
      • Installation
      • How To Use
    • Jim-Consumbles
      • Installation
      • How To Use
    • Jim-DJBooth
      • Installation
      • How To Use
    • Jim-JobGarage
      • Installation
      • How To Use
    • Jim-Chairs
      • Installation
    • Jim-Notepad
      • Installation
      • How To Use
Powered by GitBook
On this page
  • jobfunctions.lua
  • makeBossRoles(role)
  • jobCheck(job)
  • toggleDuty()
  • washHands(data)
  • useToilet(data)
  • useDoor(data)
  1. Dependency
  2. Jim_Bridge

Job Functions

jobfunctions.lua

This module provides functions for managing job-based logic, such as checking player roles, toggling duty status, and simulating job-related interactions.

makeBossRoles(role)

Sets up boss-level permissions or access for the specified job role.

Often used to determine if a player can access job menus or perform administrative actions.

Used mainly for creating boss locked target tables

Example:

makeBossRoles("police")

jobCheck(job)

Simple check if the player has the specified job.

Example:

if jobCheck("mechanic") then
    -- Allow mechanic features.
else
    -- Deny access.
end

toggleDuty()

Toggles the player’s on/off duty status, typically used for jobs like police, EMS, etc.

Example:

toggleDuty()

washHands(data)

Simulates the action of washing hands, used in job scripts or medical job logic.

Currently only animation and a notfication

Example:

washHands({ coords = vector3(200.0, 300.0, 40.0) })

useToilet(data)

Triggers toilet-use interaction, likely includes animation or sound.

Currently only animation and a notfication

Example:

useToilet({ urinal = true })
-- Player uses a urinal with corresponding animations and notifications

useToilet({ urinal = false, sitcoords = vector4(215.76, -810.12, 29.73, 90.0) })
-- Player sits down to use a toilet with corresponding animations and notifications

useDoor(data)

Handles interactions with doors that aren't openable and teleports the player

eg. Recycle Center, it's used to teleport the player from outside a building to the IPL

Example:

useDoor({ telecoords = vector4(215.76, -810.12, 29.73, 90.0) })

PreviousInventoriesNextMake Functions

Last updated 4 days ago