Jump to content

freecam for race


Fury

Recommended Posts

 exports.freecam:setFreecamDisabled() 

I fail to find this exported function in the freecam script you gave above, I think you're supposed to be calling:

exports.freecam:setPlayerFreecamDisabled() 

    -- server functions --> 
    function="setPlayerFreecamEnabled" /> 
    function="setPlayerFreecamDisabled" /> 
    function="isPlayerFreecamEnabled" /> 
    function="setPlayerFreecamOption" /> 
    -- client functions --> 
    function="setFreecamEnabled" type="client" /> 
    function="setFreecamDisabled" type="client" /> 
    function="isFreecamEnabled" type="client" /> 
    function="setFreecamOption" type="client" /> 
    function="getFreecamOption" type="client" /> 
    function="getFreecamVelocity" type="client" /> 

im using it right..

Link to comment
addCommandHandler("freecam", function() 
     if isPedInVehicle(localPlayer) then 
          if exports.freecam:isFreecamEnabled() then 
               exports.freecam:setFreecamDisabled() 
               setCameraTarget(localPlayer) 
               outputChatBox("#c0c0c0* Freecam #abcdefdisabled#c0c0c0!",255,255,255,true) 
          else 
               exports.freecam:setFreecamEnabled() 
               outputChatBox("#c0c0c0* Freecam #abcdefenabled#c0c0c0!",255,255,255,true) 
          end 
     else 
          outputChatBox("#c0c0c0* You are in a car, you cant use Freecam when you are alive!",255,255,255,true) 
     end 
end) 

Link to comment
addCommandHandler("freecam", function() 
     if isPedInVehicle(localPlayer) then 
          if exports.freecam:isFreecamEnabled() then 
               exports.freecam:setFreecamDisabled() 
               setCameraTarget(localPlayer) 
               outputChatBox("#c0c0c0* Freecam #abcdefdisabled#c0c0c0!",255,255,255,true) 
          else 
               exports.freecam:setFreecamEnabled() 
               outputChatBox("#c0c0c0* Freecam #abcdefenabled#c0c0c0!",255,255,255,true) 
          end 
     else 
          outputChatBox("#c0c0c0* You are in a car, you cant use Freecam when you are alive!",255,255,255,true) 
     end 
end) 

thanks it works :D

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...