Jump to content

Kenix

Retired Staff
  • Posts

    4,121
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Kenix

  1. Kenix

    Collision

    local tObjects = { createObject ( 3437, 5222.7998046875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5199.3999023438, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5234.4995117188, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5246.19921875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5257.8989257813, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5269.5986328125, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5281.2978515625, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5292.998046875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5304.697265625, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5187.69921875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5175.9990234375, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5164.298828125, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5152.5986328125, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5140.8984375, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5129.1982421875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5117.498046875, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5211.1000976563, 755.70001220703, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5211.1000976563, 758.69921875, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5211.1000976563, 761.69921875, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5211.1000976563, 764.69921875, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5211.1000976563, 767.69921875, 62.799999237061, 0, 90, 0 ); createObject ( 3437, 5211.099609375, 773.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 785, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 796.69921875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 808.3994140625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 820.099609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 831.7998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 843.5, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 855.19921875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 866.8994140625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 878.599609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5211.099609375, 902, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 878.599609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 866.90234375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 855.2021484375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 843.501953125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 831.8017578125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 820.1005859375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 796.7001953125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 785, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 773.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5208.099609375, 761.599609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 761.599609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 773.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 785, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 796.7001953125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 820.1005859375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 831.8017578125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 843.501953125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 855.2021484375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 866.90234375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 878.599609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5214.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5181.099609375, 761.599609375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5184.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5187.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5190.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5193.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5196.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5226.09765625, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5229.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5232.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5235.095703125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5238.095703125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5241.095703125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5238.095703125, 773.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5235.095703125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5232.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5229.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5226.09765625, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.0986328125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5196.09765625, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5193.09765625, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5190.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5187.0966796875, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5184.095703125, 890.2998046875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5235.095703125, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5232.0966796875, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5229.0966796875, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5226.09765625, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.09765625, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.09765625, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5196.095703125, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5193.095703125, 785.0029296875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5232.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5229.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5226.09765625, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.0966796875, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5196.09375, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5193.09375, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5190.0908203125, 796.7060546875, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5193.091796875, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5196.091796875, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.095703125, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.095703125, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5226.09765625, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5229.0966796875, 808.400390625, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5226.09765625, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.0947265625, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.0947265625, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5196.08984375, 820.1083984375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5199.09375, 831.80078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.09375, 831.80078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 831.80078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 831.80078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 831.80078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5223.09765625, 831.80078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5220.0986328125, 843.5078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 843.5078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 843.5078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5202.0927734375, 843.5078125, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5205.099609375, 855.2021484375, 62.799999237061, 0, 90, 90 ); createObject ( 3437, 5217.0986328125, 855.2021484375, 62.799999237061, 0, 90, 90 ); } for nIndex, uObject in pairs ( tObjects ) do setElementCollisionsEnabled ( uObject, false ) end
  2. Not necessarily create table in client side for control timers. But if you create infinite timers in server side you should use tables and index for ex player or what you want for remove timer. So for example you create timer check something ( time playing, .. ). Example 10 players joined to server then created 10 timers . So you should clean timer if player quit ( in this case ) if you not create it your server ( will lag, because timers not killed ).
  3. Both the codes wrong. local t = { tSecond = { nValue = 1; } } print( t.tSecond.nValue ) --1 ------- or ------------------------- print( t['tSecond']['nValue'] ) -- 1 -- ------- or ------------------------- print( t.tSecond['nValue'] ) -- 1 -- ------- or ------------------------- -- Some codes print( t['tSecond'].nValue ) -- 1
  4. Where setmetatable? Why? You not like prefixes? u = userdata t = table n = number s = string ...
  5. На xml. Имхо самое то. https://wiki.multitheftauto.com/wiki/Cli ... _functions
  6. Kenix

    playSound3D

    viewtopic.php?f=148&t=40809
  7. Kenix

    playSound3D

    Variables inci, siker defined?
  8. Это просто идея. dxDrawImage Цвет картинки благо можно изменить ) Естественно обновляй в ренедере и используй эту функцию getScreenFromWorldPosition
  9. You trigger for all elements. Better read about triggerClientEvent.
  10. Kenix

    Help me

    [RHD]ReFleX, You already ask it. viewtopic.php?f=91&t=41611&start=45
  11. 1. Функции bindKey setVehicleOverrideLights 2.https://community.multitheftauto.com/index.php?p= ... ls&id=2540 3.Создаёшь маркер. createMarker Меняешь цвет маркера через setMarkerColor И вот https://wiki.multitheftauto.com/wiki/Get ... metagColor.
  12. Sry for double post. He reupload it again https://community.multitheftauto.com/index.php?p= ... ls&id=4364
  13. Kenix

    Nothing?

    You need use it in any resolutions? You should use relative argument or calculate it your self.
  14. Kenix

    Nothing?

    if you use argument relative ( true ) you need use numbers like this 0.9 not 900
  15. Kenix

    chat colour

    Main menu mta -> settings -> Interface?
  16. Run guieditor -> right mouse click -> settings -> Default screen output type: select relative. right mouse click -> Load code ->( select ) -> ( ok you load ) -> right mouse click -> output code or print code.( select what you want ) it's easy way. Draken, nope P.S Updated
  17. You can change all in settings guieditor. Like save only in relative. But you need load this code in guieditor.
  18. https://community.multitheftauto.com/index.php?p= ... ls&id=4362
  19. Kenix

    Error

    Show your meta.xml
  20. Set element data your marker( s ). Add one event handler ( onMarkerHit ) and check if marker have this data. Create table position for all markers. ... P.S Long ago i did write my interior system only 31lines in client side and 153 lines + comments. Also you can make it in map editor, move interior markers create text and etc.
×
×
  • Create New...