Due to increasing spam attacks, forum registrations are currently paused to keep our community safe and spam-free. Come hang out and stay connected with us on the SimHub Discord: https://discord.com/invite/nBBMuX7!
Catch you on Discord — and thanks for understanding!
Catch you on Discord — and thanks for understanding!
Notifications
Clear all
Simhub General
1
Posts
1
Users
0
Reactions
506
Views
Topic starter
20/11/2024 3:41 am
I'm trying to write a plugin to calculate some information, and one of then is the time gap between cars.
I know Simhub has the function "drivergaptoplayer(raceposition)", but how can I call this function inside the plugin?
To see the speed from my car I can use "pluginManager.GetPropertyValue("SpeedKmh")". Is there something similar to this approach for functions as we have for properties?