#Dv^ Posted June 23, 2016 Share Posted June 23, 2016 (edited) Hola, disculpen que moleste pero tengo un problema con el Freeroam, solo pasa cuando doy a crear un vehículo Este es el error Y este es el script que dice que provoca el error function isTimer(timer) return table.find(getTimers(), timer) ~= false end local _isPedDead = isPedDead function isPedDead(player) if isElement(player) then return _isPedDead(player) or isPedTerminated(player) else return false end end function isPedTerminated(player) local x, y, z = getElementPosition(player) return (math.floor(x) == 132 and math.floor(y) == -68) or (math.abs(x) < 2 and math.abs(y) < 2 and z < 1) end function errMsg(msg, player) outputChatBox(msg, player or g_Root, 255, 0, 0) end function table.find(t, ...) local args = { ... } if #args == 0 then for k,v in pairs(t) do if v then return k end end return false end local value = table.remove(args) if value == '[nil]' then value = nil end for k,v in pairs(t) do for i,index in ipairs(args) do if type(index) == 'function' then v = index(v) else if index == '[last]' then index = #v end v = v[index] end end if v == value then return k end end return false end function string:split(separator) if separator == '.' then separator = '%.' end local result = {} for part in self:gmatch('(.-)' .. separator) do result[#result+1] = part end result[#result+1] = self:match('.*' .. separator .. '(.*)$') or self return result end function table.each(t, index, callback, ...) local args = { ... } if type(index) == 'function' then table.insert(args, 1, callback) callback = index index = false end local restart, oldlen repeat restart = false oldlen = #t for k,v in pairs(t) do callback(index and v[index] or v, unpack(args)) if not t[k] or #t ~= oldlen then restart = true break end end until not restart return t end function table.removevalue(t, val) for i,v in ipairs(t) do if v == val then table.remove(t, i) return i end end return false end addEvent("onPlayerCheckForHexCodes", true) addEventHandler("onPlayerCheckForHexCodes", resourceRoot, function () local hexColorsRemoving = get("removeHex") if hexColorsRemoving == "true" then triggerClientEvent(client, "onServerProvideHexCodesSetting", resourceRoot, true) else triggerClientEvent(client, "onServerProvideHexCodesSetting", resourceRoot, false) end end) Muchas Gracias. Edited June 23, 2016 by Guest Link to comment
PDMTA Posted June 23, 2016 Share Posted June 23, 2016 Podrías postear usando el nombre correcto como "Ayuda freeroam" ; "Problema freeroam" ; "Freeroam, error al crear vehiculos" Y no esto: "Ayuda" ; "Problema" ; "Por que pasa esto.?" Muchos usuarios buscan corregir tus mismos errores y usan el buscador, asi se evita repetir post. https://forum.multitheftauto.com/viewtopic.php?f=122&t=59515 Perdona por no poderte ayudar, desconozco ese recurso. Link to comment
#Dv^ Posted June 23, 2016 Author Share Posted June 23, 2016 Dale gracias, ya cambié el nombre del post, gracias de todas formas Link to comment
#Dv^ Posted June 23, 2016 Author Share Posted June 23, 2016 Ya está gracias, tuve que reinstalar todo el servidor de nuevo Link to comment
Recommended Posts