Jump to content

IIYAMA

Moderators
  • Posts

    6,089
  • Joined

  • Last visited

  • Days Won

    216

Everything posted by IIYAMA

  1. Lua is not a stand alone language, but that doesn't mean you can't call it programming.
  2. ah ok, I will wait till 14.7 get fully released. because I need 14.7 to play bf4 on ultra. @ xXMADEXx, Towncivilian, ccw Thank you very much for the help/suggestions!
  3. -- sourcecode: Karuzo function getAbsoluteFromRelative(parent,rx,ry) -- just covert to absolute local xSize,ySize = guiGetSize (parent,false) return rx*xSize,ry*ySize end -- or function getAbsoluteFromRelative(parent,rx,ry) -- full screen, covert to absolute local xp,yp = guiGetPosition (parent,false) local xSize,ySize = guiGetSize (parent,false) return (rx*xSize)+xp,(ry*ySize)+yp end
  4. IIYAMA

    Tool box

    ! Duh, by settings its health of course.
  5. I am already using 14.7 (nl) Versie stuurprogrammapakket: 14.20.1004-140709a-173735E Catalyst-versie: 14.7 and I had this before my second card, so it can't be the crossfire. (gta doesn't support that anyway)
  6. When somebody mention shaders you can better forget it. Far from your understanding and also mine. This are shaders: https://wiki.multitheftauto.com/wiki/Shader_examples To edit everything related to directX.
  7. MTADiag version 2.7.12 by Towncivilian MTA path: D:\Program Files (x86)\MTA San Andreas 1.3\test_server MTA version: 1.3.5-9.06596.0.000 GTA path: D:\Program Files (x86)\Rockstar Games\GTA San Andreas D3D9.dll present: No DirectX up-to-date: Yes Nonstandard GTA file: \data\peds.ide MD5sum for D:\Program Files (x86)\Rockstar Games\GTA San Andreas\data\peds.ide: 6ae411847e1dcf0006fe6a645ed0ab2b Value should be: f7dea69fa6ab973479b9ef0cf05d3d98 dxdiag /t: ------------------ System Information ------------------ Time of this report: 8/17/2014, 18:03:10 Machine name: IIYAMA-PC Operating System: Windows 7 Ultimate 64-bit (6.1, Build 7600) (7600.win7_ldr.100211-1706) Language: Dutch (Regional Setting: Dutch) System Manufacturer: System manufacturer System Model: System Product Name BIOS: BIOS Date: 05/02/12 14:57:28 Ver: 10.15 Processor: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz (8 CPUs), ~3.5GHz Memory: 32768MB RAM Available OS Memory: 32720MB RAM Page File: 4814MB used, 60625MB available Windows Dir: C:\Windows DirectX Version: DirectX 11 DX Setup Parameters: Not found User DPI Setting: Using System DPI System DPI Setting: 96 DPI (100 percent) DWM DPI Scaling: Disabled DxDiag Version: 6.01.7600.16385 32bit Unicode ------------ DxDiag Notes ------------ Display Tab 1: No problems found. Sound Tab 1: No problems found. Input Tab: No problems found. -------------------- DirectX Debug Levels -------------------- Direct3D: 0/4 (retail) DirectDraw: 0/4 (retail) DirectInput: 0/5 (retail) DirectMusic: 0/5 (retail) DirectPlay: 0/9 (retail) DirectSound: 0/5 (retail) DirectShow: 0/6 (retail) --------------- Display Devices --------------- Card name: AMD Radeon R9 200 Series Manufacturer: Advanced Micro Devices, Inc. Chip type: ATI display adapter (0x6798) DAC type: Internal DAC(400MHz) Device Key: Enum\PCI\VEN_1002&DEV_6798&SUBSYS_30001787&REV_00 Display Memory: 1677 MB Dedicated Memory: 1957 MB Shared Memory: 3816 MB Current Mode: 1920 x 1080 (32 bit) (60Hz) Monitor Name: Algemeen PnP-beeldscherm Monitor Model: PL2409HD Monitor Id: IVM560C Native Mode: 1920 x 1080(p) (60.000Hz) Output Type: DVI Driver Name: aticfx64.dll,aticfx64.dll,aticfx64.dll,aticfx32,aticfx32,aticfx32,atiumd64.dll,atidxx64.dll,atidxx64.dll,atiumdag,atidxx32,atidxx32,atiumdva,atiumd6a.cap,atitmm64.dll Driver File Version: 8.17.0010.1299 (English) Driver Version: 14.200.1004.0 DDI Version: 10.1 Driver Model: WDDM 1.1 Driver Attributes: Final Retail Driver Date/Size: 7/9/2014 17:52:14, 1330912 bytes WHQL Logo'd: n/a WHQL Date Stamp: n/a Device Identifier: {D7B71EE2-24D8-11CF-2471-0A10BEC2C535} Vendor ID: 0x1002 Device ID: 0x6798 SubSys ID: 0x30001787 Revision ID: 0x0000 Driver Strong Name: oem65.inf:ATI.Mfg.NTamd64.6.1:ati2mtag_R575:14.200.1004.0:pci\ven_1002&dev_6798&subsys_30001787 Rank Of Driver: 00E60001 Video Accel: ModeMPEG2_A ModeMPEG2_C Deinterlace Caps: {6E8329FF-B642-418B-BCF0-BCB6591E255F}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,1) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY {6E8329FF-B642-418B-BCF0-BCB6591E255F}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,1) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(YV12,0x32315659) Frames(Prev/Fwd/Back)=(0,0,0) Caps= {3C5323C1-6FB7-44F5-9081-056BF2EE449D}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,2) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {552C0DAD-CCBC-420B-83C8-74943CF9F1A6}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,2) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {6E8329FF-B642-418B-BCF0-BCB6591E255F}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,1) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC1,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps= {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC2,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps= {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC3,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps= {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC4,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps= {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(S340,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps= {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(S342,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps= D3D9 Overlay: Not Supported DXVA-HD: Not Supported DDraw Status: Enabled D3D Status: Enabled AGP Status: Enabled ------------- Sound Devices ------------- Description: Luidsprekers (Logitech USB Headset H540) Default Sound Playback: Yes Default Voice Playback: Yes Hardware ID: USB\VID_046D&PID_0A37&REV_0115&MI_00 Manufacturer ID: 65535 Product ID: 65535 Type: WDM Driver Name: USBAUDIO.sys Driver Version: 6.01.7600.16385 (English) Driver Attributes: Final Retail WHQL Logo'd: n/a Date and Size: 7/14/2009 02:06:32, 109568 bytes Other Files: Driver Provider: Microsoft HW Accel Level: Basic Cap Flags: 0x0 Min/Max Sample Rate: 0, 0 Static/Strm HW Mix Bufs: 0, 0 Static/Strm HW 3D Bufs: 0, 0 HW Memory: 0 Voice Management: No EAX(tm) 2.0 Listen/Src: No, No I3DL2(tm) Listen/Src: No, No Sensaura(tm) ZoomFX(tm): No --------------------- Sound Capture Devices --------------------- Description: Microfoon (Logitech USB Headset H540) Default Sound Capture: Yes Default Voice Capture: Yes Driver Name: USBAUDIO.sys Driver Version: 6.01.7600.16385 (English) Driver Attributes: Final Retail Date and Size: 7/14/2009 02:06:32, 109568 bytes Cap Flags: 0x0 Format Flags: 0x0 ------------------- DirectInput Devices ------------------- Device Name: Muis Attached: 1 Controller ID: n/a Vendor/Product ID: n/a FF Driver: n/a Device Name: Toetsenbord Attached: 1 Controller ID: n/a Vendor/Product ID: n/a FF Driver: n/a Device Name: Logitech USB Headset H540 Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x046D, 0x0A37 FF Driver: n/a Device Name: G500 Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x046D, 0xC068 FF Driver: n/a Device Name: G500 Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x046D, 0xC068 FF Driver: n/a Device Name: G500 Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x046D, 0xC068 FF Driver: n/a Device Name: Gaming Keyboard G110 Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x046D, 0xC22A FF Driver: n/a Device Name: Gaming Keyboard G110 Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x046D, 0xC22A FF Driver: n/a Device Name: G110 G-keys Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x046D, 0xC22B FF Driver: n/a Device Name: G110 G-keys Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x046D, 0xC22B FF Driver: n/a Poll w/ Interrupt: No ----------- USB Devices ----------- + USB-hoofdhub | Vendor/Product ID: 0x8086, 0x1E26 | Matching Device ID: usb\root_hub20 | Service: usbhub | +-+ Generic USB Hub | | Vendor/Product ID: 0x8087, 0x0024 | | Location: Port_#0001.Hub_#0002 | | Matching Device ID: usb\class_09 | | Service: usbhub ---------------- Gameport Devices ---------------- ------------ PS/2 Devices ------------ + HID-toetsenbordapparaat | Vendor/Product ID: 0x046D, 0xC068 | Matching Device ID: hid_device_system_keyboard | Service: kbdhid | + HID-toetsenbordapparaat | Vendor/Product ID: 0x046D, 0xC22A | Matching Device ID: hid_device_system_keyboard | Service: kbdhid | + HID-toetsenbordapparaat | Vendor/Product ID: 0x046D, 0xC22B | Matching Device ID: hid_device_system_keyboard | Service: kbdhid
  8. why? There is nothing there.
  9. oh so it was already fixed? He called me 5 times on skype + voicemail of 10 mins, so I thought it wasn't fixed yet.
  10. I wasn't able to find large bugs. Well what is the problem with it? coptargets = 0 local jails = { {2246.1008300781, 2453.1953125, 9.8203125}, {-1406.9072265625, 2655.0927734375, 55.6875}, {-209.9542, 977.7558, 18.188976}, {-1628.2619628906, 676.62005615234, 6.1901206970215}, {624.66278076172, -605.72027587891, 15.923292160034}, {1565.3386230469, -1628.5202636719, 12.382812}, {-2164.3779296875, -2389.533203125, 29.617206573486} } marker = {} function getNearestDP ( x, y ) local temp = { } -- Define a table to store our data. for index = 1, #jails do -- Loop from 1 to the total items in "jails" table. local dist = getDistanceBetweenPoints2D ( x, y, jails [ index ] [ 1 ], jails [ index ] [ 2 ] ) -- Get the distance between the jail coordinates and the given coordinates. table.insert ( temp, { index = index, dist = dist } ) -- Insert it into our "temp" table. end table.sort ( -- Sort the "temp" table by lowest distance. temp, function ( a, b ) return ( ( a.dist or 0 ) < ( b.dist or 0 ) ) end ) return unpack ( jails [ temp [ 1 ].index ] ) -- Return coordinates from the nearest jail. end local copDirectionsColshape addEvent("copdirections", true) function copshops( ) if coptargets == 0 then coptargets = 1 for index = 1, #jails do local jailData = jails[ index ] marker[#marker+1] = createMarker ( jailData[ 1 ], jailData[ 2 ], jailData[ 3 ], "cylinder", 6, 0, 0, 255, 55 ) end local x, y, z = getElementPosition ( source ) local hx, hy, hz = getNearestDP ( x, y ) if hx and hy and hz then local copDirectionsBlip = createBlip ( hx, hy, hz , 30, 3, 0, 0, 255, 255, 50 ) copDirectionsColshape = createColSphere ( hx, hy, hz, 6 ) setElementParent ( copDirectionsBlip,copDirectionsColshape)-- child > parent setElementData ( copDirectionsColshape, "purpose", "copshop",false ) end end end addEventHandler("copdirections", root, copshops) --REMOVES POLICE STATION BLIPS FROM COPS RADAR AND THE MARKERS addEvent("clearcopdirections", true) function clearcopshops() if coptargets == 1 then coptargets = 0 if isElement(copDirectionsColshape) then destroyElement (copDirectionsColshape) -- + child = blip end for index = 1, #marker do local element = marker[index] if isElement(element) then destroyElement (element) end end end end addEventHandler("clearcopdirections", root, clearcopshops)
  11. IIYAMA

    vehicles table

    I don't have time for paid scripting.
  12. IIYAMA

    vehicles table

    Line 10: Check the table data before proceed. local vehicle = carsTable[source] if vehicle then --... end
  13. When I do alt+tab or pressing the windows button my textures are going strange things. I had this problem with 1.3.5, now it is even worse in 1.4 afaik. Screenshot_1 Screenshot_2 Any idea?
  14. Line 6: Comparing nil with false. Nil isn't the same as false, except they act the same. removeCommandHandler returns false/true. Best solution: if cAdd then
  15. IIYAMA

    vehicles table

    no it won't. Vehicles are elements and they will be gone after the resource has restarted. You need to get all the vehicle data and save that. Not the vehicle it self. Example: getElementPosition getElementRotation getElementModel getElementHealth getVehicleWheelStates getVehicleColor etc. etc. You really think it was that easy?
  16. Keep in mind: This kind of event can only be cancelled when the event isn't fully complete. fully complete = fully send local mycode = "[ ..., code ]" local playerDataTable = {} addCommandHandler("send", function(player) triggerLatentClientEvent (player,"enviarClient",10000,player,mycode) local tableHandlers = getLatentEventHandles ( player ) if tableHandlers then local handler = tableHandlers[#tableHandlers] if handler then playerDataTable[player] = handler elseif playerDataTable[player] then playerDataTable[player] = nil end end end) addCommandHandler("cancel", function(player) local handler = playerDataTable[player] if handler then local percentComplete = getLatentEventStatus(player, handler)["percentComplete"] if percentComplete and percentComplete ~= 100 then outputChatBox((tonumber(percentComplete) or 0) .. "%",player) cancelLatentEvent(player, handler ) end playerDataTable[player] = nil end end) addEventHandler("onPlayerQuit",root, -- clean up the memory. function() if playerDataTable[source] then playerDataTable[source] = nil end end)
  17. local mycode = "[ ..., code ]" addCommandHandler("send", function(player) triggerLatentClientEvent (player,"enviarClient",10000,player,mycode) end) addCommandHandler("cancel", function(player) local tableHandlers = getLatentEventHandles ( player ) if tableHandlers then local handler = tableHandlers[#tableHandlers] if handler then outputChatBox(tostring(getLatentEventStatus(player, handler)["percentComplete"])) cancelLatentEvent(player, handler ) end end end) Lets do it right. Will cancel the last latency event. But keep in mind that this event can also be from another resource. So I will recommend you to save those handlers inside a table. As example: local playerDataTable = {} addCommandHandler("send", function(player) triggerLatentClientEvent (player,"enviarClient",10000,player,mycode) local tableHandlers = getLatentEventHandles ( player ) if tableHandlers then local handler = tableHandlers[#tableHandlers] if handler then playerDataTable[player] = handler elseif playerDataTable[player] then playerDataTable[player] = nil end end end) addEventHandler("onPlayerQuit",root, -- clean up the memory. function() if playerDataTable[source] then playerDataTable[source] = nil end end)
  18. Client + cancelLatentEvent = no defining player I was thinking you were using it severside.
  19. cancelLatentEvent( player thePlayer, int handle ) check the syntax for serverside
  20. Projectiles must be added manually. createProjectile I tested it with version: 1.3.5 in the past. Maybe it will be added in the future.
  21. Good job bro, You got more balls then me, I would take those things with me in the grave like they never existed. Just to be sure my time wouldn't be used by unknown people who probably would rip/crush/break and dirty kiss it. (just my opinion) I am going to miss yeh in the DD server. It is a pity that you quite mta.
  22. By cancelling the damage. What is the damage type? and in combination with checking the tasks: https://wiki.multitheftauto.com/wiki/Li ... ayer_tasks
  23. Define the colshape. Line 6.
×
×
  • Create New...