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!
Calling a Simhub fu...
 
Notifications
Clear all

Calling a Simhub function inside a Plugin

1 Posts
1 Users
0 Reactions
506 Views
(@tatonoidefo)
New Member
Joined: 5 months ago
Posts: 1
Topic starter  

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?


   
Quote
Share: