N3xT Posted October 4, 2018 Share Posted October 4, 2018 On 04/10/2018 at 17:11, xXGhostXx said: Not work Expand Why it doesn't work?, /debugscript 3 Link to comment
VenomOG Posted October 4, 2018 Share Posted October 4, 2018 @xXGhostXx ----------------- DELIVERY SCRIPT BY XXXGHOSTXXX ---------------- local vehicles = createVehicle(ID,x,y,z,rot) ---- put your position local deliverymarker = createMarker(x,y,z,"cylinder",1.2,255,0,0,255,root) del = getAccountData(source,"Deliveries") or 0 function onDamageProof(seat,jacked) setVehicleDamageProof(vehicles,false) outputChatBox("Delivery Mission started" ,root) end addEventHandler("onPlayerVehicleEnter",vehicles,onDamageProof) addEventHandler("onMarkerHit",deliverymarker,function(player) setAccountData(player,"Deliveries",1) givePlayerMoney(player,50000) outputChatBox("You have been given 1 perk and 50k for delivery",player) end) function requestdeliveries(pl) outputChatBox("You have "..del.." deliveries",pl) end addCommandHandler("deliveries",requestdeliveries) --------------------- END OF SCRIPT BY KNUCK/PREACHER --------------------- Link to comment
Master_MTA Posted October 4, 2018 Share Posted October 4, 2018 On 04/10/2018 at 17:09, xXGhostXx said: damage Expand On 04/10/2018 at 17:10, N3xT said: end ) Expand will not work correctly need more configuration if there is more 1 player in the car then it will not work so best way is function damage(lo) local elements = getVehicleOccupants(source) if(#elements~=0) then -- Check there is a player in the vehicle setElementHealth(source,getElementHealth(source)+lo) end end addEventHandler("onVehicleDamage", root, damage) Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 On 04/10/2018 at 17:13, N3xT said: Why it doesn't work?, /debugscript 3 Expand Dont have error ! On 04/10/2018 at 17:16, Knuck said: @xXGhostXx ----------------- DELIVERY SCRIPT BY XXXGHOSTXXX ---------------- local vehicles = createVehicle(ID,x,y,z,rot) ---- put your position local deliverymarker = createMarker(x,y,z,"cylinder",1.2,255,0,0,255,root) del = getAccountData(source,"Deliveries") or 0 function onDamageProof(seat,jacked) setVehicleDamageProof(vehicles,false) outputChatBox("Delivery Mission started" ,root) end addEventHandler("onPlayerVehicleEnter",vehicles,onDamageProof) addEventHandler("onMarkerHit",deliverymarker,function(player) setAccountData(player,"Deliveries",1) givePlayerMoney(player,50000) outputChatBox("You have been given 1 perk and 50k for delivery",player) end) function requestdeliveries(pl) outputChatBox("You have "..del.." deliveries",pl) end addCommandHandler("deliveries",requestdeliveries) --------------------- END OF SCRIPT BY KNUCK/PREACHER --------------------- Expand Script for what ? On 04/10/2018 at 17:17, Master_MTA said: will not work correctly need more configuration if there is more 1 player in the car then it will not work so best way is function damage(lo) local elements = getVehicleOccupants(source) if(#elements~=0) then -- Check there is a player in the vehicle setElementHealth(source,getElementHealth(source)+lo) end end addEventHandler("onVehicleDamage", root, damage) Expand Not work ! Link to comment
Master_MTA Posted October 4, 2018 Share Posted October 4, 2018 On 04/10/2018 at 17:19, xXGhostXx said: Not work ! Expand am confused what r u trying to do? Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 On 04/10/2018 at 17:21, Master_MTA said: am confused what r u trying to do? Expand i dont know do you have skype ? Link to comment
VenomOG Posted October 4, 2018 Share Posted October 4, 2018 this will work 100% xd ----------------- DELIVERY SCRIPT BY XXXGHOSTXXX ---------------- local vehicles = createVehicle(ID,x,y,z,rot) ---- put your position local deliverymarker = createMarker(x,y,z,"cylinder",1.2,255,0,0,255,root) del = getAccountData(source,"Deliveries") or 0 function onDamageProof(seat,jacked) setVehicleDamageProof(vehicles,true) outputChatBox("Delivery Mission started" ,root) end addEventHandler("onPlayerVehicleEnter",vehicles,onDamageProof) addEventHandler("onMarkerHit",deliverymarker,function(player) setAccountData(player,"Deliveries",1) givePlayerMoney(player,50000) outputChatBox("You have been given 1 perk and 50k for delivery",player) end) function requestdeliveries(pl) outputChatBox("You have "..del.." deliveries",pl) end addCommandHandler("deliveries",requestdeliveries) --------------------- END OF SCRIPT BY KNUCK/PREACHER --------------------- put the xy,z Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 On 04/10/2018 at 17:28, Knuck said: this will work 100% xd ----------------- DELIVERY SCRIPT BY XXXGHOSTXXX ---------------- local vehicles = createVehicle(ID,x,y,z,rot) ---- put your position local deliverymarker = createMarker(x,y,z,"cylinder",1.2,255,0,0,255,root) del = getAccountData(source,"Deliveries") or 0 function onDamageProof(seat,jacked) setVehicleDamageProof(vehicles,true) outputChatBox("Delivery Mission started" ,root) end addEventHandler("onPlayerVehicleEnter",vehicles,onDamageProof) addEventHandler("onMarkerHit",deliverymarker,function(player) setAccountData(player,"Deliveries",1) givePlayerMoney(player,50000) outputChatBox("You have been given 1 perk and 50k for delivery",player) end) function requestdeliveries(pl) outputChatBox("You have "..del.." deliveries",pl) end addCommandHandler("deliveries",requestdeliveries) --------------------- END OF SCRIPT BY KNUCK/PREACHER --------------------- put the xy,z Expand Script for what ?! Link to comment
VenomOG Posted October 4, 2018 Share Posted October 4, 2018 local vehicles = createVehicle(ID,x,y,z,rot) ---- put your position function onDamageProof(seat,jacked) setVehicleDamageProof(vehicles,true) end addEventHandler("onPlayerVehicleEnter",vehicles,onDamageProof) vehicle Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 On 04/10/2018 at 17:36, Knuck said: local vehicles = createVehicle(ID,x,y,z,rot) ---- put your position function onDamageProof(seat,jacked) setVehicleDamageProof(vehicles,true) end addEventHandler("onPlayerVehicleEnter",vehicles,onDamageProof) vehicle Expand Not work On 04/10/2018 at 17:36, Knuck said: local vehicles = createVehicle(ID,x,y,z,rot) ---- put your position function onDamageProof(seat,jacked) setVehicleDamageProof(vehicles,true) end addEventHandler("onPlayerVehicleEnter",vehicles,onDamageProof) vehicle Expand You want to capture a movie from a script example Link to comment
VenomOG Posted October 4, 2018 Share Posted October 4, 2018 On 04/10/2018 at 17:38, xXGhostXx said: Not work You want to capture a movie from a script example Expand Put them on serverside Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 On 04/10/2018 at 17:57, Knuck said: Put them on serverside Expand What your email address ? I send movie for exapmle script ! Link to comment
VenomOG Posted October 4, 2018 Share Posted October 4, 2018 On 04/10/2018 at 18:01, xXGhostXx said: What your email address ? I send movie for exapmle script ! Expand saeghacker@gmail.com Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 On 04/10/2018 at 18:03, Knuck said: saeghacker@gmail.com Expand Send Link to comment
xXGhostXx Posted October 4, 2018 Author Share Posted October 4, 2018 On 04/10/2018 at 18:03, Knuck said: saeghacker@gmail.com Expand Answer me Link to comment
Master_MTA Posted October 4, 2018 Share Posted October 4, 2018 On 04/10/2018 at 17:19, xXGhostXx said: Not work ! Expand do u but it in server side? Link to comment
xXGhostXx Posted October 5, 2018 Author Share Posted October 5, 2018 On 04/10/2018 at 23:58, Master_MTA said: do u but it in server side? Expand What your email address for send movie script ! Link to comment
xXGhostXx Posted October 6, 2018 Author Share Posted October 6, 2018 Please answer me Link to comment
Recommended Posts