Jump to content

Need Help


Recommended Posts

  
  
  
  
  
---doubleside1--- 
  
marker1 = createMarker(6016.0307617188, -1730.1287841797, 1.5, "corona", 20, 0, 0, 0, 0) 
marker2 = createMarker(6016.0307617188, -1623.4001464844, 1.5, "corona", 20, 0, 0, 0, 0) 
  
function doubleside1(player) 
if getElementType(player)== "player" then 
     local vehicle = getPedOccupiedVehicle(player) 
        if source == marker1 then 
obz1 = createobject(8558,6485.0537109375,-1677.0556640625,6.7493000030518,0,14.9853515625,19.984130859375) 
obz2 = createObject(8558,6505.115234375,-1658.861328125,1.696936249733,0,7.7838134765625,19.978637695313) 
obz3 = createobject(8558,6483.2880859375,-1672.251953125,6.7493000030518,0,14.9853515625,19.97314453125) 
obz4 = createobject(8558,6483.2880859375,-1672.251953125,6.7493000030518,0,14.9853515625,19.978637695313) 
obz5 = createobject(8558,6489.71875,-1675.3583984375,5.4867043495178,0,13.546142578125,19.984130859375) 
obz6 = createobject(8558,6494.4111328125,-1673.6513671875,4.349250793457,0,12.10693359375,19.984130859375) 
obz7 = createobject(8558,6487.953125,-1670.5546875,5.4871802330017,0,13.540649414063,19.978637695313) 
obz8 = createobject(8558,6492.646484375,-1668.8486328125,4.3502054214478,0,12.101440429688,19.978637695313) 
obz9 = createobject(8558,6481.5361328125,-1667.4365234375,6.7493000030518,0,14.9853515625,19.984130859375) 
obz10 = createobject(8558,6481.5361328125,-1667.4365234375,6.7493000030518,0,14.9853515625,19.984130859375) 
obz11 = createObject(8558,6490.89453125,-1664.033203125,4.3502054214478,0,12.101440429688,19.978637695313) 
obz12 = createObject(3458,6499.1298828125,-1671.9345703125,3.3376579284668,0,10.662231445313,19.978637695313) 
obz13 = createObject(3458,6497.365234375,-1667.1318359375,3.3390729427338,0,10.65673828125,19.97314453125) 
obz14 = createObject(3458,6495.61328125,-1662.31640625,3.3390729427338,0,10.65673828125,19.97314453125) 
obz15 = createObject(8558,6486.201171875,-1665.7392578125,5.4871802330017,0,13.540649414063,19.978637695313) 
obz16 = createObject(8558,6503.87109375,-1670.2099609375,2.4525649547577,0,9.228515625,19.984130859375) 
obz17 = createObject(8558,6502.1064453125,-1665.408203125,2.4544847011566,0,9.2230224609375,19.978637695313) 
obz18 = createObject(8558,6500.3544921875,-1660.5927734375,2.4544847011566,0,9.2230224609375,19.978637695313) 
obz19 = createObject(8558,6508.6318359375,-1668.478515625,1.6945308446884,0,7.789306640625,19.984130859375) 
obz20 = createObject(8558,6506.8671875,-1663.6767578125,1.696936249733,0,7.7838134765625,19.978637695313) 
obz2 = createObject(8558,6505.115234375,-1658.861328125,1.696936249733,0,7.7838134765625,19.978637695313) 
and 
setElementAlpha( obz1, 0) 
setElementAlpha( obz2, 0) 
setElementAlpha ( obz3, 0) 
setElementAlpha ( obz4, 0) 
setElementAlpha ( obz5, 0) 
setElementAlpha ( obz6, 0) 
setElementAlpha ( obz7, 0) 
setElementAlpha ( obz8, 0) 
setElementAlpha ( obz9, 0) 
setElementAlpha ( obz10, 0) 
setElementAlpha ( obz11, 0) 
setElementAlpha ( obz12, 0) 
setElementAlpha ( obz13, 0) 
setElementAlpha ( obz14, 0) 
setElementAlpha ( obz15, 0) 
setElementAlpha ( obz16, 0) 
setElementAlpha ( obz17, 0) 
setElementAlpha ( obz18, 0) 
setElementAlpha ( obz19, 0) 
setElementAlpha ( obz20, 0) 
  
  
elseif source == marker2 then 
  
obx1 = createObject(8558,6481.52734375,-1685.2333984375,6.7493000030518,0,14.9853515625,339.99938964844) 
obx2 = createObject(8558,6483.2783203125,-1680.4296875,6.7493000030518,0,14.9853515625,339.99938964844) 
obx3 = createObject(8558,6481.52734375,-1685.2333984375,6.7493000030518,0,14.9853515625,339.99938964844) 
obx4 = createObject(8558,6486.19140625,-1686.9306640625,5.4871802330017,0,13.540649414063,339.99938964844) 
obx5 = createObject(8558,6490.884765625,-1688.638671875,4.3502054214478,0,12.101440429688,339.99938964844) 
obx6 = createObject(8558,6483.2783203125,-1680.4296875,6.7493000030518,0,14.9853515625,339.99938964844) 
obx7 = createObject(8558,6487.9423828125,-1682.126953125,5.4871802330017,0,13.540649414063,339.99938964844) 
obx8 = createObject(8558,6492.6357421875,-1683.8349609375,4.3502054214478,0,12.101440429688,339.99938964844) 
obx9 = createObject(8558,6485.0068359375,-1675.6533203125,6.7493000030518,0,14.9853515625,339.99938964844) 
obx10 = createObject(3458,6499.0830078125,-1680.7763671875,3.3390729427338,0,10.65673828125,339.99938964844) 
obx11 = createObject(3458,6497.3544921875,-1685.552734375,3.3390729427338,0,10.65673828125,339.99938964844) 
obx12 = createObject(3458,6495.603515625,-1690.3564453125,3.3390729427338,0,10.65673828125,339.99938964844) 
obx13 = createObject(8558,6494.3642578125,-1679.05859375,4.3502054214478,0,12.101440429688,339.99938964844) 
obx14 =  createObject(8558,6505.103515625,-1693.814453125,1.696936249733,0,7.7838134765625,339.99938964844) 
obx15 = createObject(8558,6489.6708984375,-1677.3505859375,5.4871802330017,0,13.540649414063,339.99938964844) 
obx16 = createObject(8558,6500.34375,-1692.08203125,2.4544847011566,0,9.2230224609375,339.99938964844) 
obx17 = createObject(8558,6502.0947265625,-1687.2783203125,2.4544847011566,0,9.2230224609375,339.99938964844) 
obx18 = createObject(8558,6503.8232421875,-1682.501953125,2.4544847011566,0,9.2230224609375,339.99938964844) 
obx19 = createObject(8558,6508.5830078125,-1684.234375,1.696936249733,0,7.7838134765625,339.99938964844) 
obx20 =  createObject(8558,6506.8544921875,-1689.0107421875,1.696936249733,0,7.7838134765625,339.99938964844) 
  
and 
setElementAlpha ( obx1, 0) 
setElementAlpha ( obx2, 0) 
setElementAlpha ( obx3, 0) 
setElementAlpha ( obx4, 0) 
setElementAlpha ( obx5, 0) 
setElementAlpha ( obx6, 0) 
setElementAlpha ( obx7, 0) 
setElementAlpha ( obx8, 0) 
setElementAlpha ( obx9, 0) 
setElementAlpha ( obx10, 0) 
setElementAlpha ( obx11, 0) 
setElementAlpha ( obx12, 0) 
setElementAlpha ( obx13, 0) 
setElementAlpha ( obx14, 0) 
setElementAlpha ( obx15, 0) 
setElementAlpha ( obx16, 0) 
setElementAlpha ( obx17, 0) 
setElementAlpha ( obx18, 0) 
setElementAlpha ( obx19, 0) 
setElementAlpha ( obx20, 0) 
  
  
  
end 
end 
end 
  
addEventHandler("onClientMarkerHit", resourceRoot, doubleside1) 
  
  

bisogno di fix

Tocco il marker1 debugscript: ERROR:linea15,attempt to call global "createobject" a nil value

gli oggetti non vengono creati.

Tocco il marker2 debugscript : WARNING: linea102, badargument "setElementAlpha" ....

gli oggetti vengono creati con invisibilità apparte uno(obx20), che non è invisible.

Link to comment

strunz(n2o)

ho messo tutto apposto per ciò che riguardava createobject...

continua a creare un oggetto(obx20) senza trasparenza

  
  
  
  
  
---doubleside1--- 
  
marker1 = createMarker(6016.0307617188, -1730.1287841797, 1.5, "corona", 20, 0, 0, 0, 0) 
marker2 = createMarker(6016.0307617188, -1623.4001464844, 1.5, "corona", 20, 0, 0, 0, 0) 
  
function doubleside1(player) 
if getElementType(player)== "player" then 
     local vehicle = getPedOccupiedVehicle(player) 
        if source == marker1 then 
obz1 = createObject(8558,6485.0537109375,-1677.0556640625,6.7493000030518,0,14.9853515625,19.984130859375) 
obz2 = createObject(8558,6505.115234375,-1658.861328125,1.696936249733,0,7.7838134765625,19.978637695313) 
obz3 = createObject(8558,6483.2880859375,-1672.251953125,6.7493000030518,0,14.9853515625,19.97314453125) 
obz4 = createObject(8558,6483.2880859375,-1672.251953125,6.7493000030518,0,14.9853515625,19.978637695313) 
obz5 = createObject(8558,6489.71875,-1675.3583984375,5.4867043495178,0,13.546142578125,19.984130859375) 
obz6 = createObject(8558,6494.4111328125,-1673.6513671875,4.349250793457,0,12.10693359375,19.984130859375) 
obz7 = createObject(8558,6487.953125,-1670.5546875,5.4871802330017,0,13.540649414063,19.978637695313) 
obz8 = createObject(8558,6492.646484375,-1668.8486328125,4.3502054214478,0,12.101440429688,19.978637695313) 
obz9 = createObject(8558,6481.5361328125,-1667.4365234375,6.7493000030518,0,14.9853515625,19.984130859375) 
obz10 = createObject(8558,6481.5361328125,-1667.4365234375,6.7493000030518,0,14.9853515625,19.984130859375) 
obz11 = createObject(8558,6490.89453125,-1664.033203125,4.3502054214478,0,12.101440429688,19.978637695313) 
obz12 = createObject(3458,6499.1298828125,-1671.9345703125,3.3376579284668,0,10.662231445313,19.978637695313) 
obz13 = createObject(3458,6497.365234375,-1667.1318359375,3.3390729427338,0,10.65673828125,19.97314453125) 
obz14 = createObject(3458,6495.61328125,-1662.31640625,3.3390729427338,0,10.65673828125,19.97314453125) 
obz15 = createObject(8558,6486.201171875,-1665.7392578125,5.4871802330017,0,13.540649414063,19.978637695313) 
obz16 = createObject(8558,6503.87109375,-1670.2099609375,2.4525649547577,0,9.228515625,19.984130859375) 
obz17 = createObject(8558,6502.1064453125,-1665.408203125,2.4544847011566,0,9.2230224609375,19.978637695313) 
obz18 = createObject(8558,6500.3544921875,-1660.5927734375,2.4544847011566,0,9.2230224609375,19.978637695313) 
obz19 = createObject(8558,6508.6318359375,-1668.478515625,1.6945308446884,0,7.789306640625,19.984130859375) 
obz20 = createObject(8558,6506.8671875,-1663.6767578125,1.696936249733,0,7.7838134765625,19.978637695313) 
obz2 = createObject(8558,6505.115234375,-1658.861328125,1.696936249733,0,7.7838134765625,19.978637695313) 
and 
setElementAlpha ( obz1, 0) 
setElementAlpha ( obz2, 0) 
setElementAlpha ( obz3, 0) 
setElementAlpha ( obz4, 0) 
setElementAlpha ( obz5, 0) 
setElementAlpha ( obz6, 0) 
setElementAlpha ( obz7, 0) 
setElementAlpha ( obz8, 0) 
setElementAlpha ( obz9, 0) 
setElementAlpha ( obz10, 0) 
setElementAlpha ( obz11, 0) 
setElementAlpha ( obz12, 0) 
setElementAlpha ( obz13, 0) 
setElementAlpha ( obz14, 0) 
setElementAlpha ( obz15, 0) 
setElementAlpha ( obz16, 0) 
setElementAlpha ( obz17, 0) 
setElementAlpha ( obz18, 0) 
setElementAlpha ( obz19, 0) 
setElementAlpha ( obz20, 0) 
  
  
elseif source == marker2 then 
  
obx1 = createObject(8558,6481.52734375,-1685.2333984375,6.7493000030518,0,14.9853515625,339.99938964844) 
obx2 = createObject(8558,6483.2783203125,-1680.4296875,6.7493000030518,0,14.9853515625,339.99938964844) 
obx3 = createObject(8558,6481.52734375,-1685.2333984375,6.7493000030518,0,14.9853515625,339.99938964844) 
obx4 = createObject(8558,6486.19140625,-1686.9306640625,5.4871802330017,0,13.540649414063,339.99938964844) 
obx5 = createObject(8558,6490.884765625,-1688.638671875,4.3502054214478,0,12.101440429688,339.99938964844) 
obx6 = createObject(8558,6483.2783203125,-1680.4296875,6.7493000030518,0,14.9853515625,339.99938964844) 
obx7 = createObject(8558,6487.9423828125,-1682.126953125,5.4871802330017,0,13.540649414063,339.99938964844) 
obx8 = createObject(8558,6492.6357421875,-1683.8349609375,4.3502054214478,0,12.101440429688,339.99938964844) 
obx9 = createObject(8558,6485.0068359375,-1675.6533203125,6.7493000030518,0,14.9853515625,339.99938964844) 
obx10 = createObject(3458,6499.0830078125,-1680.7763671875,3.3390729427338,0,10.65673828125,339.99938964844) 
obx11 = createObject(3458,6497.3544921875,-1685.552734375,3.3390729427338,0,10.65673828125,339.99938964844) 
obx12 = createObject(3458,6495.603515625,-1690.3564453125,3.3390729427338,0,10.65673828125,339.99938964844) 
obx13 = createObject(8558,6494.3642578125,-1679.05859375,4.3502054214478,0,12.101440429688,339.99938964844) 
obx14 = createObject(8558,6505.103515625,-1693.814453125,1.696936249733,0,7.7838134765625,339.99938964844) 
obx15 = createObject(8558,6489.6708984375,-1677.3505859375,5.4871802330017,0,13.540649414063,339.99938964844) 
obx16 = createObject(8558,6500.34375,-1692.08203125,2.4544847011566,0,9.2230224609375,339.99938964844) 
obx17 = createObject(8558,6502.0947265625,-1687.2783203125,2.4544847011566,0,9.2230224609375,339.99938964844) 
obx18 = createObject(8558,6503.8232421875,-1682.501953125,2.4544847011566,0,9.2230224609375,339.99938964844) 
obx19 = createObject(8558,6508.5830078125,-1684.234375,1.696936249733,0,7.7838134765625,339.99938964844) 
obx20 = createObject(8558,6506.8544921875,-1689.0107421875,1.696936249733,0,7.7838134765625,339.99938964844) 
  
and 
setElementAlpha ( obx1, 0) 
setElementAlpha ( obx2, 0) 
setElementAlpha ( obx3, 0) 
setElementAlpha ( obx4, 0) 
setElementAlpha ( obx5, 0) 
setElementAlpha ( obx6, 0) 
setElementAlpha ( obx7, 0) 
setElementAlpha ( obx8, 0) 
setElementAlpha ( obx9, 0) 
setElementAlpha ( obx10, 0) 
setElementAlpha ( obx11, 0) 
setElementAlpha ( obx12, 0) 
setElementAlpha ( obx13, 0) 
setElementAlpha ( obx14, 0) 
setElementAlpha ( obx15, 0) 
setElementAlpha ( obx16, 0) 
setElementAlpha ( obx17, 0) 
setElementAlpha ( obx18, 0) 
setElementAlpha ( obx19, 0) 
setElementAlpha ( obx20, 0) 
  
  
  
end 
end 
end 
  
addEventHandler("onClientMarkerHit", resourceRoot, doubleside1) 
  
  

Link to comment
  • 2 weeks later...

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