Jump to content

NyiTz

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by NyiTz

  1. NyiTz

    Object Invisible

    Problem solved defining interior. Thank you so much
  2. NyiTz

    Object Invisible

    Unfortunately didn't work 100%, now i can feel that have something there, the gates open too but the object stay invisible. ?
  3. Unfortunately didn't work, only the message appear. ?
  4. Hi guys, i have a problem that i need help to fix it. So in this script i have lights and engine to turn off or on, but the lights works fine and engine just give me a message and dont set to engine off or on, basically engine dont work. With addCommandHandler everything works, but what i want is bindKeys. Thanks in advance for any help! --//Engine On / Off function engine (src, cmd) if getPedOccupiedVehicle (src) and getPedOccupiedVehicleSeat (src) == 0 then local vehicle = getPedOccupiedVehicle (src) if getVehicleEngineState (vehicle) then setVehicleEngineState (vehicle, false) outputChatBox ("Motor ligado!", src, 255, 0, 0) else setVehicleEngineState (vehicle, true) outputChatBox ("Motor desligado!", src, 0, 255, 0) end else return false end end --addCommandHandler ("motor", engine) addEventHandler ("onVehicleStartEnter", getRootElement(), function() bindKey (source, "j", "down", engine) end) --//-- --//Vehicle Lights function lights (src, cmd) if getPedOccupiedVehicle (src) and getPedOccupiedVehicleSeat (src) == 0 then local vehicle = getPedOccupiedVehicle (src) if getVehicleOverrideLights (vehicle) == 1 then setVehicleOverrideLights (vehicle, 2) outputChatBox ("Luzes ligadas!", src, 0, 255, 0) else setVehicleOverrideLights (vehicle, 1) outputChatBox ("Luzes desligadas!", src, 255, 0, 0) end else return false end end --addCommandHandler ("luzes", lights) addEventHandler ("onPlayerVehicleEnter", getRootElement(), function() bindKey (source, "l", "down", lights) end)
  5. Well, i create a automatic gates for ACL group. When i work on dimension 0 ( normal ) everything is fine but now i tried change an object to another dimension but the object stays invisible. What i want is that my object stay visible. Help me please ^^ for i = 1, 40 do Gate3 = createObject ( 5020, -2660.8000488281, 1424.8000488281, 921.20001220703, 0, 0, 270 ) setElementDimension( Gate3, i ) x,y,z = getElementPosition (Gate3) Zona = createColCircle ( x,y, 3, 3 ) function Portao7(thePlayer) for _, group in ipairs ({"Console"}) do if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup( group )) then moveObject (Gate3, 3000, -2660.8000488281, 1424.8000488281, 923 ) end end end addEventHandler ( "onColShapeHit", Zona, Portao5 ) function Portao8(thePlayer) for _, group in ipairs ({"Console"}) do if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup( group )) then moveObject (Gate3, 3000, -2660.8000488281, 1424.8000488281, 921.20001220703 ) end end end addEventHandler ( "onColShapeLeave", Zona, Portao6 ) end
×
×
  • Create New...