Comet in FiveM: spawn code, top speed and engine sound
The Pfister Comet spawns with comet2. Below: its handling numbers explained and ranked against the Sports class, ready Lua spawn code, the three forms of its hash, how to use its sound on an add-on car, and its mod kit, colour and light ids.
comet2
- Name in game
- Comet
- Maker (in game)
- Pfister
- Class
- Sports (6)
- Drive
- RWD, 5 gears
- Top-gear limit
- 182 km/h, 113 mph
- Weight
- 1,400 kg
- Seats
- 2
- Added in
- Base game (2013)
Generic sports outline, not the real model
How the Comet drives, in numbers
- Rear-wheel drive: fDriveBiasFront is 0.0, so all of the drive force goes to the rear wheels. It has 5 forward gears.
- Top-gear limit: about 182 km/h (113 mph), from fInitialDriveMaxFlatVel 152 x 1.2. 56 of the 126 Sports vehicles in the game files have a higher limit; the class median is 182 km/h.
- Drive force per tonne: 0.243 (fInitialDriveForce 0.34 on 1,400 kg). That is 6% more than the Sports median of 0.23; it is a handling index for how hard it pulls for its weight, not horsepower.
- Brakes: fBrakeForce 0.8 with 60% of the braking on the front axle (class median 0.86).
- Grip: peak traction 2.6 and sliding traction 2.15 (fTractionCurveMax / Min). The gap of 0.45 is how much grip it loses once the tyres slide; 50% of the grip sits on the front axle.
- Weight: 1,400 kg, 7% lighter than the Sports median of 1,500 kg.
Against all 126 Sports vehicles in the game files
| handling.meta | Comet | Sports median | Difference |
|---|---|---|---|
| fMass | 1,400 kg | 1,500 kg | -7% |
| fInitialDriveMaxFlatVel | 152 | 152 | same |
| fInitialDriveForce | 0.34 | 0.33 | +3% |
| nInitialDriveGears | 5 | 6 | -17% |
| fDriveBiasFront | 0 | 0 | same |
| fDriveInertia | 1 | 1 | same |
| fInitialDragCoeff | 9.2 | 9.98 | -8% |
| fBrakeForce | 0.8 | 0.86 | -7% |
| fBrakeBiasFront | 0.6 | 0.52 | +15% |
| fHandBrakeForce | 0.8 | 0.65 | +24% |
| fSteeringLock | 43° | 40° | +8% |
| fTractionCurveMax | 2.6 | 2.513 | +3% |
| fTractionCurveMin | 2.15 | 2.295 | -6% |
| fTractionCurveLateral | 22.5° | 22.5° | same |
| fTractionBiasFront | 0.5 | 0.49 | +2% |
| fLowSpeedTractionLossMult | 1 | 1 | same |
| fSuspensionForce | 2.6 | 2.29 | +14% |
| fSuspensionRaise | 0 | 0 | same |
| fAntiRollBarForce | 0.9 | 0.77 | +17% |
| fDeformationDamageMult | 0.7 | 0.7 | same |
| AIHandling | SPORTS_CAR | handlingName COMET, sub handling CCarHandlingData | |
Spawn the Comet in FiveM
Client script (spawns it where the player stands and seats them in it):
local model = `comet2` -- 0xC1AE4D16
RequestModel(model)
while not HasModelLoaded(model) do Wait(0) end
local ped = PlayerPedId()
local pos = GetEntityCoords(ped)
local veh = CreateVehicle(model, pos.x, pos.y, pos.z, GetEntityHeading(ped), true, false)
SetPedIntoVehicle(ped, veh, -1)
SetModelAsNoLongerNeeded(model)
Server script (OneSync, the server owns the entity; admin only through the ACE restriction):
RegisterCommand('spawncomet2', function(source)
local ped = GetPlayerPed(source)
local pos = GetEntityCoords(ped)
local veh = CreateVehicleServerSetter(`comet2`, 'automobile', pos.x, pos.y, pos.z, GetEntityHeading(ped))
while not DoesEntityExist(veh) do Wait(0) end
SetPedIntoVehicle(ped, veh, -1)
end, true)
- vMenu: Vehicle Spawner, then Spawn Vehicle By Model Name, type
comet2. - txAdmin: in-game menu, Spawn Vehicle, type
comet2. - QBCore / ESX:
/car comet2for admins. - The second argument of
CreateVehicleServerSetteris the vehicle type; for the Comet it isautomobile. A wrong type makes the server entity fail.
An add-on car that does not appear is a different problem (stream folder, data_file lines, model name): see FiveM car not spawning. All vanilla codes in one table: FiveM spawn codes list.
Hashes
| Form | Value | Where you meet it |
|---|---|---|
| Hex | 0xC1AE4D16 | CodeWalker, meta files, ymap entities |
| Unsigned | 3249425686 | C#, JavaScript, databases that store unsigned |
| Signed (int32) | -1045541610 | Lua GetEntityModel results, garage scripts that save the model as an int |
All three are the same number: the joaat (Jenkins one-at-a-time) hash of the lower case name, which is what GetHashKey('comet2') and the Lua backtick form `comet2` return.
Use the Comet engine sound on your car
The game has a car audio object named after this model, so one line in the vehicles.meta of an add-on car makes it use the Comet sound set:
<audioNameHash>comet2</audioNameHash>
- Engine audio type: granular. Recorded engine samples blended by engine speed, the type most modern GTA cars use.
- The audio object sets rev limiter pops.
- In our engine sound catalogue it is listed in the Flat-6 / sports family.
- The audio object is the whole vehicle sound: engine, horn, doors and radio genre change together. How it sounds on your car also depends on that car's gears and top speed.
Want a recorded engine instead of a GTA one? FiveM engine sounds lists 102 packs and the Soundpack Maker builds the resource.
Mod kit, colours and lights
- Mod kit id 56: 7 visible parts.
- 15 factory colour combinations in carvariations.meta.
- carvariations
lightSettings70: the headlight and taillight preset it reads from carcols. sirenSettings0 (no siren lights).- Plates: rear only.
- Stock wheel category at the mod shop: Sport.
- Seat layout
LAYOUT_LOW, 2 seats.
Visible mod parts by slot
- spoiler 2
- bumper_f 2
- chassis 1
- exhaust 1
- roof 1
vehicles.meta flags
In plain words: the boot is at the front; parking sensor beeps; appears as traffic in rich areas; neon kits can be fitted.
All 7 flags
- FLAG_BOOT_IN_FRONT
- FLAG_SPORTS
- FLAG_SPAWN_ON_TRAILER
- FLAG_PARKING_SENSORS
- FLAG_RICH_CAR
- FLAG_NO_BROKEN_DOWN_SCENARIO
- FLAG_CAN_HAVE_NEONS
Make an add-on car feel like the Comet
FiveMRides Vehicle Studio edits add-on car files in your browser (debadge, lights, seats, rims, tint, stance, exhaust, wraps and more) and gives you back a FiveM resource. Pair it with the sound line above to make your own car feel like this one. Your files, our tools; we never ship Rockstar models.
FiveMRides add-ons like this
Ready add-on cars from our shop for the same kind of vehicle. They install next to the vanilla Comet, they do not replace it.
[Non ELS] Unmarked Slicktop Police Comet S2 992 Original price was: $10.99.$9.99Current price is: $9.99.
Custom Comet 993 Original price was: $10.00.$8.99Current price is: $8.99.
Pfister Comet S2 CTX C4 Original price was: $10.00.$7.99Current price is: $7.99.
Questions
What is the spawn code for the Comet in GTA 5 and FiveM?
The spawn code (model name) is comet2. Its joaat hash is 0xC1AE4D16 (3249425686 as an unsigned number). Admin menus such as vMenu, txAdmin and the /car command of QBCore or ESX take the model name as it is.
How fast is the Comet in GTA 5?
Its handling gives a top-gear limit of about 182 km/h (113 mph): fInitialDriveMaxFlatVel 152 x 1.2, the value GetVehicleModelEstimatedMaxSpeed returns for ordinary handling values. Drag and upgrades change what a driver sees. It is RWD with 5 gears and weighs 1,400 kg.
Can I give an add-on car the Comet engine sound?
Yes. Put <audioNameHash>comet2</audioNameHash> in the add-on car's vehicles.meta. The game then uses the Comet audio object, which is the whole vehicle sound: engine, horn, doors and radio genre change together.