Fury Posted July 23, 2012 Share Posted July 23, 2012 (edited) -- Edited July 27, 2012 by Guest Link to comment
scratcher911 Posted July 23, 2012 Share Posted July 23, 2012 I don't think that anybody will edit 300 lines code ... Link to comment
Fury Posted July 23, 2012 Author Share Posted July 23, 2012 put here /debugscript 3 no error dude. Link to comment
TwiX! Posted July 23, 2012 Share Posted July 23, 2012 check it with outputDebugString Link to comment
Fury Posted July 24, 2012 Author Share Posted July 24, 2012 (edited) -- Edited July 27, 2012 by Guest Link to comment
Dev Posted July 24, 2012 Share 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() Link to comment
Fury Posted July 24, 2012 Author Share 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.. Link to comment
TAPL Posted July 24, 2012 Share 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) Link to comment
Fury Posted July 24, 2012 Author Share 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 Link to comment
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