multitheftauto / amx

MTA AMX compatibility layer.
zlib License
31 stars 8 forks source link

Custom objects from SAMP #73

Open Disinterpreter opened 3 years ago

Disinterpreter commented 3 years ago

Is your feature request related to a problem? Please describe. There are custom objects in SAMP, these objects was created for SAMP, but SAMP developers not owners of these.

Describe the solution you'd like I suppose we could be ask authors about use it in AMX, or making analogs.

Depends on https://github.com/multitheftauto/mtasa-blue/issues/1835 or any allocate object function with ID's setter

Additional context https://dev.prineside.com/en/gtasa_samp_model_id/tag/2-sa-mp/?page=1

Allerek commented 3 years ago

Most of them exist in GTA SA(they're just cut from bigger models), rest are cut from other rockstar games(GTA3/VC/Manhunt), only some of them are custom ones, it would be better to just use engineRequestModel+replace instead of adding them directly to MTA

Disinterpreter commented 3 years ago

Most of them exist in GTA SA(they're just cut from bigger models), rest are cut from other rockstar games(GTA3/VC/Manhunt), only some of them are custom ones, it would be better to just use engineRequestModel+replace instead of adding them directly to MTA

I know, but IDs must be static and it must coincide with SAMP's IDs

lopezloo commented 1 year ago

You can use engineRequestModel and then translate IDs. So, script would call CreateObject(X, ...) and it would create object with ID Y.