Fury Posted July 23, 2012 Posted July 23, 2012 (edited) -- Edited July 27, 2012 by Guest Destruction Derby
scratcher911 Posted July 23, 2012 Posted July 23, 2012 I don't think that anybody will edit 300 lines code ...
TwiX! Posted July 23, 2012 Posted July 23, 2012 put here /debugscript 3 - Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]
Fury Posted July 23, 2012 Author Posted July 23, 2012 put here /debugscript 3 no error dude. Destruction Derby
TwiX! Posted July 23, 2012 Posted July 23, 2012 check it with outputDebugString - Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]
Fury Posted July 24, 2012 Author Posted July 24, 2012 (edited) -- Edited July 27, 2012 by Guest Destruction Derby
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() "First they ignore you, then they laugh at you, then they fight you, then you win." - Mahatma Gandhi (1869-1948)
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.. Destruction Derby
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 Destruction Derby
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