Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 13/05/23 in all areas

  1. You should attach the hunter to theObject, not the other way around. attachElements(hunter,theObject)
    1 point
  2. If you have cheats of any sort running on your device, for example for another game, then close those and restart MTA
    1 point
  3. The easiest way is to create an invisible object that has no collisions and attach the vehicle to it. That way, when you use the moveObject function, the vehicle will move along with it. Here are the functions you will need: createObject setElementCollisionsEnabled setElementAlpha attachElements moveObject
    1 point
  4. Hey, i made what you told me via pm, You can change the r,g,b to change the color of the zone and alpha to change the alpha of it too add it to server side in meta since the events are server sided. local r,g,b = 50, 150, 50 local alpha = 155 local GreenZone = createColRectangle ( 2898.93,-1135.61,255,255) local Radar = createRadarArea ( 2898.93,-1135.61,255,255,r, g, b, alpha) addEventHandler ( "onColShapeHit", GreenZone, function (thePlayer,matchingDimension ) if matchingDimension and isElement(thePlayer) and getElementType(thePlayer) == "player" then toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) outputChatBox( "Safe Zone: You've entered to the greenzone.",thePlayer, r,g,b) end end) addEventHandler ( "onColShapeLeave", GreenZone, function ( thePlayer, matchingDimension ) if matchingDimension and isElement(thePlayer) and getElementType(thePlayer) == "player" then toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) outputChatBox ( "Safe Zone: You've left the greenzone,now all your ammos will works.",thePlayer,255,0,0) end end) Meta should be like that: ~Have fun scripting
    1 point
×
×
  • Create New...