Jump to content

MTASA 1.2.0


Killerbee_x.

Recommended Posts

Hey guys,

I've got a problem, again.

somehow the plain race resource won't work on my 1.2.0 mtaserver,

it keeps giving me errors (see picture):

picturef.png

Can someone help me?

Thanks,

Killerbee_x

SoH Community

        if g_MapOptions.skins == 'cj' then 
            spawnPlayer(player, x + 4, y, z, 0, 0) 
             
            local clothes = { [16] = math.random(12, 13), [17] = 7 }    -- 16=Hats(12:helmet 13:moto) 17=Extra(7:garageleg) 
            for vehicles,vehicleclothes in pairs(g_VehicleClothes) do 
                if table.find(vehicles, spawnpoint.vehicle) then 
                    for type,index in pairs(vehicleclothes) do 
                        clothes[type] = index or nil 
                    end 
                end 
            end 
            local texture, model 
            for type,index in pairs(clothes) do 
                texture, model = getClothesByTypeIndex(type, index) 
                addPedClothes(player, texture, model, type) 
            end 
        elseif g_MapOptions.skins == 'random' then 
            repeat until spawnPlayer(player, x + 4, y, z, 0, math.random(9, 288)) 
        else 
            local ok 
            for i=1,20 do 
                ok = spawnPlayer(player, x + 4, y, z, 0, getRandomFromRangeList(g_MapOptions.skins)) 
                if ok then break end 
            end 
            if not ok then 
                spawnPlayer(player, x + 4, y, z, 0, 264) 
            end 
        end 

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...