
Timiimit
Members-
Posts
142 -
Joined
-
Last visited
Everything posted by Timiimit
-
but marker hit the fence! is that mta element?
-
well, no one knows???
-
It touched fence at begining of la airport.
-
i have but how to detect if its any object in marker!!!!!!! post eg. plzz.
-
but i have attach them and it worked!!! i just want to know how to detect if is any object in marker(not only one specified)!!
-
no. I attached marker to ped that it follows the ped. now i must detect if anyobject is in marker not only one specified. can i make this with "for" function? if yes how!??
-
Hi! is it possible to detect object in marker?
-
i know i have but its not working in admin panel commands aren't working too!
-
Dont u understand I used run command in admin resource but its not working!!
-
Hi! in my server i tried to do /run command and I typed: "/run createVehicle(411, 0, 0, 6)" but nothing happened. anyone know what is wrong?
-
Hi! I want to know what is wrong with this: function detecting( theObject, matchingDimention ) if getElementType ( theObject ) == "object" then botHit() -- some function end end its started by event onColShapeHit and botHit is name of some other function. but when my colShape hits the object nothing happens(doesn't go to botHit() i tested that by adding outputConsole )
-
why is this not working?: local hillArea = getElementsByType( "object" ) -- add hill_Enter as a handler for when a player enters the hill area function hill_Enter ( thePlayer, matchingDimension ) if getElementType ( thePlayer ) == "player" then --if the element that entered was player --let's get the name of the player local nameOfThePlayer = getPlayerName ( thePlayer ) --announce to everyone that the player entered the hill outputChatBox ( nameOfThePlayer.." entered the zone!", getRootElement(), 255, 255, 109 ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter )
-
how to get all objects?
-
thx! Only script that worked today!! but I want to trigger this event when i touch any object. anyone?
-
other scripts that are in this recources are working so it must be wrong lua!!?????? (from wiki nothing is wrong gotta be BUG)
-
<meta> <info author="[GFL]TimiimiT" name="something" version="1.0"/> <script src="test.lua" /> </meta> btw I started the resource! tried onPlayerContact not working: function outputElementType ( prev, current ) if ( current ) then outputChatBox ( "You have hit an "..getElementType ( current ) ) end end addEventHandler ( "onPlayerContact", getRootElement(), outputElementType )
-
i think that is thesame. anyway it's still not working!!!
-
I want it to trigger it only once! not again when its not targeting anything. + nothing happens at this: function onPlayerTarget ( targetElem ) if getElementType ( targetElem ) == "object" then output("someone touched an object!") end end addEventHandler ( "onPlayerTarget", getRootElement(), onPlayerTarget ) HELP???!!!:::::-----....._____
-
Hi! I want to know how "onColShapeHit" works! I read the wiki page but i still don't get it. I tried this: function test( thePlayer ) outputChatBox("it's working!!") end addEventHandler("onColShapeHit", getRootElement(), test) ...But it doesn't work. I want to make script that outputs 'it's working!!' when I touch any object. why noone knows?
-
thx! Edit: still not working... + no errors