Jump to content

3B00DG4MER

Members
  • Posts

    512
  • Joined

  • Last visited

Everything posted by 3B00DG4MER

  1. but it's won't work function dxDrawCircle3D( x,y,z, radius, segments, color, width ) segments = segments or 16; -- circle is divided into segments -> higher number = smoother circle = more calculations color = color or tocolor( 255, 255, 0 ); width = width or 1; local segAngle = 360 / segments; local fX, fY, tX, tY; -- drawing line: from - to for i = 1, segments do fX = 1603 + math.cos( math.rad( segAngle * i ) ) * radius; fY = -1696.3896484375 + math.sin( math.rad( segAngle * i ) ) * radius; tX = 1603 + math.cos( math.rad( segAngle * (i+1) ) ) * radius; tY = -1696.3896484375 + math.sin( math.rad( segAngle * (i+1) ) ) * radius; dxDrawLine3D( fX, fY, 5, tX, tY, 5, color, width ); end end addEventHandler("onClientResourceStart",getRootElement(),dxDrawCircle3D) i have Edit X and y and Z,Should i edit them ?
  2. There is error,Which is radius is a nil value and You haven't define it
  3. Hello,Today I made a Car Spawn for Police Steps : 1.You need to Create "Police" Team 2.Download "topbarchat" script from here : https://community.multitheftauto.com/index.php?p=resources&s=details&id=7668 3.Download that Script from here :https://community.multitheftauto.com/index.php?p=resources&s=details&id=8937 Info : Fixed Some Problems with Script Added Dx Circle 3D Please Rate 5/5,There is No Warning and No Bug With That script & it's My First Published Script Enjoy !!
  4. i have understood only dxDrawCircle and color and dxDrawLine3D Does it replace the Marker ?
  5. But,How do i replace the Marker with dx ?
  6. Can you help me,what i use to made it,it's look like too herd
  7. So,no one Know i want to Say Like this
  8. No,i want to Replace the Model
  9. Hello,Today i want to Change Model of Marker if There is ID of Marker Need Help !!
  10. Next time use /debugscript 3 function onPlayerWasted ( attacker ) if ( attacker ) then if isPlayerInTeam ( localPlayer, "Police" ) then if ( getElementType ( attacker ) == "player" ) then setPlayerWantedLevel ( attacker, getPlayerWantedLevel(attacker)+1 ) end end end end addEventHandler ( "onPlayerWasted", getRootElement(), onPlayerWasted ) Try This I don't know if it work's
  11. You gave him a not working skeleton so yeah, I just said what was missing in it. But ofc he will do the rest. hhh Can you give me code which work's correctly
  12. Where is the reset of iCallLast ?? @3B00DG4MER: Show us the code to see if you completed it correctly. But it's too big i want to Avoid the repetition BACK = guiCreateStaticImage(0,0,1,1,"images/black.png",true) s3d1 = guiCreateStaticImage(0,0,1,1,"images/1.png",true) s3d2 = guiCreateStaticImage(0,0,1,1,"images/2.jpg",true) s3d3 = guiCreateStaticImage(0,0,1,1,"images/3.png",true) war4 = guiCreateStaticImage(0,0,1,1,"images/war4.png",true) guiSetVisible(s3d2, false) guiSetVisible(s3d3, false) guiSetVisible(war4, false) triggerServerEvent('onLoadedClient',localPlayer,localPlayer) local Timer = setTimer Timer(function() sound = playSound("Other/sound.mp3", true) end, 1000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 5000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 6000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.8 )) end, 6100, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.7)) end, 6150, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.6)) end, 6200, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.5)) end, 6250, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.4)) end, 6300, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.3)) end, 6350, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.2)) end, 6400, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.1)) end, 6450, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0)) end, 6500, 1, true) Timer(function() guiSetVisible(s3d1, false) end, 6550, 1, true) Timer(function() guiSetVisible(s3d2, true) end, 6600, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.1)) end, 6750, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.2)) end, 6800, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.3)) end, 6850, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.4)) end, 6900, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.5)) end, 6950, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.6)) end, 7000, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.7)) end, 7050, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.8 )) end, 7100, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.9)) end, 7150, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.8 )) end,8850 , 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.7)) end, 8900, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.6)) end, 8950, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.5)) end, 9000, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.4)) end, 10050, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.3)) end, 10100, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.2)) end, 10150, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.1)) end, 10200, 1, true) Timer(function() guiSetVisible(s3d2, false) end, 10248, 1, true) Timer(function() guiSetVisible(war4, true) end, 10249, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.1)) end, 10250, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.2)) end, 10300, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.3)) end, 10350, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.4)) end, 10400, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.5)) end, 10450, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.6)) end, 10500, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.7)) end, 10550, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.8 )) end, 10600, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.9)) end, 10650, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.8 )) end, 12000, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.7)) end, 11050, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.6)) end, 11100, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.5)) end, 11150, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.4)) end, 11250, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.3)) end, 11300, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.2)) end, 11350, 1, true) Timer(function() guiSetAlpha(war4, tonumber(0.1)) end, 11350, 1, true) Timer(function() guiSetVisible(war4, false) guiSetVisible(s3d3, true) guiSetAlpha(s3d3, tonumber(0.2)) end, 11400, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.3)) end, 11450, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.4)) end, 11500, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.5)) end, 11550, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.6)) end, 11600, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.7)) end, 11650, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.8 )) end, 11700, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.9)) end, 11750, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.8 )) end, 13500, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.7)) end, 13550, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.6)) end, 13600, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.5)) end, 13650, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.4)) end, 13700, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.3)) end, 13750, 1, true) Timer(function() guiSetAlpha(s3d3, tonumber(0.2)) end, 13800, 1, true) Timer
  13. i haven't understood,Please give me it for One only (Fade in only) Because i have Many Images to Repeat the Function to it
  14. Because he owner of SAUR server in The server there is that script,i saw it . Lol so because someone already did it for his own server, then you think he will give it for you for free ? Just by asking ? Solidsnake obviously won't give it to anyone for free (and he won't sell it too). It's part of his gamemode on which he worked hard. And if he would like to give it to you, then you won't be able to make it work since it's obviously part of the whole gamemode and won't work "out of the box" without modifications you won't be able to do. That being said, have a nice day. (Ps: You are supposed to be a scripter, so just script it yourself). Best regards, Citizen I'll Made it I think i'll use some of sloth-bot codes
  15. Use playSound onClientPlayerVehicleEnter
  16. It doesn't fade with Your Code it set the visible to false Directly without fading ... Fix please
  17. Can you give me the Code ?! Because i don't have this only I have Many Repetition of Images Fade in and Out
  18. Today i made script,Which is An Intro for Server I do Images fade in And Out,it work but i have lot of repetition,How do i avoid it ? Part of Client Side: Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 5000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 6000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber( 0.8 )) end, 6100, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.7)) end, 6150, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.6)) end, 6200, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.5)) end, 6250, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.4)) end, 6300, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.3)) end, 6350, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.2)) end, 6400, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.1)) end, 6450, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0)) end, 6500, 1, true) Timer(function() guiSetVisible(s3d1, false) end, 6550, 1, true)
  19. Because he owner of SAUR server in The server there is that script,i saw it .
  20. Hello,Today i want Script Which is : - When Police see Illegal thing the player will get +1 Star setPlayerWantedlevel(thePlayer,getPlayerWantedlevel +1) - When Police Attack the Player who Has more than 0 wanted level 3 Times (this Part Has made it #Solidsnake14) will Follow him (Very Hard Part, i think i'll Get Code From slothbot otherwise anyone help please) - Create Marker,Nearby LSPD (Very easy part) - if police has touche Marker, the player will Go to jail (easy is Part) i think #Solidsnake14 only will give me that Code
  21. Thanks But does it destroy vehicle of client OR all Players
  22. Can you fix that ? function spawnvehicle( vehicle ) if veh then destroyElement(veh) end local x, y, z = getElementPosition(source) local veh = createVehicle(vehicle , x, y, z) if vehicle == "560" then setVehicleColor ( veh, 7, 7, 0, 0 ) end warpPedIntoVehicle(source ,veh) end addEvent( "onSpawnVeh", true ) addEventHandler( "onSpawnVeh", root, spawnvehicle ) Vehicle Won't Destory
  23. Thanks My problem from beginning of developing So,now i can made all Scripts
  24. Can you explain please things about triggerServerEvent because i haven't understood anything
×
×
  • Create New...