VehicleSpawnedEvent
does not accept any function that has a parameters in it. When you check VehicleSpawnedEvent
event in the API, you gonna notice it is type listenable(tuple())
which means the function inserted should be parameterless. In your case the carRide has player
parameter which is not acceptable.