Jump to content

Script unmodallvehicles & modallvehicles


Madalin

Recommended Posts

Poftim :

  
----CLIENT----- 
function mod() 
        ---Elegant 
        local ElechangeTXD = engineLoadTXD ("vehicles/elegant.txd") 
        local ElechangeDFF = engineLoadDFF ("vehicles/elegant.dff") 
        engineImportTXD ( ElechangeTXD,  507 ) 
        engineReplaceModel (ElechangeDFF,  507) 
        ---Infernus 
        local InfchangeTXD = engineLoadTXD ("vehicles/infernust.txd") 
        local InfchangeDFF = engineLoadDFF ("vehicles/infernus.dff") 
        engineImportTXD ( InfchangeTXD, 411 ) 
        engineReplaceModel (InfchangeDFF,  411) 
  
end 
addCommandHandler ( "loadMods", mod ) 
function unloadMod () 
        ---Elengat 
        local exists = fileExists ( "vehicles/elegant.txd" ) 
        if exists then 
        engineRestoreModel (  507 ) 
        end 
        ---Infernus 
        local exists = fileExists ( "vehicles/infernus.txd" ) 
        if exists then 
        engineRestoreModel (  411 ) 
end 
end 
addCommandHandler ( "unloadMods", unloadMod  ) 

Treaba asta merge simplificata dar acum chiar nu stiu cum..am sa incerc sa o fac mai simpla pana atunci foloseste asta.

Dar iti zic ,acest script este foarte periculos din cauza ca multi ar putea lua crash daca toate masinile sunt incarcate deodata. Acest script este bunt pentru 1 - 5 masini.

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