scratcher911 Posted July 23, 2012 Posted July 23, 2012 I don't think that anybody will edit 300 lines code ...
Dev Posted July 24, 2012 Posted July 24, 2012 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()
Fury Posted July 24, 2012 Author Posted July 24, 2012 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..
TAPL Posted July 24, 2012 Posted July 24, 2012 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)
Fury Posted July 24, 2012 Author Posted July 24, 2012 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now