-
Posts
1,193 -
Joined
-
Last visited
Everything posted by tosfera
-
try something like this; local marker1, marker2, marker3, box1, box2; addEventHandler ( "", root, function() marker2 = createMarker(3039.5, -1653.1999511719, 181.69999694824, "corona", 2); box1 = createObject(9131,3040.8000488281, -1653, 182.69999694824, 50.250061035156 ,90.000030517578, 89.999969482422); box2= createObject(9131,3040.3879394531, -1653, 183.19999694824, 50.250061035156 ,90 , 89.994506835938); end ); addEventHandler ( "onClientMarkerHit", root, function( thePlayer ) if ( thePlayer ~= localPlayer ) then return end if ( isElementWithinMarker ( thePlayer, marker2 ) ) then marker3 = createMarker ( 3013.8999023438, -1653, 172.30000305176, "corona", 2); end end ); addEventHandler("onClientMarkerHit", marker3, function( thePlayer ) if ( thePlayer ~= localPlayer ) then return end if ( isElementWithinMarker( thePlayer, marker3 ) ) then setElementCollisionsEnabled( box1, false ); end if ( isElementWithinMarker ( thePlayer, marker3 ) ) then setElementCollisionsEnabled( box2, false ); end end );
-
Hi, I'm trying to see if I can get an interaction working with some objects. It's going quite good but, not every object will be returned as an object type. The processLineOfSight doesn't return an 'object' as type while hovering my mouse over it. So, is there any way to let your cursor or client or server to reconise these objects while creating a preocess line? ( it's about object; 2813, 2816, 2824 and a few more ) thanks
-
What's box2? The script is quite messed up and bad written, sorry to say that.
-
There is, someone did ask help for this earlier. Let me see if I can find his post. edit; these 3 will help you out; viewtopic.php?f=91&t=66886&p=628469&hilit=color+codes#p628469 viewtopic.php?f=91&t=66613&p=626270&hilit=color+codes#p626270 viewtopic.php?f=91&t=65730&p=619267&hilit=color+codes#p619267
-
You should add [lua] tag's around your post, plus post your error and the first eventHandler from the first function too.
-
Latest one I saw was from ehh some weird ass scripting team. It was a login screen. It included a css file. Can't find it anymore, but if you say it doesn't support it. I'll go with it and do as if nothing happend. They should make it possible though...
-
There are a shitload of resources that are using css files somehow. Don't ask me how, when, where or whatever. I've seen some resources using css.
-
How about these css files that were being included in some resources. You could space the background out with an rgba ( r, g, b, opacity ) and still see the text.
-
any errors? Cause the way of thinking is correct; local team = getPlayerTeam ( player ); if ( team == getTeamFromName ( "" ) ) then --make it start the map end
-
You should store your variable first and then trigger it. It's a nicer way and easier to see what's wrong; local money = getPlayerMoney ( getLocalPlayer() ) -- can be triggered client sided, just don't change it! guiGridListSetItemText (mgrid, row, money, money, false, false ); Also, the second error is because you created a local row. Which can't be seen out of his own function, remove the local and it will work. You might want to add the 'local row = nil;' on top of your document.
-
reading it makes me throw up 'cause it's full of bugs, nuf said.
-
WTF? Dude we are talking about the race gamemode, you have no idea what your on about, and you couldn't be anymore incorrect. Goodnight all.. Wauw, the award for biggest bitch goes to.... no not you. I've seen worse, but still. He didn't mention a shooting system in a race system, so ya. In fact, my answer would be right without knowing it is in a race gamemode.
-
That's the most rubbish and failing script I've ever seen, sorry. This will only work for 1 gate, can't add another one without renaming your 'open', spamming the command may result in crashes or misbehaving doors. Your chatbox messages are at the level of a 4 years old kid.
-
Google will give you back a thousand of links, most likely... 50% of them are dead, 30% of them are links or radios you don't like and the other 20% might be usefull, but then you still got 10% that aren't 24/7 so actualy... google returns 10% good radios. Better take a look around for non-commercial radio's. They won't give you any advertisement in another language and such. Keeps the radio system awesome if you ask me.
-
How about OnPlayerWasted. It returns the killer and you already got the player that died.
-
That's not the table TAPL is asking for. Do you have any variable that's called; Objects or Obj?
-
Vouches are small proofz of peepz who you paid. Like, if you would hire me and you paid. I could write you a vouch, you can use those so other people see you actualy pay. ( every forum has other names for them )
-
he means the simple info icon pickup that can be made.
-
Goodluck with this, maybe adding some vouches will make people less shy to reply.
-
offtopic; Waaaow, 3 total new sections of the wiki for me! .___. Thanks TAPL
-
$mtaServer = new mta("181.27.149.37", 22005); new mta => new class called mta => Class mta { // functions }
-
You want them when the resource starts or with a command, or when an event get triggered?