code123

Members
  • Content Count

    13
  • Joined

  • Last visited

Community Reputation

2 Neutral

About code123

  • Rank
    Square

Recent Profile Visitors

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

  1. Hi I 've found very usefull tutorial for racemode mappers [Race/DD/DM..etc] I found this in one of game servers forum. https://mrgreengaming.com/forums/topic/14776-location-of-mappers-helpscriptstoolsresourcesmodstutorial/ NOTE: This is not advertisment or something, I just share great tutrial which help me few times. Good Luck Mappers
  2. You are the best. Thanks We can close topic
  3. Big Thanks for YOU man. BTW can set this code: local screenWidth,screenHeight = guiGetScreenSize() -- Get screen resolution. function renderDisplay ( ) dxDrawImage ( screenWidth/2 -200, 100, 200, 200, 'look.png', 0, 0, -120 ) end function HandleTheRendering ( ) addEventHandler("onClientRender", root, renderDisplay) -- Keep everything visible with onClientRender. -- hide it after 5 sec setTimer(function() removeEventHandler("onClientRender", root, renderDisplay) end, 5000, 1) end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering) to set this pic at the center of screen ? picture size 200px x 200px, cause here https://wiki.multitheftauto.com/wiki/DxDrawImage it is not explained very clear for me :)
  4. Thanks for your reply, but your code doesn't work
  5. Hi I want to draw image for 5 second while when map starting local screenWidth,screenHeight = guiGetScreenSize() -- Get screen resolution. function renderDisplay ( ) dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'look.png', angle, 0, -120 ) end if dxDrawImage then setTimer(dxDrawImage, 5000, 1, 1) end function HandleTheRendering ( ) addEventHandler("onClientRender", root, renderDisplay) -- Keep everything visible with onClientRender. end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering) Script works but image doesn't disappear after 5 seconds what's wrong ?
  6. Hi I use Object Movement Generator to make moving objects on my map. But when You test your map vehicles don't stick to the moving obecjts. I'm instrested in how to get this effect as on video because I can't do that: ith Can anyone help me with it ?
  7. Hi I saw this video on Youtube: https://www.youtube.com/watch?v=hx9nRcDuiO8 Could tell me guys, whereI can I find this script or this type of script in community or somewhere ? I really need to make custom animated texture but IDK how.
  8. Wow, I'm so stupid man XD, Thanks man, it works and, it was full code BTW, it is possible with clientside scripts ?
  9. I'm sure I saved it and etc. BTW The original code looks like that before I did changes function omg_movement() omg5036 = createObject(8838, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 90) omgMoveomg5036(1) omg9139 = createObject(8838, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 0) omgMoveomg9139(1) end function omgMoveomg5036(point) moveObject(omg5036, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100) setTimer(moveObject, 5000, 0, omg5036, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100) end function omgMoveomg9139(point) moveObject(omg9139, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100) setTimer(moveObject, 5000, 0, omg9139, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), omg_movement) And I tried modify it with that: addEvent("onRaceStateChanging",true) addEventHandler("onRaceStateChanging",root, function (new) if (new == "Running") then startomg_movement() end end) By removed that: addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), omg_movement) I don't know how to solve that. Should I use addEventHandler ?
  10. Anyone can tell if it is pobbile? To create a code which strart Lua file type server after map count down? If it is, give me please link to the function on mta wiki and I will try to make a code :)
  11. Edit: or could be another option to create another script with command for start file.Lua (with this movement code inside) after counting down, if it will be easier thing. Can you give me some clue
  12. Hi I have a code and it works from (Object Movement Generator) - server side function omg_movement() omg5036 = createObject(8838, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 90) omgMoveomg5036(1) omg9139 = createObject(8838, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 0) omgMoveomg9139(1) end function omgMoveomg5036(point) moveObject(omg5036, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100) setTimer(moveObject, 5000, 0, omg5036, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100) end function omgMoveomg9139(point) moveObject(omg9139, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100) setTimer(moveObject, 5000, 0, omg9139, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100) end But I need to start it after counting down on the server. (after map loading) function omg_movement() omg5036 = createObject(8838, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 90) omgMoveomg5036(1) omg9139 = createObject(8838, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 0) omgMoveomg9139(1) end function omgMoveomg5036(point) moveObject(omg5036, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100) setTimer(moveObject, 5000, 0, omg5036, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100) end function omgMoveomg9139(point) moveObject(omg9139, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100) setTimer(moveObject, 5000, 0, omg9139, 5000, 2198.2998046875, 1214.2998046875, 13.5, 0, 0, 100) end addEvent("onRaceStateChanging",true) addEventHandler("onRaceStateChanging",root, function (new) if (new == "Running") then startomg_movement() end end) I've added some lines but it's still doesn't works. I'm newbie in scripting. Could you help guys ?