Jump to content

misterman66

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by misterman66

  1. I found the setAccountData to be easier as it save automatically when logged in! @N3xt Thank you, I'll try it!
  2. So would I transfer the data over using that? I've messed around with it but can't figure out what to do with it.
  3. How would I get/setAccountData on Client side? I've used getAccountData to get the info I want, but how would I get it on Clientside for my gui? Because setAccountData is a Server function only! Any help would be great, thanks!
  4. Here it is, function enterVehicle ( thePlayer, seat, jacked ) -- when a player enters a vehicle if ( ambVehicle[getElementModel ( source )] ) and ( ambSkin[getElementModel ( thePlayer )] ) then outputChatBox ( "RADIO: An accident has happened, all units respond!", client, 0, 0, 200) injured = createPed (233, 1203, -1520, 14) setPedAnimation(injured, "CRACK" ,"crckidle2", 150000000, true) blipp = createBlipAttachedTo(injured, 22) local marker1 = createMarker(500.03125, -1319.93359375, 14.099959373474, "cylinder", .5, 0, 222, 0, 100) attachElements (marker1, injured) addEventHandler( "onMarkerHit", marker1, MarkerHit ) end end addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle ) function MarkerHit() destroyElement(injured) destroyElement(marker1) destroyElement(blipp) end
  5. Why is this being triggered before the addEventHandler is being triggered? function MarkerHit() destroyElement(injured) destroyElement(marker1) destroyElement(blipp) end It is just automatically destroying the elements before the marker is being hit!
  6. So I've tried different parameters but all with the same result!
  7. Can someone tell me why I get the error of 'Bad argument @ getPlayerTeam line 5 & 10? Team = createTeam("Medics", 0, 255, 0) function createAmb(source) getcteam = getTeamFromName ( "Medics" ) getpteam = getPlayerTeam(source) if (getpteam == getcteam) then outputChatBox ("Sorry, but you are already employed as a medic!", source) else createVehicle (416, 1191.3876953125, -1325.90234375, 13.3984375) setPlayerTeam(source, team) outputChatBox ("You are now employed as a Medic, enter an ambulance to start your job!", source) end end addEvent("ambul", true) addEventHandler("ambul", root, createAmb) Thanks
×
×
  • Create New...