-
Posts
161 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Furzy
-
Explain more your problem. What songs?
-
it looks that are sending a lot of data every 5 seconds, maybe it is causing a overload and dropping the fps.
-
Sry, but i wont donwload it. Paste the code here in <> (code) section
-
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.
-
I use the same script for zombies and i dont get this error too.
-
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.
-
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
-
Remove the ")" after "do" in this line. But check if event is handled as spect said. looks that is missing
-
You can use triggers or create an ElementData in server side to check if peds hit marker and then start the client side function.
-
Yeah, if u read the wiki you'll see that onClientMarkerHit is for players not element at all
-
Events for what? I know this https://wiki.multitheftauto.com/wiki/OnClientPedChoke
-
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.
-
if getElementType ( yourPed ) == "ped" then Use this to check if the element is a ped.
-
*- 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
-
Maybe your align's? One have left and center and another center and center
-
You can use handlings https://wiki.multitheftauto.com/wiki/SetVehicleHandling
-
Se os dados do seu servidor forem salvos com accountData Apenas exclua a internal.db
-
Very good job!
-
Very nice. Good job
- 14 replies
-
- 1
-
- mstu
- multi slection tool
-
(and 1 more)
Tagged with:
-
paste the code here.
-
pode usar também uma marker e usar a função https://wiki.multitheftauto.com/wiki/CreateMarkerAttachedTo para attach no player
-
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.
-
type /debugscript 3 start the script and see if there are ERRORS dupping