Sora Posted December 20, 2012 Share Posted December 20, 2012 hi .. i've found sa:mp maps not .map file , it's a code and it was like that CreateObject i changed it to createObject , and i thought it will work in mta:sa but it's gives me error bad argument @'createObject' [invalid model id] now my question is why does this error appear to me ? does the objects that are exist on sa:mp not exist on mta:sa ? or they are exist but locked for somereason? example : CreateObject(16780,1275.91296387,-1651.30603027,19.69000053,0.00000000,0.00000000,0.00000000) Link to comment
myonlake Posted December 20, 2012 Share Posted December 20, 2012 SA:MP uses the same model IDs as MTA:SA, simply, because they're from the GTA:SA files, you can't really modify them. Have you checked out the Wiki for the correct arguments? https://wiki.multitheftauto.com/wiki/CreateObject object createObject ( int modelid, float x, float y, float z, [ float rx, float ry, float rz, bool isLowLOD = false ] ) Link to comment
Sora Posted December 20, 2012 Author Share Posted December 20, 2012 yeah and it seems right , but the model id seems not exist Link to comment
uhm Posted December 20, 2012 Share Posted December 20, 2012 what object is it? the hot coffee animations were removed but I don't know about objects Link to comment
Sora Posted December 20, 2012 Author Share Posted December 20, 2012 i think it's (ufo_light03) (1) and there also many objects all of them are giving me this error Link to comment
uhm Posted December 20, 2012 Share Posted December 20, 2012 yeah they added a bunch of custom objects http://wiki.sa-mp.com/wiki/Objects_0.3c you could use the engine functions to add those too i suppose Link to comment
Sora Posted December 20, 2012 Author Share Posted December 20, 2012 really how could i? Link to comment
uhm Posted December 21, 2012 Share Posted December 21, 2012 Check out Example 2 at https://wiki.multitheftauto.com/wiki/EngineLoadTXD But the problem is that you would need those custom objects SAMP added (.TXD and .DFF) Those are in C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SAMP\SAMP.img You can extract those files using Spark IMG Editor available at GTAGarage Then there's the point of COL files for collision. Extract AllSAMPCOLs.col from SAMPCOL.img using Spark. It's one file, because it's a library for all of SAMPs objects. Unfortunately, a library file isn't allowed by the MTA function engineLoadCOL. You can use Collision File Editor II to split it into files per object. I can't provide further support on this, because I have never done this myself either. Link to comment
Sora Posted December 21, 2012 Author Share Posted December 21, 2012 Check out Example 2 athttps://wiki.multitheftauto.com/wiki/EngineLoadTXD But the problem is that you would need those custom objects SAMP added (.TXD and .DFF) Those are in C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SAMP\SAMP.img You can extract those files using Spark IMG Editor available at GTAGarage Then there's the point of COL files for collision. Extract AllSAMPCOLs.col from SAMPCOL.img using Spark. It's one file, because it's a library for all of SAMPs objects. Unfortunately, a library file isn't allowed by the MTA function engineLoadCOL. You can use Collision File Editor II to split it into files per object. I can't provide further support on this, because I have never done this myself either. this is more than what i imagined .. thanks for your help i really appreciate your help Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now