NPC Taxi

NPC Taxi 0.1.22

This plugin requires the Chaos extension -> https://chaoscode.io/resources/chaos.321/

Create taxi's driven by NPC's that players can call to drive them around the map


Travelling down connected roads

Travelling down unconnected roads/offroad

Simple obstacle avoidance

How it works
When a player calls a taxi it will spawn nearby and drive to them.
The player then enters the taxi and sets their destination by placing a marker on the map.
The route is then generated and the fare is calculated. The fare cost is based on the length of the route and the config option "Scrap cost per 1km travelled"
The player then can either get out of the taxi, change their destination, or type /payfare to begin travelling to the map marker.

About the Taxi
Taxi's will always favour travelling on a road or trail.
You can only summon taxi's when you are near a road or trail.
Destinations can only be set near a road or trail.
In the event that the road the destination is set to is not connected to the road they are starting at the taxi will drive off road finding the path lowest cost path (minimal slopes, avoiding monuments, etc)
Taxi's are equipped with collision sensors and obstacle avoidance, but it's not perfect.
If the taxi is travelling off road and drives in to tree's it can not avoid it will knock them down

Permissions
NPCTaxi uses Oxides permission system
To assign a user permission use oxide.grant user "username|steam id" "permission" in console.
To assign a group permission use oxide.grant group "groupname" "permission" in console.
You can read more about how to use the permission system here : uMod - Permissions
npctaxi.use - Required to call a taxi
npctaxi.nocost - Players with this permission will not be charged for their trip
npctaxi.nocooldown - Players with this permission will not be subject to the cooldown period after using a taxi

There are other customizable permissions in the config to set custom fare costs for VIPs

Commands
/taxi - Calls a taxi to your position
/payfare - After you have set your destination use this command to pay the fare and begin travelling to your destination

Config
The configuration file can be found in your server directory at .../oxide/config/NPCTaxi.json
The use of an editor and validator is recommended to avoid formatting issues
C#:
{
  "Scrap cost per 1km travelled (permission -> cost)": [
    {
      "Permission": "npctaxi.use",
      "Cost": 50
    },
    {
      "Permission": "npctaxi.vip1",
      "Cost": 25
    },
    {
      "Permission": "npctaxi.vip2",
      "Cost": 10
    }
  ],
  "Cost type (Scrap, ServerRewards, Economics)": "Scrap",
  "Are taxi vehicles invincible?": true,
  "Maximum allowed taxi's at any given time": 2,
  "Maximum time the taxi will wait for the player to enter before leaving": 45,
  "Amount of time from when the player leaves a taxi until they can call another one (seconds)": 60,
  "Taxi Vehicle Settings": {
    "Chassis Type (0 = TwoModule, 1 = ThreeModule, 2 = FourModule)": 1,
    "Modules (item shortname)": [
      "vehicle.1mod.cockpit.with.engine",
      "vehicle.1mod.taxi",
      "vehicle.1mod.taxi"
    ],
    "Engine component tier (1 - 3)": 3,
    "Driver clothing items": [
      {
        "Shortname": "pants",
        "SkinID": 0
      },
      {
        "Shortname": "boots",
        "SkinID": 0
      },
      {
        "Shortname": "shirt.collared",
        "SkinID": 0
      },
      {
        "Shortname": "movembermoustache",
        "SkinID": 0
      }
    ]
  },
  "Pathfinder Debug": false,
  "Version": {
    "Major": 0,
    "Minor": 1,
    "Patch": 4
  }
}

Information

Author
k1lly0u
First release
Last update
Rating
5.00 star(s) 17 ratings

Latest Release v0.1.22

Released
Oct 17, 2024 at 3:45 AM
Rating
0.00 star(s) 0 ratings


More resources from k1lly0u

  • TeleportGUI
    TeleportGUI
    Teleport, home and warp with a easy to use UI
  • DiscordRewards
    DiscordRewards
    Reward players with items, kits and commands for being a member of your Discord
  • Discord Clans
    Discord Clans
    Log events and team chat from Clans Reborn to Discord
  • BuildingRestrictor
    BuildingRestrictor
    Limit the amount of building blocks allowed per base
  • RaceTrack
    RaceTrack
    A standalone racing event for almost every type of transport available in Rust

NPC Taxi by k1lly0u
© chaoscode.io Dec 21, 2020

Latest reviews

good and fun..
people are very happy with your taxi keep up the good work I hope that you keep on making more
Works very well
Awesome plugin - everything works perfect! Personally love the option to use the phone to call a taxi :D
I was giggling for 20 minutes straight. It's just the type of plugin I look for. It's true the taxi gets lost at Power Plant but players will be forgiving because its just too awesome.
Another way to spend spare scrap on your way to the Bandit Casino. Awesome work as usual @K1lly0u
Amazing plugin ! 11/10 :)
Clearly the best Plugin around
Absolutely fun plugin especially if you are running a PvE or RP server! Definitely get it right away!
first it does not work and now it works again a miracle fast programmer must be said really