Available since Version 1.27.
Gets what car the player is currently using.
Syntax
GetCurrentCar()Arguments
No arguments.
Return Values
- (string | nil): The name of the car the player is currently using or
nilif the player does not have a car or is not in game.
Examples
local CurrentCar = GetCurrentCar()
if CurrentCar == "homer_v" then
-- Do something if the player is driving the 70s sports car
end