This function parameter expects a value of type tuple()->void, but this argument is an incompatible value of type player->void.(3509)


I want that when the car explodes and comes back, the player gets into the car as its driver
help ヾ(@⌒ー⌒@)ノ

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.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.