🦥
Project Sloth
  • 🦥Project Sloth
  • ⭐Server Hosting | 1 of 1 Servers
  • Scripts
    • ❤️ps-hud
      • Installation Guide
      • Previews
    • 🪄ps-buffs
      • Available Buffs
      • Creduts
    • 👮ps-dispatch
      • Installation
      • Using Exports
        • Creating New Alerts
          • Using your or our Exports
    • 💻ps-mdt
      • Installation
      • Showcase
      • Credits
    • 👾ps-ui
      • Circle Minigame
      • Number Maze
      • VAR
      • Thermite
      • Scrambler
      • Display Text
      • Status UI
      • Menus
      • Input
      • Show Image
      • Show Notification
    • 🌱ps-drugprocessing
      • Previews
    • ⛽ps-fuel
      • Installation Guide
      • Features
      • Showcase
    • 🚞ps-objectspawner
      • Installation Guide
      • Features
      • Showcase
      • Credits
    • 🚓ps-liveries
      • Showcase
      • Credits
    • 🏠ps-housing
      • Installation
      • Features
      • Showcase
      • Adding Shells
      • Migration
      • Credits
    • ⚙️ps-discord
      • Installation
      • Convars
      • Exports
      • Credits
    • 📚ps-lib
      • Install Guide
      • Dependencies & Load Order
        • How to use the lib
      • Bridge
        • Emotes
          • Client
            • playEmote
            • cancelEmote
        • Framework
          • Server
            • Players
              • getPlayer
              • getPlayerByIdentifier
              • getOfflinePlayer
              • getLicense
              • getIdentifier
              • getSource
              • getPlayerName
              • getPlayerNameByIdentifier
              • getPlayerData
              • getMetadata
              • getCharInfo
              • getNearbyPlayers
              • setJob
              • setJobDuty
              • addMoney
              • removeMoney
              • getMoney
              • isOnline
            • Jobs
              • Player Current Jobs
                • getJob
                • getJobName
                • getJobType
                • getJobDuty
                • getJobData
                • getJobGrade
                • getJobGradeLevel
                • getJobGradeName
                • getJobGradePay
                • isBoss
                • setJob
                • setJobDuty
              • get Shared Jobs
                • getSharedJob
                • getSharedJobGrade
                • getJobTable
                • jobExists
                • getSharedJobData
                • getSharedJobRankData
            • Checks and Balances
              • getEntityCoords
              • getDistance
              • checkDistance
              • hasPermission
              • vehicleOwner
            • Get From Server
              • getAllPlayers
              • getNearbyPlayers
              • getJobCount
              • getJobTypeCount
              • getAllJobs
              • getAllGangs
              • vehicleOwner
              • getSharedVehicle
              • getSharedVehicleData
              • getSharedWeapons
              • getSharedWeaponData
            • Gangs
              • getGang
              • getGangName
              • getGangData
              • getGangGrade
              • getGangGradeLevel
              • getGangGradeName
              • isLeader
              • Shared Gang
                • getSharedGang
                • getSharedGangData
                • getSharedGangRankData
          • Client
            • Functions
              • getPlayerData
              • getIdentifier
              • getMetadata
              • getCharInfo
              • getPlayerName
              • getPlayer
              • getVehicleLabel
              • isDead
              • getJob
              • getJobName
              • getJobType
              • isBoss
              • getJobDuty
              • getJobData
              • getGang
              • getGangName
              • isLeader
              • getGangData
              • getCoords
              • getMoneyData
              • getMoney
              • getAllMoney
        • Inventory
          • Client
            • getImage
            • getLabel
            • hasItem
          • Server
            • removeItem
            • addItem
            • openStash
            • hasItem
            • getFreeWeight
            • openInventoryById
            • clearInventory
            • clearStash
            • getItemCount
            • getItemByName
            • getItemsByNames
            • ps.createShop(source, shopData)
            • verifyRecipe
            • craftItem
            • createUseable
        • Menus
          • Client
            • menu
            • closeMenu
            • input
        • Targets
          • boxTarget
          • circleTarget
          • entityTarget
          • targetModel
          • destroyAllTargets
          • destroyTarget
      • Modules
        • Callbacks
          • registerCallback
          • callback
        • animations
        • registerCommand
        • Copy Clipboard
        • getNear
          • getNearestPlayers
          • getNearestPed
          • getNearestVehicle
          • getNearestObject
          • getNearestObjectOfType
          • getNearbyPed
          • getNearbyVehicles
          • getNearbyObjects
        • Interactions
          • Client
            • drawText
            • hideText
            • notify
            • progressBar
            • minigame
          • Server
            • notify
        • Keybinds
          • Client
            • addKeyBind
            • removeKeybind
        • Miscallaneous
          • Shared
            • sorter
            • concat
            • string
            • decimalRound
            • random
            • tableContains
        • PS-UI
          • Minigames
            • VarHack
            • Thermite
            • Scrambler
            • Maze
            • Circle
          • Ui
            • Context Menu
            • Coord Grabber
            • Show Image
            • DrawText
            • Input
            • Crafting
              • server side
              • client side
        • Raycast
          • Client
            • Raycast
        • Requests
          • Client
            • requestModel
            • requestAnim
            • requestPTFX
        • Streamed_assets
          • Shared
            • Objects
            • Peds
            • Vehicle
        • Game Time
          • Client
            • getGameTime24
            • getGameTime12
        • Vehicle Cache
          • Client
            • Cache Data
          • Server
            • Cache Data
        • Version Check
          • Server
            • versionCheck
  • ❓FAQ
    • Frequently Asked Questions
      • Warnings
      • PS-HUD
      • PS-DISPATCH
      • PS-MDT
      • PS-UI
      • PS-DRUGPROCESSING
      • PS-OBJECTSPAWNER
      • PS-LIVERIES
Powered by GitBook
On this page
  1. Scripts
  2. 📚ps-lib
  3. Bridge
  4. Framework
  5. Server
  6. Get From Server

vehicleOwner

PreviousgetAllGangsNextgetSharedVehicle

Last updated 23 days ago

CtrlK

Description

Checks the database to find the citizen ID of the owner of a vehicle with the given license plate.

Parameters

  • licensePlate (string): The license plate number of the vehicle.

Return Value

  • Returns the citizenid of the vehicle owner if found.

  • Returns false if no vehicle matches the plate.

Example Use Case

local ownerCitizenId = ps.vehicleOwner("ABC123")
if ownerCitizenId then
    print("Vehicle owned by: " .. ownerCitizenId)
else
    print("No owner found for this vehicle.")
end