#\_oskar_/#

Members
  • Content Count

    358
  • Joined

  • Last visited

  • Days Won

    1

#\_oskar_/# last won the day on May 13 2018

#\_oskar_/# had the most liked content!

Community Reputation

71 Popular

About #\_oskar_/#

  • Rank
    Fool

Details

  • Gang
    Bilal
  • Location
    Egypt
  • Occupation
    SA
  • Interests
    grove street

Recent Profile Visitors

2,473 profile views
  1. myShader = [[ float Time : TIME; float4 color = float4(1,1,1,1); float4 GetColor() {float4 tColor = float4(cos(Time*7),cos(Time*7),cos(Time*7),255); return tColor * color;} technique tec0 { pass P0 { MaterialEmissive = GetColor(); EmissiveMaterialSource = Material; ColorOp[0] = SELECTARG1; ColorArg1[0] = Diffuse; Lighting = true; }} ]] local ID = 597 engineImportTXD(engineLoadTXD("car.txd"),ID) engineReplaceModel(engineLoadDFF("car.dff",ID),ID) --- local shader = dxCreateShader(myShader) function SetShaderApply(Apply,Remove,r,g,b) local Vehicle = getPedOccupiedVehicle ( getLocalPlayer() ) if ( Vehicle ) then if getElementModel(Vehicle) == ID then dxSetShaderValue(shader, 'color',r,g,b) engineRemoveShaderFromWorldTexture(shader,Remove,Vehicle ) engineApplyShaderToWorldTexture(shader,Apply,Vehicle ) end end end function left() SetShaderApply('l','p',255,0,0) end bindKey ("vehicle_left","both",left) function right() SetShaderApply('p','l',255,0,0) end bindKey ("vehicle_right","both",right) try this
  2. local Key = 'L' -- addEventHandler("onPlayerJoin",root,function () bindKey (source,Key,"down",switchEngine) end) local function bindTheKeys() for _,player in ipairs(getElementsByType("player")) do bindKey (player,Key,"down",switchEngine) end end addEventHandler("onResourceStart",resourceRoot,bindTheKeys) try
  3. function hex2rgb (hex) local hex = hex:gsub("#","") for i=0,5 do if hex:len() == i then return error ('Error hex2rgb ('.. (hex)..')' ) end end r = tonumber("0x"..hex:sub(1,2)) or 0 g = tonumber("0x"..hex:sub(3,4)) or 0 b = tonumber("0x"..hex:sub(5,6)) or 0 return r..','..g..','..b end try _- i edited the code
  4. outputChatBox("#FFFFFF[GANG] #00FFFF Você Passou pro level "..getElementData(localPlayer,"level").. " na sua gang.",255, 255, 255, true ) ( <
  5. local Key = 'H' addEventHandler("onPlayerJoin",root,function () bindKey (source,Key,"down",repairVehicle) end) local function ResourceStart() for _,player in ipairs(getElementsByType("player")) do bindKey (player,Key,"down",repairVehicle) end end addEventHandler("onResourceStart",resourceRoot,ResourceStart)
  6. https://community.multitheftauto.com/index.php?p=resources&s=details&id=11265
  7. function teleport(hitElement,int, px, py, pz,msg) if getElementType (hitElement) == "player" then local Vehicle = isPedInVehicle(hitElement) if Vehicle then return outputChatBox("No Car", hitElement, 0, 0, 0, true) end setElementInterior (hitElement, int, px, py, pz ) outputChatBox (msg or '',hitElement,255,0,0, true) end end local HitMarker = createMarker (2019.5, 1007.7, 10, "cylinder", 1, 255,255, 0,255) local LaveMarker = createMarker (2234, 1714.4, 1011.5, "cylinder", 1, 255, 255, 0, 255) setElementInterior (LaveMarker, 1 ) addEventHandler("onMarkerHit", root, function (hitElement) if source == HitMarker then teleport(hitElement,1, 2235, 1699, 1008,'Welcome To Casino') elseif source == LaveMarker then teleport(hitElement,0, 2026, 1008, 11) --[[Add More elseif source == Marker Name then teleport(hitElement,Interior ID, px, py, pz [,'ChatBox'])]] end end) try this
  8. ماشوف اي خطأ بس الخطاء اللي عندك من اسم الملف نفسه تأكد من الملف اذا كان بصيغة ال ifp
  9. هات اكوادك كامله مع ال meta.xml وملف الانيميشن
  10. الشكر لله ♥ هو مجرد تعريف للملف IFP يعني عادي اكتب اي اسم
  11. اللي لاحظته في كودك انك حاطت engineReplaceAnimation مع التحقق اللي يظهر بالشات المفروض كنت حطيته تحت الاند حقة التحقق اذا مافهمت شوف هنا انت مسويه كيف ؟ يعني انت مسوي تحقق ان لو الملف ماهو موجود يطلع بالشات نص كيف تبي الانيمشن يشتغل وانت حاطه داخل التحقق؟ فهمت ؟
  12. 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') جرب كدا لان الوظيفه تعتمد ع نوع الحركه انا سويته لك كدا بحيث انه يكون سهل لك تستخدمه
  13. 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)