Cristtk Posted October 10, 2019 Share Posted October 10, 2019 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
beast99 Posted October 10, 2019 Share Posted October 10, 2019 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. 1 Link to comment
Cristtk Posted October 11, 2019 Author Share Posted October 11, 2019 Certeza que pode ser conflito? Não pode ser algum erro no código? Pois uso banco de dados MYSQL. Link to comment
DNL291 Posted October 11, 2019 Share Posted October 11, 2019 Esse código não tem nada a ver com o banco de dados mencionado. Faça uma depuração com o script na hospedagem, provavelmente é um problema relacionado a Lua. 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