Jump to content

FuriouZ

Members
  • Posts

    459
  • Joined

  • Last visited

Everything posted by FuriouZ

  1. FuriouZ

    Question

    Thanks man! There was still some problems, but i fixed them myself
  2. FuriouZ

    Question

    playerAccount is:userdata: 02000039Skin is285 As i understant, save system doesn't work or what ?
  3. FuriouZ

    Question

    Hey all! I have problem, when player respawns, then only his money is saved, skin, weapon all other stuff is gone.. How to fix it ? Save-system respawn server: addEventHandler ( "onPlayerWasted", root, function ( ) local playeraccount = getPlayerAccount ( source ) local playerSkin = getAccountData (playeraccount, "save.skin") spawnPlayer( source, 1182.04358, -2223.13159, 43.62173, playerSkin ) end )
  4. Problem should be in your connection, I can download ..
  5. This is really amazing job Keep it up!
  6. Still don't know what's the problem
  7. Almost works, but camera stays in one positsion, I tryed setCameraTarget to the localPlayer and theVehicle, but if I used localPlayer, then world didn't rotate and if theVehicle, then camera stayed in one pos like without setCameraTarget.. addEventHandler("onClientPreRender", root, function(thePlayer) local theVehicle = getPedOccupiedVehicle ( localPlayer ) if not ( theVehicle ) then return end local eM = getElementMatrix( theVehicle ) local x, y, z, lx, ly, lz = getCameraMatrix() local pitch = math.deg( math.asin( eM[2][3] ) ) -- (-90,90) local roll = math.deg( math.atan2( eM[1][3], eM[3][3] ) ) --(-180,180) local yaw = math.deg( math.atan2( eM[2][1], eM[2][2] ) ) --(-180,180) -- if ( getVehicleType( source ) == "Plane" ) then setCameraMatrix ( x, y, z, lx, ly, lz, roll) --setCameraTarget( theVehicle ) --end end)
  8. What I am doing wrong.. Code is messed up I do not neeed x, y, z or or only z ? Damn I am dumb addEventHandler("onClientVehicleEnter", root, function(theVehicle, seat, jacked) local eM = getElementMatrix( theVehicle ) local x, y, z, lx, ly, lz = getCameraMatrix( theVehicle ) local pitch = math.deg( math.asin( eM[2][3] ) ) -- (-90,90) local roll = math.deg( math.atan2( eM[1][3], eM[3][3] ) ) --(-180,180) - You should only need this one (roll) local yaw = math.deg( math.atan2( eM[2][1], eM[2][2] ) ) --(-180,180) if (isPedInVehicle( getLocalPlayer() )) then if ( getVehicleType( source ) == "Plane" ) then --setElementMatrix ( theVehicle, roll, y, z, lx, ly, lz) setCameraMatrix ( theVehicle, roll, x, y, z, lx, ly, lz) end end end)
  9. Lua: ( Make sure your file is named to client(.lua) ) I haven't worked with replacements for a while, but it should be working. function replaceModel() txd = engineLoadTXD("test.txd", 33 ) engineImportTXD(dff, 33) dff = engineLoadDFF("test.dff", 33 ) engineReplaceModel(dff, 33) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) Meta: </meta> <info author="None" name="None" type="script" version="1.0"></info> <!-- #Scripts --> <script src="client.lua" type="client"></script> <script src="test.txd" type="server"></script> <script src="test.dff" type="server"></script> </meta> Anyways, as far as I know, you can't replace CJ skin
  10. Jeez, I am dumb in Matrix functions... So I have to set the matrix to the plane ? I don't get it, I need to use only roll, right ? but the damn script needs 3rd argument, then 4,5 ... Code makes no sense addEventHandler("onClientVehicleEnter", root, function(theVehicle, seat, jacked) local m = getElementMatrix( theVehicle ) local pitch = math.deg( math.asin( m[2][3] ) ) -- (-90,90) local roll = math.deg( math.atan2( m[1][3], m[3][3] ) ) --(-180,180) - You should only need this one (roll) local yaw = math.deg( math.atan2( m[2][1], m[2][2] ) ) --(-180,180) if (isPedInVehicle( getLocalPlayer() )) then setElementMatrix ( theVehicle, roll) end end)
  11. Well... Can you see the diffrence huh ?
  12. Hey guys! I am more than sure that this is possible in mta: but how ? What I mean is the world rotation
  13. Copy the code from wiki and use vaild file name & id's EngineImportTXD or https://community.multitheftauto.com/index.php?p= ... ls&id=2852
  14. Yes, we have. https://community.multitheftauto.com/
  15. Why don't you search from community ..? https://community.multitheftauto.com/index.php?p= ... ls&id=7766
  16. FuriouZ

    save ?

    SetElementData GetElementData OnPlayerLogin OnPlayerLogout OnPlayerQuit
  17. FuriouZ

    Trains

    Do you mean THIS ?
  18. MTA is going better and BETTER, thanks for the new version of it ! I hope that one day, there are servers over 1000 and more players, it will be amazing and gread fun to play!
  19. I would like, if you use the same textures what original game uses, then the gameplay will be better Good work tough!
  20. Here is something, you should check it out https://community.multitheftauto.com/index.php?p= ... ls&id=6436
  21. http://mtasource.net/
  22. FuriouZ

    Object id ?

    Bump. Any other way to get know the id or remove this object without knowing the id ? I don't know if I'm blind , but I can't see this object in "Night time" Category.
  23. You took thoose images from Need For Speed World, didn't you ? Looks so same Anyways it is so awesome!
×
×
  • Create New...