Jump to content
Mr. Green Gaming

Map Scripts


Recommended Posts

I've been testing it today and most the times you get semi-flipped in the ground its kinda hard to get back to normal, looks like gravity working...

I wanted to use this but I don't know how to make an help/controls window/words show up on the screen. The script itself is supposed to have the controls displayed when you click f9 but they dont...

Edited by FOTL.Emanuel
Link to comment
  • Replies 90
  • Created
  • Last Reply

Top Posters In This Topic

Here is my text script: this one show the text only for 15 sec

Put this line into your meta file:


<script src="helptext.lua" type="client" />

And save this one as helptext.lua


local rootElement = getRootElement()
local screenWidth, screenHeight = guiGetScreenSize()

function createText ( )
dxDrawText ( "Text", 0, 0, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown", "left", "center", false, false, false )
setTimer (remove, 15000, 1) --Text showing for 15 sec
end

function remove ()
removeEventHandler("onClientRender", rootElement, createText)
end

addEventHandler("onClientRender", rootElement, createText)

Edited by CsenaHUN
Link to comment
  • 2 weeks later...

well I wont to build a short map with some obstacels so it is actually easy to play, but with the changed controls it becomes a kind of difficult and funny (I hope)

I don't really need a ready written script (I will try to write it myself) but it would be nice to know the file in the main game gta*, where the controls are definated. (if it is in a compresed file it would also be nice if you can tell me how I can uncompress the file(a programm or thomething).

So this is my main idea. I hope someone can help me :)

*or/and in mta

Edited by lolmam
Link to comment
  • 2 weeks later...

Thought this would be interesting to know for the mappers here. A new addon for the map editor has been released at mta community, it generates code to move objects. (Still beta, so don't blame me if it doesn't work)

Download + install: http://community.mta...details&id=1224

Object Movement Generator from DDC (beta)

an attempt to help some people create moving objects more easily.

basic idea is:

you create a dummy object in map editor, place it at starting point, get a point from that location, move your object to next location, set a point/timings there, move to 3rd place, set a point, etc etc.

after you added all the points you need, dummy object can be deleted from map, it will be created by generated lua script when map resource starts.

It works and looks a bit like rcg, and seems to be very GUI friendly.

2840.jpg

2839.jpg

So if you're map editor works, make some moving maps!

Link to comment

Thought this would be interesting to know for the mappers here. A new addon for the map editor has been released at mta community, it generates code to move objects. (Still beta, so don't blame me if it doesn't work)

Download + install: http://community.mta...details&id=1224

Object Movement Generator from DDC (beta)

an attempt to help some people create moving objects more easily.

basic idea is:

you create a dummy object in map editor, place it at starting point, get a point from that location, move your object to next location, set a point/timings there, move to 3rd place, set a point, etc etc.

after you added all the points you need, dummy object can be deleted from map, it will be created by generated lua script when map resource starts.

It works and looks a bit like rcg, and seems to be very GUI friendly.

2840.jpg

2839.jpg

So if you're map editor works, make some moving maps!

You can't be serious. I have been dreaming of a tool like this, a few days ago.

When this works, I owe you man.

Link to comment
  • 4 weeks later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...