Jump to content

Furzy

Members
  • Posts

    161
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Furzy

  1. Explain more your problem. What songs?
  2. it looks that are sending a lot of data every 5 seconds, maybe it is causing a overload and dropping the fps.
  3. Sry, but i wont donwload it. Paste the code here in <> (code) section
  4. Type /debugscript 3 When the fps drop see the error or warnings/dups and paste the code here. Paste the code even not appear errors.
  5. I use the same script for zombies and i dont get this error too.
  6. Yes, looks that ped cant determine where is the player. Simple solution: Create a big marker inside radar room and with isElementWithinMarker you dont execute zombieHeared event.
  7. try this function dxDrawCircle2( posX, posY, radius, width, angleAmount, startAngle, stopAngle, color, postGUI ) if ( type( posX ) ~= "number" ) or ( type( posY ) ~= "number" ) then return false end radius = type( radius ) == "number" and radius or 50 width = type( width ) == "number" and width or 5 startAngle = type( startAngle ) == "number" and startAngle or 0, 0, 360 stopAngle = type( stopAngle ) == "number" and stopAngle or 360, 0, 360 color = color or tocolor( 255, 255, 255, 100 ) postGUI = type( postGUI ) == "boolean" and postGUI or false startAngle = startAngle-90; stopAngle = stopAngle-90; if ( stopAngle < startAngle ) then local tempAngle = stopAngle stopAngle = startAngle startAngle = tempAngle end local multiby = 50; if (radius >= 1000) then multiby = 3000; end for i = startAngle, stopAngle, multiby/radius do local startX = math.cos( math.rad( i ) ) * ( radius - width ) local startY = math.sin( math.rad( i ) ) * ( radius - width ) local endX = math.cos( math.rad( i ) ) * ( radius + width ) local endY = math.sin( math.rad( i ) ) * ( radius + width ) dxDrawLine( startX + posX, startY + posY, endX + posX, endY + posY, color, width, postGUI ) end return true end i use this method with a circle image png
  8. Remove the ")" after "do" in this line. But check if event is handled as spect said. looks that is missing
  9. You can use triggers or create an ElementData in server side to check if peds hit marker and then start the client side function.
  10. Yeah, if u read the wiki you'll see that onClientMarkerHit is for players not element at all
  11. Events for what? I know this https://wiki.multitheftauto.com/wiki/OnClientPedChoke
  12. If you are doing it another resource you need to export it. The syntax is addBubble(text, player, tick) but you can try it triggerEvent("onChatIncome", player, "Message") test it in client-side of bubblechat script, if it works you can export fucntion addBubble or create a function to export it.
  13. if getElementType ( yourPed ) == "ped" then Use this to check if the element is a ped.
  14. *- v1.2.2: Added export function: outputMessage (server-side) The created function is server-side. You are trying in client-side. If you want to use client-side, you need use trigger or search what functions does the bubble in client-side. In your case is addBubble and removeBubble
  15. Maybe your align's? One have left and center and another center and center
  16. You can use handlings https://wiki.multitheftauto.com/wiki/SetVehicleHandling
  17. You can't. But you can use your imagination. Tip : attach the player to vehicle and set the alpha 0 to him and without collisions and set the player camera to vehicle. Maybe work.
  18. Se os dados do seu servidor forem salvos com accountData Apenas exclua a internal.db
  19. I dont think so, setGlitchEnabled is server-side
  20. pode usar também uma marker e usar a função https://wiki.multitheftauto.com/wiki/CreateMarkerAttachedTo para attach no player
  21. reduce handlers, use more local variables, use tables(pairs looks more faster than ipairs) There's nothing much to do about onClientRender i think, just try not use much handlers with onClientRender.
  22. type /debugscript 3 start the script and see if there are ERRORS dupping
×
×
  • Create New...