Jump to content

heiligerbimbam2103

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by heiligerbimbam2103

  1. vor einer Stunde schrieb sparx:

    This (i assume) will be your main setter for vehicle visual damage:

    https://cdn.rage.mp/public/natives/#native_0xA1DD317EA8FD4F29

    potentially paired with:

    https://cdn.rage.mp/public/natives/#native_0x4EC6CFBC7B2E9536

    But I'm not sure if there is any proper getters relating to the first native, I'd probably save some vital stats of the vehicle through other natives and just generically (or randomly) apply damage based on those calculations .

    I've never wrote a script that handled visual damage before, but that's where I'd start. I'd learn those natives and try and find use cases for them and/or build a more generic system around it. 

     

    This seams to be the correct natives for the problem i try to solve. Thank you very much for your help.

    Greetings

    • Like 1
  2. Am 22.8.2021 um 23:20 schrieb Spechen:

    Hello, this is not what asked by heiligerbimbam2103, all of this doesn't affect the visual bodywork of any vehicle
    The only fact that change the engine health and petrol tank health is if the engine will smoke or catch fire, or the petrol tank will leak, the bodywork is totally logical
    I'm following this topic because I'm looking for a way to get the visual damage of the vehicle's bodywork (we can set damage with this setter https://wiki.rage.mp/index.php?title=Vehicle::setDamage )
     

    Thank you for your support. I'll hope we get some answers because in Discord or other ways there was no answer.

     

    Greetings

  3. Hi and thank you for your help

    I will use this functions. Are there any functions to set cosmetic damage? As example. If i drive in front of a wall the front of a car gets damage. Can i reset this damage? I found a function to set damage in a sphere to the car. But... Can i get the damage that was applied?

    I've found already that i can check if the door is damaged. Any suggestions to detect damage of the body?

    Greetings and thank you very much

    And just to say xD I already use the wiki very intensive hahaha and some natives

  4. Hey guys.

    I'm searching now for several days to solve this problem.... 

    Currently i'm working on my own roleplay server with own resources etc.. Now iam at the point to code my vehicle manager. The point is that players should not save their car/plane/boat in a garage or whatever and spawn them completely repaired.

    I worked previously on FiveM and there are some functions to get vehicle damage.

    What are the correct functions/events or whatever to GET vehicle damage and the correct functions to SET vehicle damage.

     

    And if it is possible.. Can i apply cosmetic damage to a vehicle?

    If you have some examples please provide them in JS. On C# im not very good xD

     

    Your help would be really great.

    Greetings

    Bimbam2103

×
×
  • Create New...