hrtht

Members
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

0 Neutral

About hrtht

  • Rank
    Square

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. function repairVehicle ( thePlayer, commandName) if ( isPedInVehicle ( thePlayer ) ) then local theVehicle = getPedOccupiedVehicle ( thePlayer) local succes = fixVehicle ( theVehicle ) if ( succes ) then outputChatBox (" 1 ", thePlayer ) outputChatBox ( "0", thePlayer ) end end end addCommandHandler ( "rv", repairVehicle) Its serverside
  2. How to add a output for saying that you're no longer Ghost?
  3. function ghostmode_on() local playerVehicle = getPedOccupiedVehicle(localPlayer) -- Get the players vehicle if(playerVehicle) then -- Check the return value. for i,v in pairs(getElementsByType("vehicle")) do --LOOP through all vehicles setElementCollidableWith(v, playerVehicle, false) -- Set the collison off with the other vehicles. end outputChatBox("You are now a Ghost") end end addCommandHandler("ghostmode", ghostmode_on) -- Add the /ghostmode Command. What I need to change to get it working with players? I'm new help me man
  4. I know, that's why Im asking another way to do it
  5. How to fix invicible weapon when press for the jetpack?
  6. Still doesn't work, the head is stuck to the right, I want it for all not just local player man
  7. I started days ago on this.. if you can send me the code it would be great man
  8. addEventHandler("onClientRender", getRootElement(), function() for k,player in ipairs(getElementsByType("player")) do if getElementHealth(player) >= 1 then local width, height = guiGetScreenSize () local lx, ly, lz = getWorldFromScreenPosition ( width/2, height/2, 10 ) setPedLookAt(player, lx, ly, lz) end end end)
  9. How to see the other player every time he moves his head? current scripts only leave it looking to one side.