Jump to content

naz19

Members
  • Posts

    84
  • Joined

  • Last visited

Everything posted by naz19

  1. btw i seen same thing (like click outside of window to close it) in color picker (freeroam resource)
  2. as i understand you, u must use event onClientGUIClick, and check if your window isn't source.
  3. naz19

    Entire value?

    i used math.floor
  4. naz19

    outputChatBox

    ok Edit: i updated my post
  5. naz19

    outputChatBox

    if it is inside event 'onClientMarkerHit', u can get player that entered into marker example: addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( source == varMarker ) then -- replace varMarker by your marker variable outputChatBox ( getPlayerName ( player ) .. ' #FFFF00is the new winner! Received: $600000', root, 255, 255, 255, true ); end end )
  6. https://community.multitheftauto.com/index.php?p= ... ls&id=4489 rafinha 11 - b&y3
  7. the most worst is that i can't see any error x( idea of my code (as you see) is to create car that will move without anyone (controlled by script), i tryed use markers for this, but as i can't see error and it's don't work, i must ask have you any another idea how to make it?
  8. but.....script works car creates, ped too, everything works without rotating i don't think that problem is with meta P.S.:meta error is because bad copy/paste
  9. <meta> name="lol" type="script" author="Naz" version="1.0" description="smth"></info> <script src="smth.lua"></script> </meta> Edit: type of script is not specified = type='server'
  10. addEventHandler('onResourceStart',root, function() ped = createPed(252,-158,584,15) veh = createVehicle(515,-158,584,16,0,0,284) setTimer(function() warpPedIntoVehicle (ped, veh,0) end,1000,1) if (veh) then setTimer( function() setElementVelocity(veh,0.5,0,0) end ,5000,1) end marker = createMarker(-35,613,11,"ring",3) addEventHandler('onMarkerHit',root, function(hitElement, matchingDimension) if source == marker then if hitElement == veh then setTimer( function() setElementRotation(veh,0,90,30) ------------------------ don't rotate! end ,1000,1) end end end ) end ) HELP ME!!!!!!!!!!! debugscript (3) says nothing x(
  11. P.S.: в обих кодах должны быть ошибки, потому-что их написал Я хD
  12. или addEventHandler('ивент',root, function() local x,y = guiGetScreenSize() if (x==1024) and (y==768) then dxDrawText('текст',x,y,w,h,tocolor(255,255,255,255),1.0,"default-bold","center","center",false,false,true)--даные которые наиболее подходят-- esleif (x==800) and (y==600) then dxDrawText('текст',x/2,y/2,w,h,tocolor(255,255,255,255),1.0,"default-bold","center","center",false,false,true)--даные подходящие для разширения 800x600-- end )
  13. я думаю можно использовать что-то типа: local x,y = guiGetScreenSize() dxDrawText('текст',x/2,y/2,w,h,tocolor(255,255,255,255),1.0,"default-bold","center","center",false,false,true) --текст создастся по середине, размер задай статический
  14. wiki.multitheftauto.com/wiki/RemoveWorldModel
  15. agree.... But there is cool oldschool maps too!!!
×
×
  • Create New...