Advertisement
Noneatme

Untitled

Jan 13th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. cFunc["interact_func"] = function()
  2.     if(isPedInVehicle(localPlayer) == false) and (isElement(cSetting["interactElement"])) then
  3.         local theObject = cSetting["interactElement"]
  4.         if(getElementData(localPlayer, "temp.flashlight") == true) then
  5.             triggerServerEvent("onMTFlashlightToggle", localPlayer)
  6.         end
  7.         -- OBJECT INTERACT --
  8.         if(getElementType(theObject) == "object") then
  9.             if(getElementModel(theObject) == 2942) then
  10.                 triggerServerEvent("onMTATMDataNeed", localPlayer)
  11.             else
  12.                 triggerServerEvent("onMTInteractObjectMove2", getLocalPlayer(), theObject)
  13.                 outputChatBox("1")
  14.             end
  15.         end
  16.         if(getElementType(theObject) == "vehicle") then
  17.             if(getElementData(theObject, "Plant") == true) then
  18.                 triggerServerEvent("onMTPlantClick", localPlayer, getElementData(theObject, "Plantobject"))
  19.             end
  20.         end
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement