Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. Thanks for the triggerClientEvent, i'll change that! But, the real problem was addEventHandler, when it should have bee addEvent! Oh my bad, I didn't see that error.
  2. xXMADEXx

    Editbox

    Try this: function checkRegField() local inputusernamereg = guiGetText(GUIEditor.edituserreg) local inputpasswordreg = guiGetText(GUIEditor.editpassreg) if inputusernamereg:gsub ( " ", "" ) == "" or inputpasswordreg:gsub ( " ", "" ) == "" then guiSetVisible (GUIEditor.window[2], true ) guiBringToFront ( GUIEditor.window[2] ) else triggerServerEvent("submitRegister", localPlayer, inputusernamereg, inputpasswordreg) end end
  3. on line 2, try chaning "GUIEditor.window[2]" to "GUIEditor.window[3]" and in triggerClientEvnet, you should just trigger it for the player, not all of the players.
  4. https://community.multitheftauto.com/index.php?p= ... ls&id=8431 It's Al3grab's script, he just changed the GUI
  5. Use getCursorPosition and check to see if theposition is inside the rectangle.
  6. Did you even bother to read the replies? If you had, you would have seen that KRZO said this.
  7. It is, but you'd need to make your own "findRotation" function for that.
  8. If you use onClientRender, the arrow is very laggy. onClientPreRender smooths it out.
  9. (Not Tested) local car = createVehicle ( 0, 0, 0 ) local arrow = createObject ( the_arrow_id, 0, 0, 0 ) addEventHandler ( "onClientPreRender", root, function ( ) local cx, cy, cz = getElementPosition ( car ) local x, y, z = getElementPosition ( localPlayer ) local rot = findRotation ( cx, cy, x, y ) setElementPosition ( arrow, x, y, z + 1 ) setElementRotation ( arrow, 0, 0, rot ) end ) function findRotation(x1,y1,x2,y2) local t = -math.deg(math.atan2(x2-x1,y2-y1)) if t < 0 then t = t + 360 end; return t; end
  10. RoS Scripts: https://www.mediafire.com/folder/h4kcbey50ld5z/scripts
  11. xXMADEXx

    Music

    Hi guys, im trying to find some new type of music... Post what type of music you like here!
  12. Im not sure, but i'd assume you could do it using onClientPreRender & setCameraMatrix
  13. use the event onVehicleExit, and then destroyElement
  14. create the arrow on the client side, and use this function in onClientPreRender https://wiki.multitheftauto.com/wiki/FindRotation
  15. xXMADEXx

    Server copying

    Well, he is technically allowed to do it, as long as he isn't stealing your scripts.
  16. function convertStringToBoolean ( str ) local str = tostring ( string.lower ( str ) ) if ( str == 'true' ) then return true elseif ( str == 'false' ) then return false end return nil end
  17. There is a problem with the image file, the customblips resource works just fine.
  18. xXMADEXx

    Crader Services

    If you really wanna attracted some clients, you might want to put some of your previous work on display.
  19. We don't help with stolen scripts.
  20. xXMADEXx

    Checkbox

    guiCheckBoxSetSelected
  21. For such a big server, they really should put in an anti-flame/anti-cursing script, because staff can't manage all of the players.
  22. xXMADEXx

    Updating

    use the "upgrade" command.
×
×
  • Create New...