Jump to content

Ped gets out of vehicle


Saml1er

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...