Jump to content

Stranger

Members
  • Posts

    710
  • Joined

  • Last visited

Everything posted by Stranger

  1. اذا قصدك ينقله لمكان محدد استخدم setElementPosition
  2. Stranger

    [Question]

    [Question] there are some of the object can be broken, how to make it not break is there any way to make it can't be broken ?
  3. Stranger

    [Question]

    how to 'cancelEvent', if the person above the vehicle ? i mean if he tried to press the button, say " you should be on the ground " to do this
  4. جرب ذا Server # markerpv = createMarker( 1591.1999511719, -1710.1999511719, 4.9000000953674, "cylinder", 2, 0, 0, 255, 255 ) local vehicles = {} function spawnVehp(id) local x, y, z = getElementPosition(source) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end vehicles[source] = createVehicle(487, 1568.9465332031 + 411, -1626.2987060547, 13.3828125) warpPedIntoVehicle(source, vehicles[source]) end addEvent("CreVehicePv",true) addEventHandler("CreVehicePv", root, spawnVehp) addEventHandler("onPlayerQuit", root, function() if isElement(vehicles[source]) then destroyElement(vehicles[source]) vehicles[source] = nil end end) function showGUIpv(hitPlayer) if hitPlayer and getElementType(hitPlayer) == "player" then if ( getElementData(hitPlayer, "Group" ) == "اسم القروب" ) then triggerClientEvent (hitPlayer,"showGUIpv",getRootElement(),hitPlayer) else end end end addEventHandler("onMarkerHit",markerpv,showGUIpv)
  5. Server # markerpv = createMarker( 1591.1999511719, -1710.1999511719, 4.9000000953674, "cylinder", 2, 0, 0, 255, 255 ) local vehicles = {} function spawnVehp(id) local x, y, z = getElementPosition(source) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end vehicles[source] = createVehicle(487, 1568.9465332031 + 411, -1626.2987060547, 13.3828125) warpPedIntoVehicle(source, vehicles[source]) end addEvent("CreVehicePv",true) addEventHandler("CreVehicePv", root, spawnVehp) addEventHandler("onPlayerQuit", root, function() if isElement(vehicles[source]) then destroyElement(vehicles[source]) vehicles[source] = nil end end) function showGUIpv(hitPlayer) if hitPlayer and getElementType(hitPlayer) == "player" then if ( getElementData(hitPlayer, "Group" ) == "اسم القروب" ) then triggerClientEvent (hitPlayer,"showGUIpv",getRootElement(),hitPlayer) else end end end addEventHandler("onMarkerHit",markerpv,showGUIpv)
  6. hello guys i have problem with this code: mm = createMarker(4, 4, 4, "cylinder", 2, 255, 0, 0, 170) addEventHandler("onPlayerDamage", root, function (player) if isElementWithinMarker(player, m) then cancelEvent() end end ) it should be working, but doesn't, i'm sure that is no problem with this code right ?
  7. الحل ,: تحذف الشخصيتين من الزومبي
  8. Thank you for helping me
  9. "" type="script" version="1.3.4" />
  10. ERROR: Server triggered clientside event onStartMusic, but event is not added clientside
  11. the music doesn't working
  12. function sound () local x, y, z = getElementPosition ( mm55 ) local sound = playSound3D("s.mp3",x, y, z, true) setSoundMaxDistance( sound, 50 ) attachElements(sound, mm55) triggerServerEvent("vehicle", localPlayer) end addEventHandler("onClientResourceStart", resourceRoot, sound) addEvent("vehicle", true) addEventHandler("vehicle", root, function () local mm55 = createVehicle(560, 1586.3, -1656.8, 28.6) end )
  13. i did use trigger but , it's not working
  14. so what is the solution
  15. thanx but there is a little problem, why i can't enter the vehicle
  16. Stranger

    i need help

    hello guys how can i attach sounds to the vehicle !! i try to do it but it's hard what is wrong in this: local mm55 = createVehicle(560, 1586.3, -1656.8, 28.6) function sound () local sound = playSound3D("s.mp3",1586.3, -1656.8, 28.6, true) setSoundMaxDistance( sound, 50 ) attachElements(sound, mm55, 0, 0, 0) end addEventHandler("onClientResourceStart", resourceRoot, sound)
  17. سوي تيم واستخدم هذا الكود setTeamFriendlyFire
  18. مشكووور يلبى !!
×
×
  • Create New...