Saml1er Posted July 28, 2014 Share Posted July 28, 2014 Hello! I have a shooter map and I saw that there is a script : function palm () palmtxd = engineLoadTXD("Bullet.txd") engineImportTXD(palmtxd, 541) local palmdff = engineLoadDFF('Bullet.dff', 0) engineReplaceModel(palmdff, 541) end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), palm ) When the map is loaded + Players are warped into vehicles then those textures are loaded and when they are loaded then ped is removed from vehicle. But if I use this: palmtxd = engineLoadTXD("Bullet.txd") engineImportTXD(palmtxd, 541) local palmdff = engineLoadDFF('Bullet.dff', 0) engineReplaceModel(palmdff, 541) Then everything works fine. The source of onClientResourceStart event is causing this.. Hmmm.. I really dunno why is this even happening because loading textures has nothing to do with removing ped from vehicle. If I don't find a good solution then I'll load the map scripts first and then warp peds into vehicles. Is this MTA bug? NOTE: I'm using a custom gamemode. Link to comment
tosfera Posted July 28, 2014 Share Posted July 28, 2014 It's not a bug, you can just see it as a small problem with the way how Lua is being executed. I'm sure if you put a timer around the warpPedIntoVehicle that it'll work. Make sure everyone downloaded the models before warping them, the loading takes less that 0.5s. Yes.. MTA Bug ! So what you are saying is total bullsh*t. No offence Link to comment
Saml1er Posted July 28, 2014 Author Share Posted July 28, 2014 Yes.. MTA Bug ! Maybe It's not a bug, you can just see it as a small problem with the way how Lua is being executed. I'm sure if you put a timer around the warpPedIntoVehicle that it'll work. Make sure everyone downloaded the models before warping them, the loading takes less that 0.5s. Yes.. MTA Bug ! So what you are saying is total bullsh*t. No offence Players are warped into vehicles 6 seconds before loading textures. Link to comment
Max+ Posted July 28, 2014 Share Posted July 28, 2014 use setTimer to load them before they warp into car .. 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