Jump to content

Trucker


Michael_Tuner

Recommended Posts

Posted

I am I starter scipter so I need some.... I ment a lot of help. And I need some from this:-

I want to make a trucker script for that how will I make one marker appear at that time only? can you tell me the script?

Posted

start by reading tutorials, wiki, and about lua language..

if I understand you correctly, you can hide all markers via:

local markers = getElementsByType('marker')
for key,val in ipairs(marker) do
  SetElementAlpha(val,0)
end

this should work, but may not work, as i wrote it in browser

remember you will need to do it both client and server side

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

varez: I'm fairly sure he meant creating the marker when someone started a mission, not hiding all markers.

To do this, you use createMarker. However, before you start anything, you should pick up some lua tutorials. Afterwards, you can take a look here.

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

Posted

I told you; createMarker.

Starting in the middle of a project is sort of a bad idea, however. You should really learn some Lua first, then you can take a look at my guide and the wiki.

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

Posted

"make one marker appear at that time only"

meybe this is just my bad english, but i understand this as hiding all markers, except one :P

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...