Jump to content

Ped Model IDs


Recommended Posts

So I made a server for me and friend to play on, all is going swimmingly, I wouldn't say i have an issue as such, just a couple of problems using the replace lua function

This is present in my meta.xml:

this in my level.lua:

dff = engineLoadDFF ("mecgrl3.dff")

engineReplaceModel( dff ,192)

txd = engineLoadTXD ("mecgrl3.txd")

engineImportTXD( txd , 192)

i have already loaded 2 cars and a weapon into the game which work perfectly, im wondering if its because of the 192 ID, which is Michelle's skin ID, im not sure if its the actual real model ID for this ped, if it isnt, is there a method of finding out? and if the ID is correct, is there any reason why this shouldn't be loading?

thanks in advance :D

Link to comment
  • Moderators

- You didn't specified your level.lua in your meta (don't forget important things when you paste here)

- You probably has a syntax error in your level.lua so the whole file isn't loaded/executed.

- The txd and/or the dff files contains errors (do they work in single player ?)

And check out the client side errors by hitting /debugscript 3 (you have to be logged in as admin).

Client side errors won't be shown on the server console.

Link to comment

1.my level lua is in the meta.xml, like i said ive already loaded 3 models into mta

2.not sure about syntax error; this is my whole meta.xml and level.lua files:

<meta> 
    <info type="map" version="1.0.0"></info> 
    <map src="gage.map" dimension="0"></map> 
    <settings> 
        <setting name="#maxplayers" value="[ 128 ]"></setting> 
        <setting name="#useLODs" value="[ false ]"></setting> 
        <setting name="#gamespeed" value="[ 1 ]"></setting> 
        <setting name="#minplayers" value="[ 0 ]"></setting> 
        <setting name="#gravity" value="[ 0.008000 ]"></setting> 
        <setting name="#waveheight" value="[ 0 ]"></setting> 
        <setting name="#locked_time" value="[ false ]"></setting> 
        <setting name="#weather" value="[ 0 ]"></setting> 
        <setting name="#time" value="12:0"></setting> 
    </settings> 
    <script src="mapEditorScriptingExtension_s.lua" type="server"></script> 
    <script src="mapEditorScriptingExtension_c.lua" type="client" validate="false"></script> 
    <script src = "gage.lua" type = "client" /> 
    <file src = "moonbeam.txd" /> 
    <file src = "moonbeam.dff" /> 
    <file src = "sultan.dff" /> 
    <file src = "sultan.txd" /> 
    <file src = "shotgspa.dff" /> 
    <file src = "shotgspa.txd" /> 
    <file src = "mecgrl3.dff" /> 
    <file src = "mecgrl3.txd" /> 
     
</meta> 
  

function replace () 
txd = engineLoadTXD ("moonbeam.txd") 
engineImportTXD( txd , 418) 
  
dff = engineLoadDFF ("moonbeam.dff", 0 ) 
engineReplaceModel( dff ,418) 
  
txd = engineLoadTXD ("sultan.txd") 
engineImportTXD( txd , 560) 
  
dff = engineLoadDFF ("sultan.dff", 0 ) 
engineReplaceModel( dff ,560) 
  
txd = engineLoadTXD ("shotgspa.txd") 
engineImportTXD( txd , 351) 
  
dff = engineLoadDFF ("shotgspa.dff", 0 ) 
engineReplaceModel( dff ,351) 
  
dff = engineLoadDFF ("mecgrl3.dff") 
engineReplaceModel( dff , 192) 
  
txd = engineLoadTXD ("mecgrl3.txd") 
engineImportTXD( txd , 192) 
end 
addEventHandler("onClientResourceStart",getRootElement(), replace) 

3. i never actually thought of this, i shall go find a ped spawner and replace the dff/txd in the gta3.img and see what happens, thanks for the suggestions :)

Link to comment
  • Moderators
dff = engineLoadDFF ("mecgrl3.dff") 

This function takes two arguments (the second one isn't optional at all !) + every other engineLoadDFF you made put 0 as second argument.

Do the same for this skin too and it will work.

(Also, use [ lua][/lua] tags to paste code instead of [ code][/code]. For xml use: [ code=xml][/code])

Link to comment
dff = engineLoadDFF ("mecgrl3.dff") 

This function takes two arguments (the second one isn't optional at all !) + every other engineLoadDFF you made put 0 as second argument.

Do the same for this skin too and it will work.

Putting the 0 in made it load, tyvm for your assistance, cookies for you, my good sir :)

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...