Jump to content

123neri123

Members
  • Posts

    6
  • Joined

  • Last visited

Details

  • Gang
    PDP

123neri123's Achievements

Vic

Vic (3/54)

0

Reputation

  1. function plant() if canPlant == true and plants > 0 then plants = plants - 1 local x, y, z = getElementPosition ( localPlayer ) local rx, ry, rz = getElementRotation ( localPlayer ) tempCol[1] = createColCuboid ( x, y, z - 5, 10.0, 10.0, 10.0 ) planetObject[1] = createObject ( 804 , x, y, z, rx, 0, 0 ) num = num + 1 else if canPlant == true then outputChatBox ("you dont have plants") else outputChatBox ("you dont have tractor") end end end function takeWeed(theElement) outputChatBox (getElementModel(theElement)) if ( theElement == tempCol[1] ) then outputChatBox ("work") end end addEventHandler("onClientColShapeHit",getRootElement(),takeWeed) still dont work , its recognize id 162 but i need that line "theElement == tempCol[1]" because i need to know who to remove (which object)
  2. i making farm script, when i prees key its create plant object on my position and i need to get the combine and go on that when its ready , but i cant do that because onClientVehicleCollision dont recognizing plants , you have another solution for me?
  3. i tried to scripting to edior mode , select object and create another one . code : function start(player) outputChatBox("welcome to neri tools" ) end function createandmove(player) if selectedElement ~= nil then createObject ( 1337, 5540.6654, 1020.55122, 1240.545, 90, 0, 0 ) newobject = createObject( model, x, y, z , 90, 0, 0 ) end end function click(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement) if ( clickedElement ) then selectedElement = clickedElement model = getElementModel(selectedElement) x , y , z = getElementPosition(selectedElement) outputChatBox(tostring(x) .. " ".. tostring(y) .. " ".. tostring(z) .. " ".. tostring(model)) else selectedElement = nil end end addEventHandler( "onClientResourceStart",getRootElement( ) , start ) addCommandHandler("create",createandmove) addEventHandler ( "onClientClick", getRootElement(), click ) the select object is work , but its not create the object with no errors , please help me with that , and if you have better way to select object go for it. thanks
  4. work ty but is not do next map
  5. What do I need to change in race-gamemode to only after everyone disqualified start a new game no one will remain so start new game
×
×
  • Create New...