Jump to content

Tadpole

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by Tadpole

  1. Im gonna have to update mine alot tho atleast so u can see the blinker in the daytime and to toggle it on and off so i can git rid of the command..but it works for now
  2. Yes that worked thanks 50p now i see all the stuff i didnt put in and maybe ill have a new understanding on it @Vercetti: ill try to remember that i'll try to pay more attention to what im doing next time
  3. well i guess i made a mistake when codeing it i didnt realize i was useing setVehicleLightState on the driver but now i do so i can recode it now and fix my noobish mistakes
  4. Well i Recoded it to Client-side and it got rid of my error but now it just isint turning off the light when i type in the command new code's function flashl ( source ) local theVehicle = getVehicleOccupant ( theVehicle, 0 ) if ( theVehicle ) then setVehicleLightState ( theVehicle, 3, 0 ) setVehicleLightState ( theVehicle, 3, 1 ) end end function flashr ( source ) local theVehicle = getVehicleOccupant ( theVehicle, 0 ) if ( theVehicle ) then setVehicleLightState ( theVehicle, 2, 0 ) setVehicleLightState ( theVehicle, 2, 1 ) end end function carflashl (source) setTimer ( flashl, 1000, 10 ) end function carflashr (source) setTimer ( flashr, 1000, 10 ) end addCommandHandler("lf", carflashl) addCommandHandler("rf", carflashr)
  5. Okay i done as u said Lordy and this time i got bad Ped pointer at getPedOccupiedVehicle line 2 i tryed changeing it from sourcePlayer to thePlayer and it still gives me bad arrguments
  6. So I'm making this script to make the rear lights flash on command and i keep gritting Bad Argument @ getPedOccupiedVehicle - line 2 Ive tryed every thing i can think of to fix it and i admit failure >.> help me please? ^^ function flashl ( sourcePlayer ) local theVehicle = getPedOccupiedVehicle ( sourcePlayer ) if ( theVehicle ) then setVehicleLightState ( theVehicle, 3, 0 ) setVehicleLightState ( theVehicle, 3, 1 ) end end function flashr ( sourcePlayer ) local theVehicle = getPedOccupiedVehicle ( sourcePlayer ) if ( theVehicle ) then setVehicleLightState ( theVehicle, 2, 0 ) setVehicleLightState ( theVehicle, 2, 1 ) end end function carflashl () setTimer ( flashl, 1000, 10 ) end function carflashr () setTimer ( flashr, 1000, 10 ) end addCommandHandler("lf", carflashl) addCommandHandler("rf", carflashr)
  7. allready done 65.41.133.173 port 22004 works flawlessly besides the not showing in list -.- *edit* nvm =.= my browser list finally started doing right and stoped showing my server to me my friend saw it thanks for help lol
  8. Soo got my server up friends can connect to my ip and such been 2 hours and its not in the list! D: even showing up on game-monitor.com help! D:
  9. Tadpole

    race marker

    Okay thanks for the reply *EDIT* ok so i got to a point were i need help! im a bit of a noob at lua but this is what i have so far enter3 = createMarker ( -1148.4782, 345.7957, 13.6835, "cylinder", 30, 125, 0, 0, 155, getRootElement() ) function MarkerHit ( hitPlayer, matchingDimension ) outputChatBox ( "sourcePlayer() has won the race!" ) end addEventHandler("onMarkerHit", enter3, MarkerHit) function MarkerHit ( hitPlayer, matchingDimension ) outputChatBox ( "thePlayer finished second!" ) end addEventHandler ("onMarkerHit", enter3, MarkerHit)
  10. Tadpole

    race marker

    ok so im wondering me and my friend is working on a dragstrip race wt the airport in SF and i wanna no if i can set onMarkerHit to out put chatbox like (name has won the race) then after he gits passed marker a next (name has finished second) and so on up to six people is this possible thx for reply's
  11. ahh so GM is being a douche *again* lol thanks for the reply
  12. sooo i start up my server and keep geting this error > Querying game-monitor.com master server... failed! (500: Internal Server Error) < but people can connect to my server if i give them the ip for it but its not in list D: help plz
  13. ok i did that but it still isint working it takes me straight to the outside of my house were i would be if i walked through the exitmarker an witch i havent walked through it so it dont take me into house now thanks for the reply ^^ EDIT:it worked forgot to refresh server window X.X thanks for the help!
  14. I'm makeing a marker from a house i build to go into maddoggs house and well now that ive made the marker its affecting every marker :\ then after im in my leave marker tele's me right bak to his mansion :\ heres my code :: enterhouse = createMarker ( -1418.4084, -261.6748, 27.1063, "ring", 1, 25, 50, 39, 75, getRootElement() ) exithouse = createMarker ( 1298.8835, -795.8101, 1084.0078, "arrow", 1, 25, 155, 45, 100) function enterhome ( hitPlayer, matchingDimension ) setElementInterior ( hitPlayer, 5, 1272.9116, -768.9028, 1084.5097 ) end addEventHandler ( "onMarkerHit", getRootElement(), enterhome ) function exithome ( hitPlayer, matchingDimension ) if exithome then setElementInterior ( hitPlayer, 0, -1425.4689, -270.7399, 27.1067 ) else return end end addEventHandler ( "onMarkerHit", exithouse, exithome ) Can some 1 plz help me thx in advance ^^
×
×
  • Create New...