Feche1320 Posted April 21, 2012 Share Posted April 21, 2012 Sometimes when I use setElementModel on vehicles, it crashes my client and I have to close it by task killing it (ctrl+alt+del), any ideas of why? Thanks Link to comment
arezu Posted April 21, 2012 Share Posted April 21, 2012 I never get this problem, but have you tried using it on both in server and client script? Link to comment
Feche1320 Posted April 22, 2012 Author Share Posted April 22, 2012 I am currently using this script server side: elseif col.tp == "vehiclechange" then if getElementModel(veh) ~= tonumber(col.model) then setElementModel(veh, col.model) triggerClientEvent(player, "onPickUpSetPosition", veh) playSoundFrontEnd(player, 46) triggerEvent("onRacePickupPickUp", player, col.tp, tonumber(col.model)) for i, playa in ipairs(getElementsByType("player")) do if isClientReady(playa) then triggerClientEvent(playa, "onClientRacePickupPickUp", player, col.tp, tonumber(col.model)) end end end end Sometimes, very random, screen freezes, and MTA aswell, to close it i have to use task manager. Bug tracker? Nah they won't even read it, I have 9 open tickets atm since 1 - 2 month. 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