Jump to content

IIYAMA

Moderators
  • Posts

    6,097
  • Joined

  • Last visited

  • Days Won

    218

Everything posted by IIYAMA

  1. call(getResourceFromName("business"), "outputMessage", source, "the message bla bla bla...", 0, 245, 33) The source in this event is the player element.
  2. The problem is with the export from resource you are exporting from. The player element you use in your export isn't valid. I recommend you to post your own code.
  3. IIYAMA

    Nill

    When you remove row 6, row 7 moves down to row 6. So when you start with 7 and count down to 4, you don't have that problem. guiGridListRemoveRow ( tGrid, row7 ) guiGridListRemoveRow ( tGrid, row6 ) guiGridListRemoveRow ( tGrid, row5 ) guiGridListRemoveRow ( tGrid, row4 )
  4. fill in >"r", 'g', 'b'< in with a value between 0 and 255. 255, 0, 0 = red color 0, 255, 0 = green color 0, 0, 255 = blue color Or mix the color channels until you have the color you want. And you are ready to go.
  5. IIYAMA

    Nill

    Tables would be a better solution, but you seems not to use them. So... local VIP = getElementData(localPlayer, "VIP") if VIP == "Bronze" then if button == "1" then elseif button == "2" then elseif button == "3" then end elseif VIP == "Silver" then if button == "1" then elseif button == "2" then elseif button == "3" then elseif button == "4" then end elseif VIP == "Gold" then -- .................. else -- not VIP or unknown kind. if button == "1" then elseif button == "2" then end end
  6. Because it uses less memory. I prefer to use only the lua memory and not the MTA event system. Anyway, an event would be fine too.
  7. Make dxOutputMessage an export function and you can call it from other resources. call
  8. IIYAMA

    Nill

    Sure, but that doesn't mean you don't have to add debug lines.
  9. IIYAMA

    Nill

    Not Work Don't waste our time with those useless replies. Debug your code better. outputDebugString(tostring(getElementData(localPlayer, "VIP"))) If it outputs nil, you simply didn't set it. Which means the bug is at the place where you should have set the element data.
  10. IIYAMA

    Nill

    On which element did you set "VIP" > "silver" ? And this ~= means NOT EQUAL TO
  11. no, not directly. But you can use: "onClientRender" + https://wiki.multitheftauto.com/wiki/Is ... inColShape + getElementPosition + if Z < 300 then (+ getTickCount() if you want to use less cpu and memory) Reset player? If you save the last position every execution of the code and the player is inside the collision, you can reset the player back to that position. Drawing? Drawing a line 2D on your radar, I don't know. But you can study the tactic's script for that.
  12. IIYAMA

    Animations

    crashes etc.
  13. That can be simply fixed by giving the opposite direction.
  14. No it doesn't. You have to check if the vehicle does exist. Line 4 misplaced, must be de defined before the loop. Line 8 and 9 misplaced and not used.
  15. use the first example of: getElementMatrix in order to take also the pitch in account. Can also be used to find the vector direction forwards of the vehicle, which you can add as velocity multiplier for your projectiles.
  16. Ah, now I understand your struggle. My bad.
  17. If you already tested everything, then you would know that directly after execution of the function triggerLatentServerEvent, there is at least one handle from getLatentEventHandles().
  18. What is the bandwidth limit? How large is the transfer? And do you have ping in your test server? And how is your code structure... Test code, you can use. addEventHandler("onClientRender",root, function () dxDrawText(#getLatentEventHandles(),300,300) end)
  19. IIYAMA

    Question

    if grenadesConfig[weapon] then outputChatBox("yes") else outputChatBox("no") end
  20. https://wiki.multitheftauto.com/wiki/Ga ... sing_Order As scripter you don't want to execute too much DX functions, before rendering the actually game.
  21. if not (hitElement) or (getElementType(hitElement)~="player") then -- Didn't attack someone if hitElement and getElementType(hitElement) ~= "player" then -- Didn't attack someone
  22. I am using a script that draws bullet holes at positions where you shoot.The limit of the amount of image is 100, but also depends if they are executed within 2 ms. If it takes longer than 2 ms, the images after that amount of time will not be rendered. (images are compressed with dxt5 and saved with a very small png-8 file) My pc renders all 100, so no problem at all. I think your problem lays with the shaders or well 1.5 seems to have some changes in processing them.
  23. png-8 will give much better result when the image is build up with 1 colour. png-8 has more limits, but for icons like this it is perfect.
  24. np.
  25. No, that is where Google comes in.. Just Google those names and download the softwares. Anyway this is a scripting section and not 'how to split your col and txd files'.
×
×
  • Create New...