Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Modding Tools
  • Lucas' Simpsons Hit & Run Mod Launcher
  • Hacks
  • Mod Requirable Hacks
  • Additional Script Functionality
  • Console Commands
  • CON Commands
  • Vehicle Characters

AddVehicleCharacter

Available since Version 1.19.

This can be used to add additional characters to a car on top of the driver and the player character's.

Scope

This command should be called within a vehicle's .con file.

Syntax

CON
Lua
AddVehicleCharacter( character, [joint, rotation] );
Game.AddVehicleCharacter( character, [joint, rotation] )
  • character: The name of the character to add.
  • joint: The name of the joint to place the character on. Defaults to "pl".
  • rotation: The rotation of the character on the joint. Defaults to 180.
    • 180 is facing forwards in the car since characters are backwards in this game.

Examples

CON
Lua
// Add Marge to the Passenger Seat
AddVehicleCharacter("marge");
​
// Add Bart to the Smoke Joint 
//  (you'd probably want to add custom joints to the car for other passengers)
AddVehicleCharacter("bart", "sl", 0);
-- Add Marge to the Passenger Seat
Game.AddVehicleCharacter("marge")
​
-- Add Bart to the Smoke Joint 
--  (you'd probably want to add custom joints to the car for other passengers)
Game.AddVehicleCharacter("bart", "sl", 0)

Notes

Characters added using this command cannot be removed from the car via a mission script.