Jump to content

Spawn de skins com falha.


Recommended Posts

Alguem pode me ajudar, tenho um mod de spwan de skins, no serve local com host local pelo phpMyAdmin e xamp  funciona normal o spawn, ja quando envio pra host não funciona, passo por cima do pickup e nada acontece. Segui o script abaixo:

skin = createPickup (1183.745, -1383.19, 13.601, 3, 1275, 0 )

function pickupskin ( thePlayer )
    local accName = getAccountName(getPlayerAccount(thePlayer))
    if getElementData(thePlayer, "char.factionDuty") == 26 then
     
 setPedSkin ( thePlayer, 276 )
    end
end
addEventHandler ( "onPickupUse", skin, pickupskin )
-- ------------------------------------------------------------------------------------------------
skin2 = createPickup (1178.631, -1383.197, 13.637, 3, 1275, 0 )


function pickupskin2 ( thePlayer )
    local accName = getAccountName(getPlayerAccount(thePlayer))
       if getElementData(thePlayer, "char.factionDuty") == 26 then
     
 setPedSkin ( thePlayer, 231 )
end
end
addEventHandler ( "onPickupUse", skin2, pickupskin2 )
-- ------------------------------------------------------------------------------------------------

skin3 = createPickup (1146.488, -1382.93, 13.859, 3, 1275, 0 )


function pickupskin3 ( thePlayer )
    local accName = getAccountName(getPlayerAccount(thePlayer))
    if getElementData(thePlayer, "char.factionDuty") == 26 then 
     
 setPedSkin ( thePlayer, 274 )
end
end
addEventHandler ( "onPickupUse", skin3, pickupskin3 )
-- ------------------------------------------------------------------------------------------------

skin4 = createPickup (1146.518, -1378.538, 13.858, 3, 1275, 0 )


function pickupskin4 ( thePlayer )
    local accName = getAccountName(getPlayerAccount(thePlayer))
    if getElementData(thePlayer, "char.factionDuty") == 26 then
     
 setPedSkin ( thePlayer, 253 )
end
end
addEventHandler ( "onPickupUse", skin4, pickupskin4 )

-- ------------------------------------------------------------------------------------------------
skin6 = createPickup (1173.732, -1383.5, 13.671, 3, 1275, 0 )


function pickupskin6 ( thePlayer )
    local accName = getAccountName(getPlayerAccount(thePlayer))
    if getElementData(thePlayer, "char.factionDuty") == 26 then
     
 setPedSkin ( thePlayer, 70 )
end
end
addEventHandler ( "onPickupUse", skin6, pickupskin6 )
-- ------------------------------------------------------------------------------------------------
skin7 = createPickup (1169.075, -1383.584, 13.703, 3, 1275, 0 )

function pickupskin7 ( thePlayer )
    local accName = getAccountName(getPlayerAccount(thePlayer))
    if getElementData(thePlayer, "char.factionDuty") == 26 then     
 
 setPedSkin ( thePlayer, 278 )
end
end
addEventHandler ( "onPickupUse", skin7, pickupskin7 )

 

Link to comment
5 hours ago, Cristtk said:

Alguem pode me ajudar, tenho um mod de spwan de skins, no serve local com host local pelo phpMyAdmin e xamp  funciona normal o spawn, ja quando envio pra host não funciona, passo por cima do pickup e nada acontece. Segui o script abaixo:


skin = createPickup (1183.745, -1383.19, 13.601, 3, 1275, 0 )

function pickupskin ( thePlayer )
    local accName = getAccountName(getPlayerAccount(thePlayer))
    if getElementData(thePlayer, "char.factionDuty") == 26 then
     
 setPedSkin ( thePlayer, 276 )
    end
end
addEventHandler ( "onPickupUse", skin, pickupskin )
-- ------------------------------------------------------------------------------------------------
skin2 = createPickup (1178.631, -1383.197, 13.637, 3, 1275, 0 )


function pickupskin2 ( thePlayer )
    local accName = getAccountName(getPlayerAccount(thePlayer))
       if getElementData(thePlayer, "char.factionDuty") == 26 then
     
 setPedSkin ( thePlayer, 231 )
end
end
addEventHandler ( "onPickupUse", skin2, pickupskin2 )
-- ------------------------------------------------------------------------------------------------

skin3 = createPickup (1146.488, -1382.93, 13.859, 3, 1275, 0 )


function pickupskin3 ( thePlayer )
    local accName = getAccountName(getPlayerAccount(thePlayer))
    if getElementData(thePlayer, "char.factionDuty") == 26 then 
     
 setPedSkin ( thePlayer, 274 )
end
end
addEventHandler ( "onPickupUse", skin3, pickupskin3 )
-- ------------------------------------------------------------------------------------------------

skin4 = createPickup (1146.518, -1378.538, 13.858, 3, 1275, 0 )


function pickupskin4 ( thePlayer )
    local accName = getAccountName(getPlayerAccount(thePlayer))
    if getElementData(thePlayer, "char.factionDuty") == 26 then
     
 setPedSkin ( thePlayer, 253 )
end
end
addEventHandler ( "onPickupUse", skin4, pickupskin4 )

-- ------------------------------------------------------------------------------------------------
skin6 = createPickup (1173.732, -1383.5, 13.671, 3, 1275, 0 )


function pickupskin6 ( thePlayer )
    local accName = getAccountName(getPlayerAccount(thePlayer))
    if getElementData(thePlayer, "char.factionDuty") == 26 then
     
 setPedSkin ( thePlayer, 70 )
end
end
addEventHandler ( "onPickupUse", skin6, pickupskin6 )
-- ------------------------------------------------------------------------------------------------
skin7 = createPickup (1169.075, -1383.584, 13.703, 3, 1275, 0 )

function pickupskin7 ( thePlayer )
    local accName = getAccountName(getPlayerAccount(thePlayer))
    if getElementData(thePlayer, "char.factionDuty") == 26 then     
 
 setPedSkin ( thePlayer, 278 )
end
end
addEventHandler ( "onPickupUse", skin7, pickupskin7 )

 

Pode ser algum script seu dando conflito, tente desligar todos e tentar.

  • Thanks 1
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...