Jump to content

Karuzo

Members
  • Posts

    1,213
  • Joined

  • Last visited

Everything posted by Karuzo

  1. Just fixed it. Typed guiSetVisible wrong But ive got another problem : If i change my Skin it isn't 'refreshed' on the license. How can i get it to refresh ?
  2. Fixed it now , but it doesn't change the acceleration , why ?
  3. I don't see an error.... Why doesn't this work ?
  4. Yes i've defined it. Well the meta is pretty long but ok ,
  5. Hello , i've wanted to make something like a license , and wanted to use the Skin of the Player as a Picture. I have found a Skin pack with every Skin on the internet , so i wanted to use them .. But this doesn't work , why ? guiCreateStaticImage((screenW - 150) / 2.9, (screenH - 150) / 1.25, 150, 150, "skins/"..getElementModel(localPlayer)..".png", false) No Errors.
  6. Well i didn't wanted that you create a script for me , i just wanted to know the functions. Thank you .
  7. Hey Guys, i think the title says it all Hope you can help me
  8. btw , outputChatBox doesn't need an player argument Client-Side
  9. hey guys, so i wanted to check if a player is in a vehicle , but that doesnt work ... here's my code : local veh = getPedOccupiedVehicle () function Motor1(player) local veh = getPedOccupiedVehicle ( player ) if isPedInVehicle(player) then setVehicleHandling(veh, "engineAcceleration", 60) else outputChatBox("Get in a Vehicle dude!", getRootElement(), 255,0,0, false) end end addEvent("Motor1", true) addEventHandler("Motor1", getRootElement(), Motor1)
  10. Oh come on , stop crying. Youre script was full of bugs and wrong syntax' i dont even use it on my server. So just calm down and stol crying. Btw you neede 3 hours for 30 lines ^^ Thank you @Plean: it worked !
  11. https://wiki.multitheftauto.com/wiki/Easing
  12. Thank you DNL291 , the firstmarker (marker1 ) is destroyed on the marker hit , but, if i enter the second marker(marker2) it gives me this error and the marker isn't destroyed : code: function TaksiFunc() local TaksiTeam = createTeam("Taksici", 255, 255, 0 ) setPlayerTeam(source, TaksiTeam) setElementDimension( source, 120) setElementModel(source, 7) taxi = createVehicle(420, 776.20001220703, -1339.5999755859, 13.39999961853 ) warpPedIntoVehicle(source, taxi) marker1 = createMarker(780.79998779297, -1319.5999755859, 13.39999961853, "checkpoint", 2, 255, 0, 0, 255) addEventHandler("onMarkerHit", marker1, firstmarker) setElementDimension(marker1, 120) end addEvent("TaksiSkin", true) addEventHandler("TaksiSkin", root, TaksiFunc) function firstmarker() destroyElement(marker1) marker2 = createMarker(835.09997558594, -1322.1999511719, 13.39999961853, "checkpoint", 2, 255, 0, 0, 255) addEventHandler("onMarkerHit", marker2, secondmarker) setElementDimension(marker2, 120) end function secondmarker() destroyElement(marker2) marker3 = createMarker(942.09997558594, -1287.5, 14.5, "checkpoint", 2, 255, 0, 0, 255) addEventHandler("onMarkerHit", marker3, thirdmarker) setElementDimension(marker3, 120) end function thirdmarker() destroyElement(marker3) marker4 = createMarker(830, -1145.5, 23.700000762939, "checkpoint", 2, 255, 0, 0, 255) addEventHandler("onMarkerHit", marker4, fourthmarker) setElementDimension(marker4, 120) end function fourthmarker() destroyElement(marker4) marker5 = createMarker(692.20001220703, -1223.9000244141, 16.5, "checkpoint", 2, 255, 0, 0, 255) addEventHandler("onMarkerHit", marker5, fifthmarker) setElementDimension(marker5, 120) end function fifthmarker() destroyElement(marker5) finish = createMarker(665, -1308.4000244141, 13.5, "checkpoint", 15, 0, 255, 5, 255) addEventHandler("onMarkerHit", finish, finishmarker) setElementDimension(finish, 120) end function finishmarker(thePlayer) destroyElement(finish) setElementDimension(source, 0 ) outputChatBox("Taksi Job'u bitirdin! Magasin : #FFFF00 25000 TL ", thePlayer, 255, 69, 0, true) setElementPosition(thePlayer, 769.40002441406, -1387.6999511719, 13.60000038147) setPlayerTeam(thePlayer, nil) givePlayerMoney(thePlayer, 25000) end
  13. so ive just tried that, but i don't know how to "call" the marker in each function... so that the marker changes his position... could someone explain it to me?
  14. Karuzo

    Funny problem.

    function invPed() cancelEvent() end addEventHandler("onClientPedDamage",ped,invPed) Don't forget to define ped.
  15. Nah, got the problem had to set the Dimension of the Markers to the same as the player But another problem : the Markers won't destroy if the player hits them with the taxi ? why ?
  16. well you could use Username : admin password : password thats mine ^^
  17. No one got an idea ? //Edit : Found Errors : [2014-01-13 17:36:53] WARNING: Taksi\server.lua:17: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil] [2014-01-13 17:36:53] WARNING: Taksi\server.lua:23: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil] [2014-01-13 17:36:53] WARNING: Taksi\server.lua:29: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil] [2014-01-13 17:36:53] WARNING: Taksi\server.lua:35: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil] [2014-01-13 17:36:53] WARNING: Taksi\server.lua:41: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil] [2014-01-13 17:36:53] WARNING: Taksi\server.lua:51: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil] but how to fix them ?
  18. Hello everyone, so i've got a problem : function TaksiFunc() local TaksiTeam = createTeam("Taksici", 255, 255, 0 ) setPlayerTeam(source, TaksiTeam) setElementDimension( source, 120) setElementModel(source, 7) taxi = createVehicle(420, 776.20001220703, -1339.5999755859, 13.39999961853 ) warpPedIntoVehicle(source, taxi) marker1 = createMarker(780.79998779297, -1319.5999755859, 13.39999961853, "checkpoint", 2, 255, 0, 0, 255) end addEvent("TaksiSkin", true) addEventHandler("TaksiSkin", root, TaksiFunc) function firstmarker() destroyElement(marker1) marker2 = createMarker(835.09997558594, -1322.1999511719, 13.39999961853, "checkpoint", 2, 255, 0, 0, 255) end addEventHandler("onMarkerHit", marker1, firstmarker) function secondmarker() destroyElement(marker2) marker3 = createMarker(942.09997558594, -1287.5, 14.5, "checkpoint", 2, 255, 0, 0, 255) end addEventHandler("onMarkerHit", marker2, secondmarker) function thirdmarker() destroyElement(marker3) marker4 = createMarker(830, -1145.5, 23.700000762939, "checkpoint", 2, 255, 0, 0, 255) end addEventHandler("onMarkerHit", marker3, thirdmarker) function fourthmarker() destroyElement(marker4) marker5 = createMarker(692.20001220703, -1223.9000244141, 16.5, "checkpoint", 2, 255, 0, 0, 255) end addEventHandler("onMarkerHit", marker4, fourthmarker) function fifthmarker() destroyElement(marker5) finish = createMarker(665, -1308.4000244141, 13.5, "checkpoint", 15, 0, 255, 5, 255) end addEventHandler("onMarkerHit", marker5, fifthmarker) function finishmarker(thePlayer) destroyElement(finish) setElementDimension(source, 0 ) outputChatBox("Taksi Job'u bitirdin! Magasin : #FFFF00 25000 TL ", thePlayer, 255, 69, 0, true) setElementPosition(thePlayer, 769.40002441406, -1387.6999511719, 13.60000038147) setPlayerTeam(thePlayer, nil) givePlayerMoney(thePlayer, 25000) end addEventHandler("onMarkerHit", finish, finishmarker) I want to create a marker if thePlayer presses a button and set him to the team. ok so ive done that. it worked , but , i want that the player has to drive thru markers, and if they hit one marker the marker should be destroyed and another marker should be spawned.. but won't work
  19. Oh ok thank you Plean Well , if i want to use DX i have to set all positions ?
  20. Hey Guys, so i was making a taxi job, and im on the GUI now. So whats my problem ? I have centered the window and i just asked myself if i have to set the position of the Labels,Buttons, etc... too ? Or will it automatically be on the position as the window ? Thanks.
×
×
  • Create New...