txd = engineLoadTXD ( "warehouse.txd" )
engineImportTXD ( txd, 17697 )
dff = engineLoadDFF ( "warehouse.dff", 17697 )
engineReplaceModel ( dff, 17697 )
This is enough, but why did you add an event? and you forgot () at the function in line 1
You can use setGameType and setMapName
Example
addEventHandler("onResrourceStart", resourceRoot,
function()
setGameType("Your gamemode name here")
setMapName("Your map name here")
end
)
setTimer(
function( )
for _, aVehicle in next, getElementsByType 'vehicle' do
if (isElementInWater( aVehicle )) or (getElementHealth(aVehicle) == 0)) then
destroyElement(aVehicle)
end
end
end, 5000, 0
)