Jump to content

[SOLVED] Collision bug, read this if you're facing same prob


Newbie

Recommended Posts

Posted (edited)

Im getting strange collision bug for object: vcarshade

This bug only happens sometimes, i can drive through the object..

I've tryed to:

Server

function RestoreCols ( ) 
    triggerClientEvent ( "collisionRestore", getRootElement(), collisionRestore ) 
end 
addCommandHandler("eik", RestoreCols) 
  
function RestoreModel ( ) 
    triggerClientEvent ( "restoreClientModel", getRootElement(), restoreClientModel ) 
end 
addCommandHandler( "nx", RestoreModel ) 
  

Client

function RestoreCollision ( ) 
    engineRestoreCOL ( 8557 ) 
    engineRestoreCOL ( 8558 ) 
    engineRestoreCOL ( 3458 ) 
    engineRestoreCOL ( 8838 )    
end 
addEvent ( "collisionRestore", true ) 
addEventHandler ( "collisionRestore", getRootElement(), RestoreCollision ) 
  
function ResetModel ( ) 
    engineRestoreModel ( 8557  ) 
    engineRestoreModel ( 8558  ) 
    engineRestoreModel ( 3458  ) 
    engineRestoreModel ( 8838  )    -- Object / Vehicle to restore to default GTA one. 
end 
  
addEvent ( "restoreClientModel", true ) 
addEventHandler ( "restoreClientModel", getRootElement(), ResetModel ) 

Does have no effect.. Im getting annoying by this bug

Edited by Guest
Posted

Alright, i fixed it.

If someone faces same problem the answer is inside the maps, i found a map which loads .COL and .DFF, and then affects all other maps on the server, and if i join other server, same shit happens, it crashes MTA engine.

Hope this post will be helpful!

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