Jump to content

Objects samp


Ascla

Recommended Posts

These IDs might help:

Free IDs in standard unmodified GTA San Andreas (generated by Free ID list generator on unmodified GTA SA, made by fastman92.tk):

2-6, 8, 42, 65, 74, 86, 119, 149, 208, 265-273, 289, 329, 332, 340, 382-383, 398-399,

612-614, 662-663, 665-668, 699, 793-799, 907-909, 965, 999, 1194-1206, 1326, 1573, 1699, 2883-2884, 3136-3166, 3176-3177, 3179-3186, 3188-3192,

3194-3213, 3215-3220, 3222-3240, 3245, 3247-3248, 3251, 3254, 3266, 3348-3349, 3416, 3429, 3610-3611, 3784, 3870-3871, 3883, 3889, 3974,

4542-4549, 4763-4805, 5085, 5090-5104, 5376-5389, 5683-5702, 6011-6034, 6254, 6258-6279, 6348, 6526-6862, 7393-7414, 7974-7977, 9194-9204, 9268, 9479-9481, 10311-10314,

10745-10749, 11418-11419, 11682-12799, 13564-13589, 13668-13671, 13891-14382, 14529, 14555, 14557, 14644-14649, 14658-14659, 14696-14698, 14729-14734, 14766-14769, 14857, 14884, 14899,

14904-15024, 15065-15999, 16791-16999, 17475-17499, 17975, 17977, 17979-17999, 18037, 18103, 18106-18108, 18110-18111, 18113-18199, 18631-19999

Source, fastman92 on GTAForums

Link to comment

Yes but when I create the object 18646, I have this error :

 Bad argument @ 'createObject' [invalid model id] 

My script :

Server:

function objet (thePlayer, command) 
  
local x,y,z = getElementPosition(thePlayer) 
  
createObject ( 18646, x, y, z) 
  
end 
addCommandHandler("objet", objet) 

Client:

function tramReplace() 
  
         PoliceLight1 = engineLoadDFF ( "objets/PoliceLight1.dff", 18646 ) 
         engineReplaceModel ( PoliceLight1, 18646 ) 
  
 end 
  
 addEventHandler ( "onClientResourceStart", getRootElement(), tramReplace) 

Link to comment

I dont know exactly what you mean but may use

Meta.xml

  
<meta> 
<info type="script" version="1.0" name="OtherModle." author="foo"/> 
<script type="client" src="script.lua"/> 
<file type="client" src="file.txd"/> 
<file type="client" src="file.dff"/> 
</meta> 

script.lua

addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), function() 
  txd = engineLoadTXD("file.txd", 475 )--modle_id Sabre=475 
  engineImportTXD(txd, 475) 
  dff = engineLoadDFF("file.dff", 475 ) 
  engineReplaceModel(dff, 475) 
  end 
) 
  

just replace 475 to the modle id to be repaced.

may search in the map_editor for the right modle id

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...