altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

[Serverside] Clone function for all Entities (Peds, Vehicles, Objects)

Open devpanda0 opened this issue 1 year ago • 0 comments

Description of the problem

On Serverside: This should simply clone the entity completely, with all important data and optionally whether you want to take over the metadata, but it should get a new ID. See example

Desired solution for the problem

// The Boolean is the optional value for whether you want to include the metadata const clonedPed = alt.Ped.all[0].clone(true)

Alternatives you considered

No response

Additional context

No response

devpanda0 avatar Dec 06 '23 03:12 devpanda0