Jump to content

#\_oskar_/#

Members
  • Posts

    573
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by #\_oskar_/#

  1. ماشوف اي خطأ بس الخطاء اللي عندك من اسم الملف نفسه تأكد من الملف اذا كان بصيغة ال ifp
  2. هات اكوادك كامله مع ال meta.xml وملف الانيميشن
  3. الشكر لله ♥ هو مجرد تعريف للملف IFP يعني عادي اكتب اي اسم
  4. اللي لاحظته في كودك انك حاطت engineReplaceAnimation مع التحقق اللي يظهر بالشات المفروض كنت حطيته تحت الاند حقة التحقق اذا مافهمت شوف هنا انت مسويه كيف ؟ يعني انت مسوي تحقق ان لو الملف ماهو موجود يطلع بالشات نص كيف تبي الانيمشن يشتغل وانت حاطه داخل التحقق؟ فهمت ؟
  5. function engineReplaceAnimation_(path,name,anim) local customBlockName = "os" local IFP= engineLoadIFP ( path, customBlockName ) if not IFP then outputChatBox('#FF0000 Failed to load#FFFF00 ['..path..']' ,r,g,b,true) end engineReplaceAnimation( localPlayer, name, anim, customBlockName,anim) end --- engineReplaceAnimation_('walk.ifp','ped', 'sprint_civi') جرب كدا لان الوظيفه تعتمد ع نوع الحركه انا سويته لك كدا بحيث انه يكون سهل لك تستخدمه
  6. you can use > getPedBonePosition Example Bribe = createObject(1242,0, 0, 0); setElementCollisionsEnabled(Bribe ,false) setObjectScale (Bribe,1.5) addEventHandler('onClientRender', root, function() if ( getPlayerArmor ( localPlayer )>= 1 ) then local sx, sy, sz = getPedBonePosition(localPlayer,3) local rx,ry,rz = getElementRotation(localPlayer) setElementPosition(Bribe ,sx-rx, sy-ry, sz+0.1) setElementRotation(Bribe,0,0,rz) end end)
  7. build = {} function building(player, command) if command == "setBuild" then if isElement(build[player]) then destroyElement(build[player]) end xP, yP, zP = getElementPosition(player) build[player] = createObject(3374, xP, yP, zP) attachElements(build[player],player, 0, 3, 1) setElementAlpha(build[player], 150) elseif command == "detach" and isElement(build[player]) then detachElements(build[player] ) end end addCommandHandler("setBuild", building) addCommandHandler("detach",building) try
  8. function Sound3D(sound3d,...) local wX, wY, wZ = getPedWeaponMuzzlePosition ( localPlayer ) local sound = playSound3D (sound3d,wX, wY, wZ, false ) attachElements (sound ,localPlayer , 0, 0, 2 ) setSoundMaxDistance(sound, 50) setElementDimension(sound,getElementDimension ( localPlayer )) setElementInterior(sound,getElementInterior( localPlayer ),...) return sound end local weapons = { [22] = "sounds/Colt45.wav", --[id] = "sound name", } -- setWorldSoundEnabled(5,false) function onClientPlayerWeaponFire ( weapon ) if weapons[weapon] then local x, y, z = getElementPosition ( localPlayer ) if isElement(sound ) then destroyElement(sound ) end sound = Sound3D(weapons[getPedWeapon(localPlayer)], x, y, z ) end end addEventHandler ( "onClientPlayerWeaponFire", getRootElement(), onClientPlayerWeaponFire ) is this what you want ?
  9. local wX, wY, wZ = getPedWeaponMuzzlePosition ( getLocalPlayer() ) local sound = playSound3D ( "sounds/Colt45.wav",wX, wY, wZ , false ) and use isElement
  10. --Client if hitPlayer == localPlayer then triggerServerEvent ("giveMoney", hitPlayer ) ---Server givePlayerMoney (source, 500) element playSound3D ( string soundURL, float x, float y, float z, [ bool looped = false, bool throttled = true ] ) where = pos (x , y , z) ?
  11. local function OpenDx(...) local v = {...} if v[2] == true then removeEventHandler("onClientRender", root,v[1]) addEventHandler("onClientRender", root,v[1]) elseif v[2] == false then removeEventHandler("onClientRender", root,v[1]) end end function dx1() --- dxDraw(...) end OpenDx(dx1,true) -- show dx1 OpenDx(dx1,false) -- hide dx1 --/// function dx2() --- dxDraw(...) end OpenDx(dx2,true) -- show dx2 OpenDx(dx2,false) -- hide dx2
  12. if you want to buy weapons By GUI you should use this functions #Client OnClientGUIClick triggerServerEvent #Server getPlayerMoney giveWeapon
  13. source He is the marker not player if (source == infourdragons) then and here error on event hit marker addEventHandler("onHitMarker", player, "saythis") It must be like this addEventHandler("onMarkerHit", root, saythis)
  14. @ReZurrecti0n line 16 : you forgot to add = if number == 3 then
  15. مبدع الصراحه وظيفه جميله ومفيده ♥
  16. use > getPlayerName for check your name
  17. atmls1 = 2116, -1118.3000488281,24.89999961853,0,0,162 atmls2 = 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 atmls3 = 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 atmsf1 = -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88 atmsf2 = -2655.8999023438,257.89999389648, 4 ,0,0,90 atmredcounty = -74.800003051758,1116.3000488281, 19.39999961853 ,0,0,90 atmlv1 = 1715.5999755859,1533.5, 10.39 ,0,0,92 atmlv2 = 2176.6000976563,2443.6999511719, 10.5 ,0,0,178 atmlv3 = 2159.5,950.79998779297, 10.699999809265 ,0,0,270 atmler = { { 2116, -1118.3000488281,24.89999961853,0,0,162 }, { 1186.1999511719,-1374.3000488281, 13.199999809265 ,0,0,90 }, { 1975.4000244141,-2176.1000976563, 13.199999809265 ,0,0,178 }, { -1571.0999755859,666.59997558594, 6.8000001907349 ,0,0,88 }, { -2655.8999023438,257.89999389648, 4 ,0,0,90 }, {-74.800003051758,1116.3000488281, 19.39999961853 ,0,0,90 }, { 1715.5999755859,1533.5, 10.39 ,0,0,92 }, { 2176.6000976563,2443.6999511719, 10.5 ,0,0,178 }, { 2159.5,950.79998779297, 10.699999809265 ,0,0,270 } } atm = {} function displayLoadedRes ( res ) for theKey,theAtm in ipairs(atmler) do atm[theAtm] = createObject ( 2942, theAtm [ 1 ], theAtm [ 2 ], theAtm [ 3 ], theAtm [ 4 ], theAtm [ 5 ], theAtm [ 6 ] ) atmx, atmy, atmz = getElementPosition (atm[theAtm]) atmMarker = createMarker ( atmx, atmy, atmz -1, "cylinder", 1.5, 100, 100, 200, 170 ) setElementData (atmMarker,"atm",true) atmBlip = createBlipAttachedTo ( atm[theAtm], 52 ) setBlipVisibleDistance (atmBlip,200) setElementCollisionsEnabled(atm[theAtm], false) end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), displayLoadedRes ) function Bank_( hitElement,v ) if ((getElementType(hitElement) == "player")) then local acc = getPlayerAccount (hitElement) if (acc and not isGuestAccount (acc)) then local atmmi = getElementData (source,"atm") if (atmmi == v) then triggerClientEvent(hitElement, "bankaGuiAc", hitElement) end end end end --///////////// addEventHandler( "onMarkerHit", getRootElement(),function (hitElement ) Bank_(hitElement, true ) end) --///////////// addCommandHandler ( "Bank", function ( source, commandName) Bank_( source,false) end)
  18. setTimer ( setVehicleEngineState, 100, 1 ,theVehicle, false)
×
×
  • Create New...