altv-issues
altv-issues copied to clipboard
[Serverside] Clone function for all Entities (Peds, Vehicles, Objects)
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