vehicleOwner

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

Last updated