Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. تأكد انكـ مقفل التأثيرات / جرافكس / سكربتات , اي شيء زايد ماله داعي
  2. Check if 'open Window' Code doesn't have any problems with Cursor.
  3. 3NAD

    Sell Vehicle

    -- Server Side !! addEventHandler ( "onPlayerJoin", root, function ( ) setElementData ( source, "CanSell", true ) end ) sellMarker = createMarker ( 2694.72852, -2226.08911, 13.55008, "cylinder", 1.5, 255, 0, 0 ) function sellVehicle ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getElementData ( thePlayer, "CanSell" ) then if isPedInVehicle ( thePlayer ) then local vehicle = getPedOccupiedVehicle ( thePlayer ) local reward = math.random ( 2000, 3000 ) givePlayerMoney ( thePlayer, reward ) outputChatBox ( "You have sold the " .. getVehicleName ( vehicle ) .. " for " .. reward .. " !", thePlayer, 0, 255, 0, true ) setElementData ( thePlayer, "CanSell", false ) setTimer ( setElementData, 1800000, 1, thePlayer, "CanSell", true ) else outputChatBox ( "You need to be in a Vehicle to sell it.", thePlayer, 255, 0, 0, true ) end else outputChatBox ( "Wait 30 Minuts.", thePlayer, 255, 0, 0, true ) end end end addEventHandler ( "onMarkerHit", sellMarker, sellVehicle, false )
  4. 3NAD

    warp bot

    can you Put this Resource "slothbot" ? i Will try the Code and the Bots.
  5. الله يبآركـ فيكم , و إن شآء الله مآ بنقصر معآكم و مبروكـ لـ المشرف الجديد تيتي ذذ
  6. 3NAD

    Central Time

    Did you mean this : function showtime ( thePlayer ) country = exports.admin:getPlayerCountry ( thePlayer ) if country == "Saudi Arabia" or country == "SA" then time = getRealTime ( ) hours = time.hour + 3 minutes = time.minute outputChatBox ( "Local Time: "..hours..":"..minutes ) end end addCommandHandler ( "time", showtime )
  7. 3NAD

    Central Time

    Look at the Ex. ( Wiki Page ) function showtime () local time = getRealTime() local hours = time.hour local minutes = time.minute outputChatBox ( "Local Time: "..hours..":"..minutes ) end addCommandHandler ( "time", showtime )
  8. Change this : To this : for _, v in ipairs ( getElementsByType ( "blip" ) ) do Red, Green, Blue = getBlipColor ( v ) end local sizeX = 10 local sizeY = 10 dxDrawImage(size*1.5+v[1]-x,size*1.5+v[2]-y,v[3]+sizeX,v[4]+sizeY,v[5],v[6],0,0,tocolor(Red, Green, Blue),false) Try it and tell me the Results .
  9. 1- because your code is Already at ( 255, 255, 255 ) == white !! 2- You can change it -_-" look at sizeX and sizeY then Change the Values From 20 to anything !!
  10. 3NAD

    warp bot

    lol ?? what are you doing, Just use [ lua ] Text [ /lua ] Without spaces
  11. -- لم يتم التجربة addEventHandler ( "onPlayerDamage", root, function ( attacker, wep ) if getElementType ( attacker ) == "player" then theTeam = getPlayerTeam ( attacker ) theWL = getPlayerWantedLevel ( source ) if theTeam == getTeamFromName ( "police" ) then if wep == 3 and theWL >= 1 then if isTimer ( theTimer ) then killTimer ( theTimer ) end theTimer = setTimer ( function ( ) x, y, z = getElementRotation ( attacker ) setElementRotation ( source, x, y, z ) end , 500, 0 ) showCursor ( source, true ) setPedControlState ( source, "sprint", true ) end end end end )
  12. You can edit it 'Manually' by Model Car, Like this.. local neondanny = { } local neondanny2 = { } addCommandHandler ( "neon", function ( player ) if isPedInVehicle ( player ) then car = getPedOccupiedVehicle ( player ) if ( isElement ( neondanny[ car ]) ) then destroyElement ( neondanny[ car ] ) else neondanny[ car ] = createObject ( 2079, 0, 0, 0 ) setObjectScale ( neondanny[ car ], 1.5 ) setElementCollisionsEnabled ( neondanny[ car ], false ) neondanny2[ car ] = createObject ( 2079, 0, 0, 0 ) setObjectScale ( neondanny2[ car ], 1.5 ) setElementCollisionsEnabled(neondanny2[ car ], false) if getElementModel ( car ) == 411 then attachElements ( neondanny[ car ], car, -1.0,0,-0.58 ) attachElements ( neondanny2[ car ], car, 1.0,0,-0.58 ) elseif getElementModel ( car ) == 429 then attachElements ( neondanny[ car ], car, -1.2,0,-0.4 ) attachElements ( neondanny2[ car ], car, 0.6,0,-0.4 ) end end end end )
  13. Did you mean /cv at Freeroam ??
  14. x, y, z = 1877.18555, 642.92706, 9.82031 pArea = createRadarArea ( x, y, 100, 125, 0, 255, 0, 175 ) pCuboid = createColCuboid ( x, y, z, 100.05969238281, 120.13433837891, 13.156658172607 ) check the Wiki page https://wiki.multitheftauto.com/wiki/CreateRadarArea Look at the third and forth Arguments it's for size, Also at Colshapes.
  15. -- مثال ( غير دقيق )ذ addCommandHandler ( "startLaser", function ( ) if getPedWeapon ( localPlayer ) ~= 0 then outputChatBox ( "* Started Laser !!", 0, 255, 0, true ) addEventHandler ( "onClientRender", root, createLaser ) else outputChatBox ( "* You Don't Have Weapon !!", 255, 0, 0, true ) end end ) addCommandHandler ( "stopLaser", function ( ) outputChatBox ( "* Stopped Laser !!", 255, 0, 0, true ) removeEventHandler ( "onClientRender", root, createLaser ) end ) function createLaser ( ) x, y, z = getPedTargetStart ( localPlayer ) x2, y2, z2 = getPedTargetEnd ( localPlayer ) dxDrawLine3D ( x, y, z, x2, y2, z2, tocolor ( 255, 0, 0, 200 ) ) end اهم شيء تفهم طريقته و تصلحه بـ نفسكـ , موب كل شيء جاهز = )
  16. بآنت الصور + إلى الأمام دوماً = )
  17. 3D اول شيء تآخذ احداثيات سلاحكـ و بعدين تسوي خط ولا وش قصدكـ بالليزر =|
  18. اعتقد انكـ تحتاج الأكواد ذي getPedTargetStart getPedTargetEnd dxDrawLine3D
  19. Replace this dxDrawImage(size*1.5+v[1]-x,size*1.5+v[2]-y,v[3],v[4],v[5],v[6],0,0,tocolor(255,255,255),false) With this local sizeX = 20 local sizeY = 20 dxDrawImage(size*1.5+v[1]-x,size*1.5+v[2]-y,v[3]+sizeX,v[4]+sizeY,v[5],v[6],0,0,tocolor(255,255,255),false) You can change the size Now : )
  20. I didn't try it.. dxDrawImage(size*1.5+v[1]-x,size*1.5+v[2]-y,2,2,v[5],v[6],0,0,tocolor(255,255,255),false) Tell me what is the Results.
×
×
  • Create New...