Jump to content

Search the Community

Showing results for tags 'move objects'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. Hey guys. I'm new to lua. I found a way to move objects from server side. But when I upload it to the server it doesn't work. Because server doesn't support server side scripting. So can you guys please tell me how to move an object from client side. So can you please provide me a full script which can move an object from client. Thank you. function omg_brigemove() omg3228 = createObject(3095, 1779.900390625, -7523, 0, 0, 0, 0) omgMoveomg3228(1) omg3604 = createObject(994, 1776.7001953125, -7527.3999023438, 0.60000002384186, 0, 0, 0) omgMoveomg3604(1) omg7312 = createObject(994, 1776.6999511719, -7518.6499023438, 0.60000002384186, 0, 0, 0) omgMoveomg7312(1) end function omgMoveomg3228(point) if point == 1 then moveObject(omg3228, 2000, 1779.9000244141, -7491.7001953125, 0, 0, 0, 0) setTimer(omgMoveomg3228, 2000, 1, 2) elseif point == 2 then moveObject(omg3228, 2000, 1779.900390625, -7523, 0, 0, 0, 0) setTimer(omgMoveomg3228, 2000, 1, 1) end end function omgMoveomg3604(point) if point == 1 then moveObject(omg3604, 2000, 1776.7001953125, -7496, 0.60000002384186, 0, 0, 0) setTimer(omgMoveomg3604, 2000, 1, 2) elseif point == 2 then moveObject(omg3604, 2000, 1776.7001953125, -7527.3999023438, 0.60000002384186, 0, 0, 0) setTimer(omgMoveomg3604, 2000, 1, 1) end end function omgMoveomg7312(point) if point == 1 then moveObject(omg7312, 2000, 1776.7001953125, -7487.3999023438, 0.60000002384186, 0, 0, 0) setTimer(omgMoveomg7312, 2000, 1, 2) elseif point == 2 then moveObject(omg7312, 2000, 1776.6999511719, -7518.6499023438, 0.60000002384186, 0, 0, 0) setTimer(omgMoveomg7312, 2000, 1, 1) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), omg_brigemove)
×
×
  • Create New...