I done the following, now I'm just having a issue with the car not showing up any suggestions ? I copied the freeroam the one that came with the MTA install and I put the lines in the meta.xml and then I put the lines of the TXD and DFF under the OnClientResourceStarted like this:
addEventHandler('onClientResourceStart', g_ResRoot,getResourceRootElement(getThisResource()), ClientStarted )
function()
fadeCamera(true)
setTimer(getPlayers, 1000, 1)
bindKey('f1', 'down', toggleFRWindow)
createWindow(wndMain)
hideAllWindows()
txd = engineLoadTXD ("infernus.txd")
engineImportTXD (txd, 411)
dff = engineLoadDFF ("infernus.dff")
engineReplaceModel (dff, 411)
guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), doesPedHaveJetPack(g_Me))
guiCheckBoxSetSelected(getControl(wndMain, 'falloff'), canPedBeKnockedOffBike(g_Me))
setJetpackMaxHeight ( 9001 )
triggerServerEvent('onLoadedAtClient', g_ResRoot, g_Me)
end
)
I merged the code from this into the code above this one.
function ClientStarted()
txd = engineLoadTXD ("infernus.txd")
engineImportTXD (txd, 411)
dff = engineLoadDFF ("infernus.dff")
engineReplaceModel (dff, 411)
end