-
Posts
459 -
Joined
-
Last visited
Everything posted by FuriouZ
-
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 )
-
Problem should be in your connection, I can download ..
-
This is really amazing job Keep it up!
-
Still don't know what's the problem
-
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)
-
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)
-
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
-
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)
-
Well... Can you see the diffrence huh ?
-
Hey guys! I am more than sure that this is possible in mta: but how ? What I mean is the world rotation
-
Copy the code from wiki and use vaild file name & id's EngineImportTXD or https://community.multitheftauto.com/index.php?p= ... ls&id=2852
-
Yes, we have. https://community.multitheftauto.com/
-
Why don't you search from community ..? https://community.multitheftauto.com/index.php?p= ... ls&id=7766
-
SetElementData GetElementData OnPlayerLogin OnPlayerLogout OnPlayerQuit
-
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!
-
I would like, if you use the same textures what original game uses, then the gameplay will be better Good work tough!
-
Here is something, you should check it out https://community.multitheftauto.com/index.php?p= ... ls&id=6436
-
Only blind people will buy it
-
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.
-
You took thoose images from Need For Speed World, didn't you ? Looks so same Anyways it is so awesome!