Jump to content

HustraDev

Members
  • Posts

    139
  • Joined

  • Last visited

Everything posted by HustraDev

  1. thanks man i fix it the problem : function setteam() local team = getTeamFromName("Iveco Drivers") if team then setplayerteam (source,team) else local noteam = getTeamFromName ("Iveco Drivers") if noteam then cancelEvent end end end addEvent("thekeem", true) addEventHandler("thekeem", root,setteam)
  2. im serious man i mean i test the trigger by deleting the code and write setElementModel
  3. there is no problem with trigger i use setElementModel to change player skin and it work,
  4. Hi, i have littel problem with this code i used to Set team for player but its not working, addEvent("thekeem", true) addEventHandler("thekeem", root, function() local team = getTeamFromName("Iveco Drivers") if team then setplayerteam (source,team) else local noteam = getTeamFromName ("Iveco Drivers") if noteam then cancelEvent end end end )
  5. Use, onPlayerJoin setElementPosition Code : [ ServerSide ] addEventHandler ( "onPlayerJoin", getRootElement(), function(source) setElementPosition ( source, X, Y, Z ) end )
  6. Thanks Man You are The Best works 100% can you see this topic maybe you help me https://forum.multitheftauto.com/viewtopic.php?f=91&t=80487
  7. i'm sorry man but you understand me wrong i need to pickup the ped when i'm [ in The Vehicle ] like the taxi job ##
  8. i try isPedInVehicle and NotWorking *_*" addEvent("ib", true) addEventHandler("ib", root, function() x, y, z = getElementPosition ( source ) Vehicle = createVehicle (443, x+2, y, z ) warpPedIntoVehicle ( source, Vehicle) setElementData ( source, "destroy", Vehicle ) client1 = createPed(36, 2851.8000488281,-1911.4000244141,11.10000038147,318.001373) arrow1 = createMarker ( 2851.8000488281,-1911.4000244141,13, "arrow", 1, 255, 255, 0, 170 ) marker1 = createMarker ( 2854.3000488281,-1911,10, "cylinder", 1, 255, 255, 0, 170 ) addEventHandler("onMarkerHit", marker1, onHit) end ) function onHit(source) if getElementType(source) == "player" and isPedInVehicle(source) then warpPedIntoVehicle ( client1, Vehicle) end end
  9. Now 100%( not )working it was when i use this addEvent("ib", true) addEventHandler("ib", root, function() x, y, z = getElementPosition ( source ) Vehicle = createVehicle (443, x+2, y, z ) warpPedIntoVehicle ( source, Vehicle) setElementData ( source, "destroy", Vehicle ) client1 = createPed(36, 2851.8000488281,-1911.4000244141,11.10000038147,318.001373) arrow1 = createMarker ( 2851.8000488281,-1911.4000244141,13, "arrow", 1, 255, 255, 0, 170 ) marker1 = createMarker ( 2854.3000488281,-1911,10, "cylinder", 1, 255, 255, 0, 170 ) addEventHandler("onMarkerHit", marker1, onHit) end ) function onHit(source) if getElementType(source) == "player" then warpPedIntoVehicle ( client1, Vehicle) end end but the problem i need to get out of the car to warp the ped into vehicel not warping the ped when i'm in the car !! @_@
  10. ~ HELP HELP HELP H E L P > H E L P #_______@
  11. addEventHandler ("onClientGUIClick", resourceRoot, function () if source == btntwd then triggerServerEvent("ib", localPlayer) end end )
  12. Please Guy's Help Me i'm gone lose my mind@_________@
  13. Not Working Man This Resource Drive Me Crezy
  14. i want the marker when i hit it warp the ped client1 into my vehicle no warp me $>$
  15. all code's not working post all code :- addEvent("ib",true) addEventHandler("ib",root, function () local x, y, z = getElementPosition ( source ) Vehicle = createVehicle (443, x+2, y, z ) warpPedIntoVehicle ( source, Vehicle) setElementData ( source, "destroy", Vehicle ) local client1 = createPed(36, 2851.8000488281,-1911.4000244141,11.10000038147,318.001373) local arrow1 = createMarker ( 2851.8000488281,-1911.4000244141,13, "arrow", 1, 255, 255, 0, 170 ) marker1 = createMarker ( 2854.3000488281,-1911,10, "cylinder", 1, 255, 255, 0, 170 ) addEventHandler("onMarkerHit", marker1, onHit,false) end ) function warpit ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then local vehiclee = getPedOccupiedVehicle ( thePlayer ) if ( getElementModel ( vehiclee ) == 420 ) then warpPedIntoVehicle ( client1, Vehicle) end end end Help Please
  16. Hi all i'm working on new job script i have problem in this code : i made marker in a function and i want to add handler for ("onMarkerHit") but when i test it not working the code : addEvent("ib",true) addEventHandler("ib",root, function () marker1 = createmarker (...) end ) addEventHandler( "onMarkerHit", marker1, function() warpPedIntoVehicle ( client1, Vehicle) end )
  17. Hi Guy's i have made code to create Projectile attached to object but won't works local xw,yw,zw = getElementPosition(theObject) createProjectile(theObject, 19, xw, yw, zw+1.5, 1.0, nil,0,0,0)
  18. مسويه على إستضافة ديلوكس كيف أحدث السيرفر دخلت على هذا الرابط mtasa.com/3213 وحملة التحديث حق 1.3 طيب بعدها وش اسوي المشكلة مانحلت يا شباب الرجاء المساعدة
×
×
  • Create New...