Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/25/22 in Posts

  1. 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.
    1 point
  2. You can invoke a lot of "getVehicle..." natives that control the state of the vehicle, including dirt, door statuses, headlights etc - and there's even a native to copy the complete visual damage from one vehicle to another. Use these natives to store the state of the vehicle in more detail, and apply that when the vehicle is spawned again. Examples of all the natives are here (https://cdn.rage.mp/public/natives/#native_0x8F17BC8BA08DA62B)
    1 point
×
×
  • Create New...