Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: enginereplacemodel
1. engineReplaceModel
Mam pytanie, czy da?o by si? randomowo bra? modele? W sensie takim ?e teksture randomowo by bra?o.
2. engineReplaceModel
Witam, mam problem mianowicie po wgraniu podmianki pojazdu do modloadera i zresetowaniu go pojawia si? b??d i owej podmianki nie wgrywa. Pozosta?e tak.

DB3:

WARNING: modloader/replace_c:25: bad usage @ 'engineReplaceModel' [Model ID 482 Replace Failed]

Pliki s? dobrze nazwane burrito.txd i burrito.dff

Kod replace_c - je?li komu? potrzebny.

[lua]local allowCollisions = false -- Change this to true if you want to enable custom collisions! Please note that his might be unstable on some clients though!
local maxVehicles = 10 -- This represents the maximum amount of vehicles to be replaced again for it's custom collision. More vehicles means more lagg, less vehicles means more time.





----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------

function loadMod ( modDir, file, model )
local txdFile = modDir.."/"..file..".txd"
local dffFile = modDir.."/"..file..".dff"

if fileExists ( txdFile ) then
outputConsole ( "Replaced TXD for vehicle "..file.." on ID "..tostring(model) )
local txd = engineLoadTXD ( txdFile )
engineImportTXD ( txd, model )
end

if fileExists ( dffFile ) then
outpu...