$200 Steam Giftcard Raffle | Sponsored by TF1A3 ×
Jump to content
×
×
  • Create New...
  • Lights Make Cars Move Slow


    yourenojedi
    • Rejected
     Share

    Instead of cars just stopping in the middle of the road, they slow down and should pull over

     Share


    User Feedback

    Recommended Comments

    This is a performance heavy kind of functionality when you're asking a plugin to alter the AI of every car around you.

    You would be better off looking at whether or not data file changes can be made within FiveM and let the base game AI handle it.

    Link to comment
    Share on other sites

    You can actually already do this by setting the AI driving ability LukeD. I've got this working in a script already. It's not that performance heavy as it is supported in the game by default. Just need to loop through all the cars every 5-10 seconds or so to set the property.

    Link to comment
    Share on other sites

    11 hours ago, HB117 said:

    You can actually already do this by setting the AI driving ability LukeD. I've got this working in a script already. It's not that performance heavy as it is supported in the game by default. Just need to loop through all the cars every 5-10 seconds or so to set the property.

    It's the looping through all the cars which will have the biggest performance impact, I'm aware there's methods to do it. But you can't avoid having to go through all vehicles in a radius/world and apply the driving style. And while this impact is normally negligible on medium - high end systems, low end systems will notice a difference. And to add to that, as you build a plugin list up higher and higher the more of an effect it will have.

     

    Not saying it's impossible, just that it wouldn't really be worth it in a server environment imo.

    Link to comment
    Share on other sites



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.

Important Information

Thanks for visiting GPM. As a user of the GTAPoliceMods platform, we ask that you review the Terms of Use, Privacy Policy, and Guidelines. These principles allow us to continue fostering a great community. We have placed cookies on your device to help improve your experience. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.