Jump to content

bandi94

Members
  • Posts

    1,037
  • Joined

  • Last visited

Details

  • Gang
    nothing

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

bandi94's Achievements

Hard-@ss

Hard-@ss (35/54)

0

Reputation

  1. Well there is an event called "onPlayerLogin" : https://wiki.multitheftauto.com/wiki/OnPlayerLogin But it's only server side , so if you want to draw a text , etc .... you will have to use triggerClientEvent to call the function on the client side.
  2. bandi94

    SOLVED

    Well there is a reasone of why the player can't play while downloading ( actualy there are more ... ). But one of them is : the download will take the bandwidth, if the player has a bad internet connection then he will have a very nasty lag. Anyway it is possible check this out : https://community.multitheftauto.com/in ... ls&id=3379
  3. "0xAARRGGBB" is not a color , it's a default form of hex color's. AA = alpha , RR = red , GG = green , BB = blue. So if you want white color you use : 0xFFFFFFFF , or tocolor(255,255,255,255) For more hex color codes check this out : http://www.color-hex.com/
  4. Well you need to use "sensor" check's. isVehicleOnGround -- if it's false you are in the air so you stop/ change the Velocity value onClientVehicleCollision onClientVehicleDamage -- this 2 can be used to check if you hit something ( a car in front of you ) then again change Velocity value to make that resistance effect , etc ...
  5. https://wiki.multitheftauto.com/wiki/DxDrawImageSection
  6. local lastDmg = 0; addEventHandler("onClientPlayerDamage",localPlayer, function() lastDmg = getTickCount() end ) setTimer( function () if lastDmg+5000 < getTickCount() and getElementHealth(localPlayer) < 100 then setElementHealth ( localPlayer, ( getElementHealth ( localPlayer ) + 15 ) ) end end,5000,0) end
  7. bandi94

    Question

    IFP loading is disabled because it was unstable. Your move speed was significantly decreased , etc. So you can't load ifp files at all.
  8. function setCurrentChannel(id) if (id < 0) or (id > #radios) then return false; end; outputChatBox("setting done") channelID = id; for i,v in ipairs (radios) do if v[1] == id then actual = v[2] suivant = v[i+1][2] -- next row data 2 previous = v[i-1][2] -- prev row data 2 outputChatBox(v[2]) end return true; end end
  9. In meta.xml write "image.png" in the script write "Image.png" and try it on Windows you will see that will work without any problem. When you will try to run it on Linux you will see in debug that can't find image path. So yes it changes thing's.
  10. Your local host server was Windows server i am prity shure , and the real server is running under Linux. Windows is not Linux you could start learning what is different then you will know why this kind of thing's happen. As a small example Windows dosent care about upper case ( on windows "Mta" and "mta" is the same ) but on Linux there are not the same becouse Linux care about upper case.
  11. bandi94

    Widescreens

    well that should be in the same spot ( you used relativ calculation ) , the problem would be or the text size ( i doubt that it move's very much the text but it could move it a bit). My best guest is the display aspect ration , you mabe use 16:9 and your friend 4:3 or other one. Try to use " dxSetAspectRatioAdjustmentEnabled "
  12. Well it's kinda possible if the 2 car model's are not so different. So if you wanna only add a spoiler and the cop light's you can check this out. https://wiki.multitheftauto.com/wiki/SetVehicleVariant https://wiki.multitheftauto.com/wiki/Vehicle_variants It's the same thing that single player uses for car customization.
  13. Well it say's clear that "thePlayer" argument it's a marker / vehicle and not a Ped / Player. Post the full code , the error is in the line where you call speedCam() function.
  14. Why you dont use "moveObject" ??
  15. Well there is setTimer but the minimum time is 50 mili secs not even close to 3. After all what is so hard to calculate ? You take the current FPS let's say 45 FPS , that is 1 sec (1000 mil sec ) that mean's that the smallest possible trigger is 1000/45 = 22 mili sec, for 3 mili sec you would need 1000/3 = 333 FPS that is not possbile , at 100 FPS (max) you can do a 1000/100 = 10 mili sec trigger.
×
×
  • Create New...