Tadpole
Members-
Posts
14 -
Joined
-
Last visited
Everything posted by Tadpole
-
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
-
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
-
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
-
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)
-
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
-
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)
-
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
-
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:
-
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)
-
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
-
ahh so GM is being a douche *again* lol thanks for the reply
-
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
-
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!
-
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 ^^
