Jump to content

Ayuda freeroam


#Dv^

Recommended Posts

Hola, disculpen que moleste pero tengo un problema con el Freeroam, solo pasa cuando doy a crear un vehículo

Este es el error

thump_9610168sin-ttulo.jpg

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 by Guest
Link to comment
  • Recently Browsing   0 members

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