Jump to content

Blaawee

Members
  • Posts

    857
  • Joined

  • Last visited

Everything posted by Blaawee

  1. o.k now it's work i forget remove this (--) , thx capy now it say at line 58 when i change my name tag color
  2. i put it false it wont show
  3. Blaawee

    need help

    Benxamix2 Thx For helping me but your codes not working , i will try onther syntex thx agin
  4. Blaawee

    need help

    So what should i do now
  5. Blaawee

    need help

    o.k thank you , but there is two proplem : 1. when i try you code , nothing happend 2. when i remove the symbole in the line : 16 give error in the event's here my edit : local player = getLocalPlayer ( ) local fpsmode = false bindKey ( "r", "down", function ( ) fpsmode = not fpsmode toggle ( ) end ) function toggle ( ) if isPedInVehicle ( player ) and fpsmode then addEventHandler ( "onClientPreRender", setFPSCamera ) outputChatBox ( "View Mode |on|", source, 0 , 255, 0 , true) else removeEventHandler ( "onClientPreRender", setFPSCamera ) setCameraTarget ( player ) outputChatBox ( "View Mode |OFF|", source, 255, 255, 255, true ) end end addEventHandler ( "onClientPlayerVehicleEnter", player, toggle ) addEventHandler ( "onClientPlayerVehicleExit", player, toggle )
  6. Blaawee

    need help

    not working , at line : 9. isPedInVehicle 12. bad event 13. setCameraTarget and i'v been exit the Vehicle twice
  7. Blaawee

    need help

    OOOPS My Bad , ok what about binding
  8. if i'm right , but this in freeroam gamemode meta : function="exports.exp_system" type="server" /> then start the EXP resource
  9. Blaawee

    need help

    o.k edit : when i enter the Vehicle its doesn't get ped Position mybe the event in line 7
  10. Blaawee

    need help

    with bind is better mybe he doesn't like it , i did this and it say : line 9 unexpected symbol near ')' local setFPSCamera = false function toggle( ) if isPedInVehicle ( source ) then local x1, y1, z1 = getPedBonePosition ( source, 6 ) setCameraMatrix ( x1, y1, z1 ) addEventHandler ( "onClientPreRender", setFPSCamera ) else setCameraTarget ( source ) end end ) addEventHandler ( "onClientPlayerVehicleEnter", getLocalPlayer ( ), toggle ) addEventHandler ( "onClientPlayerVehicleExit", getLocalPlayer ( ), toggle )
  11. Blaawee

    need help

    when the player in Vehicle, to make it like i'm driving realy
  12. Blaawee

    need help

    this what i edit : head = false function on( ) if head then local x1, y1, z1 = getPedBonePosition ( source, 6 ) setCameraMatrix ( x1, y1, z1 ) end end ) addEventHandler ( "onClientPlayerVehicleEnter", getRootElement ( ), on ) function off( ) if not head then setCameraTarget ( source ) else resetCamera ( ) end end ) addEventHandler ( "onClientPlayerVehicleEnter", getRootElement ( ), off ) function bindTheKeys () bindKey ( "m", "down", on ) bindKey ( "m", "up", off ) end edit
  13. Blaawee

    need help

    Hmmm , o.k i will see it
  14. Blaawee

    need help

    FPS , first person shotter like this :
  15. Blaawee

    need help

    the event when a player join , what about on player enter the car ??
  16. Blaawee

    need help

    hi guys , i want to change my camera view mode just like fps when i bind a button and want to diseble it when i bind it again , and i don't know how to start it , Possible benefit ?
  17. Blaawee

    HELP!!!

    Capy just tell how :@
  18. mybe he want rescource for his server , look at the community mybe you find what you looking for https://community.multitheftauto.com/
  19. how you will do it , i mean is it a window or what
  20. function x () teamRed = createTeam ( "Red", 255, 0, 0 ) teamBlue = createTeam ( "Blue", 0, 0, 255 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), x ) function count (thePlayer) local teamRed = getTeamFromName ( "Red" ) local teamBlue = getTeamFromName( "Blue" ) local RedCount = countPlayersInTeam ( teamRed ) local BlueCount = countPlayersInTeam( teamBlue ) if Redcount == Bluecount then setPlayerTeam (thePlayer, teamRed ) elseif Redcount < Bluecount then setPlayerTeam (thePlayer, teamBlue ) elseif Redcount > Bluecount then setPlayerTeam (thePlayer,teamRed ) setTeamFriendlyFire ( teamBlue, false ) setTeamFriendlyFire ( teamRed, false )
  21. mybe this Work: For #2 function team () teamRed = createTeam ("Red", 255, 0, 0 ) teamBlue = createTeam ("Blue", 0, 0, 255) end addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()), team ) function count (thePlayer) local teamRed = getTeamFromName ( "Red" ) local teamBlue = getTeamFromName( "Blue" ) local RedCount = countPlayersInTeam ( teamRed ) local BlueCount = countPlayersInTeam( teamBlue ) if Redcount == Bluecount then setPlayerTeam (thePlayer, teamRed ) elseif Redcount < Bluecount then setPlayerTeam (thePlayer, teamBlue ) else if Redcount > Bluecount then setPlayerTeam (thePlayer,teamRed ) setTeamFriendlyFire ( teamBlue, false ) setTeamFriendlyFire ( teamRed, false ) end end addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()), count )
  22. O.k Thx All , i know you get tired of me Sooory
  23. LoL TAPL :D :D :D :D :D :D
×
×
  • Create New...