Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fail = {}
- function replaceModel ( iModel, sTXD )
- local pTXD = engineLoadTXD ( "objz/" .. sTXD .. ".txd" )
- if not pTXD then
- -- Loading failed, so reload again to avoid white models.
- if not fail [ iModel ] then
- -- Mostly the texture will re
- fail [ iModel ] = true
- return replaceModel ( iModel, sTXD )
- end
- end
- engineImportTXD ( pTXD, iModel )
- -- replace dff and col here ....
- end
- replaceModel ( 3375, "hello" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement