hello i want active txd and dff Without bearing the file on the other party
-- Server
addCommandHandler ( "LoadCar" , function ( player )
local txd1,dff1 = fileOpen ( ":car/576.txd" ) , fileOpen ( ":car/576.dff" )
if ( txd1 and dff1 ) then
local txd,dff = fileRead ( txd1 , fileGetSize ( txd1 ) ) , fileRead ( dff1 , fileGetSize ( dff1 ) )
triggerLatentClientEvent ( player , "acceptCar" , 5000,false,player,txd,dff)
print(tostring(fileGetSize ( txd1 )))
print(tostring(fileGetSize ( dff1 )))
fileClose ( txd1 )
fileClose ( dff1 )
end
end )
-- Client
addEvent ( "acceptCar" , true )
addEventHandler ( "acceptCar" , root , function ( t1 , d1 )
print("done1")
txd1 = engineLoadTXD ( t1 )
dff1 = engineLoadDFF ( d1,576 )
engineImportTXD ( txd1, 576 )
engineReplaceModel ( dff1, 576 )
end )
sorry for bad language