XetaQuake Posted January 9, 2008 Share Posted January 9, 2008 Thats a known problem with custom vehicles you are sitting in the middle of the vehicle. yes i have the same problem, it is not so nice will this fixed, so i can build my gamemode with new vehicles and this problem is in the future away? Link to comment
CJGrove Posted January 10, 2008 Share Posted January 10, 2008 Thats a known problem with custom vehicles you are sitting in the middle of the vehicle. yes i have the same problem, it is not so nice will this fixed, so i can build my gamemode with new vehicles and this problem is in the future away? I hope... this is still a preview so... We will wait... Link to comment
Guest Posted January 13, 2008 Share Posted January 13, 2008 function replaceModel() local thePlayerName = getClientName ( source ) outputChatBox ( "--> " .. thePlayerName .. " your custom models have been installed!" , source, 0, 255, 0 ) playSoundFrontEnd ( source, 46 ) dff = engineLoadDFF( "models/bmx.dff", 481) engineReplaceModel( dff, 481) zr = engineLoadDFF ("models/zr350.dff", 477) engineReplaceModel ( zr, 477 ) txd = engineLoadTXD( "models/bmx.txd" ) engineImportTXD( txd, 481) txd1 = engineLoadTXD ("models/monsterb.txd") engineImportTXD ( txd1, 557 ) txd2 = engineLoadTXD ("models/zr350.txd") engineImportTXD ( txd2, 477 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) Meta: <meta> <info author="vkamster" name="Ourcomm Freeroam Addins" version="1" type="script" /> <script src="scripts/models.lua" type="client" /> <file src="models/bmx.dff" /> <file src="models/bmx.txd" /> <file src="models/monsterb.txd" /> <file src="models/zr350.txd" /> <file src="models/zr350.dff" /> </meta> This has been irritating me still cannot get it to even load the script (i would now as it should output to chat box, and play a sound) help please Link to comment
CJGrove Posted January 13, 2008 Share Posted January 13, 2008 function replaceModel() local thePlayerName = getClientName ( source ) outputChatBox ( "--> " .. thePlayerName .. " your custom models have been installed!" , source, 0, 255, 0 ) playSoundFrontEnd ( source, 46 ) dff = engineLoadDFF( "models/bmx.dff", 481) engineReplaceModel( dff, 481) zr = engineLoadDFF ("models/zr350.dff", 477) engineReplaceModel ( zr, 477 ) txd = engineLoadTXD( "models/bmx.txd" ) engineImportTXD( txd, 481) txd1 = engineLoadTXD ("models/monsterb.txd") engineImportTXD ( txd1, 557 ) txd2 = engineLoadTXD ("models/zr350.txd") engineImportTXD ( txd2, 477 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) Meta: <meta> <info author="vkamster" name="Ourcomm Freeroam Addins" version="1" type="script" /> <script src="scripts/models.lua" type="client" /> <file src="models/bmx.dff" /> <file src="models/bmx.txd" /> <file src="models/monsterb.txd" /> <file src="models/zr350.txd" /> <file src="models/zr350.dff" /> </meta> This has been irritating me still cannot get it to even load the script (i would now as it should output to chat box, and play a sound) help please Try to make for evry custom vehicle a new resoucre and load them resource for resource Link to comment
CJGrove Posted January 15, 2008 Share Posted January 15, 2008 I have no idea of this works but you can try right? function replaceModel() local playername = getClientName ( source ) if ( playername ) then outputChatBox ( "--> " .. thePlayerName .. " your custom models have been installed!" , source, 0, 255, 0 ) playSoundFrontEnd ( source, 46 ) end txd = engineLoadTXD ( "models/bmx.txd", 481 ) engineImportTXD ( txd, 481 ) dff = engineLoadDFF ( "models/bmx.dff", 481 ) engineReplaceModel ( dff, 481 ) txd = engineLoadTXD ( "models/zr350.txd", 477 ) engineImportTXD ( txd, 477 ) dff = engineLoadDFF ( "models/zr350.dff", 477 ) engineReplaceModel ( dff, 477 ) end addCommandHandler ( "cmodels", replaceModel) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now