Deepu Posted February 19, 2014 Posted February 19, 2014 function takeJob () if source == taker then destroyElement(pilot) noMarker = createMarker(1953.6999511719, -2178.3000488281, 13.5, "cylinder", 3, 170, 240, 10, 0) triggerServerEvent("onTakka", thePlayer, "yo") requestNewMarkers() guiSetVisible(jobWindow, false) showCursor(false) end end addEventHandler("onClientGUIClick", getRootElement(), takeJob) function cancelJob () if source == canceler then guiSetVisible(jobWindow, false) showCursor(false) end end addEventHandler("onClientGUIClick", getRootElement(), cancelJob) function requestNewMarkers () local poopMarkers = { {1816.8000488281, -2517.1000976563, 12.60000038147}, {-1348.6999511719, -235, 13.199999809265}, {416.20001220703, 2503.8000488281, 15.5}, {1572.0999755859, 1472.1999511719, 10.800000190735}, } local ran = math.random(#poopMarkers, 4) reach = createMarker(poopMarkers[ran][1], poopMarkers[ran][2], poopMarkers[ran][3], "cylinder", 3, 241, 227, 13) guiSetVisible(jobWindow, false) createBlipAttachedTo(reach, 51) end function otherMarker () local poopMarkers = { {1816.8000488281, -2517.1000976563, 12.60000038147}, {-1348.6999511719, -235, 13.199999809265}, {416.20001220703, 2503.8000488281, 15.5}, {1572.0999755859, 1472.1999511719, 10.800000190735}, } local ran = math.random(#poopMarkers, 4) screach = createMarker(poopMarkers[ran][1], poopMarkers[ran][2], poopMarkers[ran][3], "cylinder", 3, 241, 227, 13) guiSetVisible(jobWindow, false) createBlipAttachedTo(screach, 51) end function LS (hitElement) if source == reach then if hitElement == thePlayer then triggerServerEvent("onChakka", thePlayer, "yokohama") otherMarker() end end end addEventHandler("onClientMarkerHit", getRootElement(), LS) the thing is, the function of the random markers doesnt work look if I hit reach then screach wont be created where screach will be different markers WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Anubhav Posted February 19, 2014 Posted February 19, 2014 function takeJob () if source == taker then destroyElement(pilot) noMarker = createMarker(1953.6999511719, -2178.3000488281, 13.5, "cylinder", 3, 170, 240, 10, 0) triggerServerEvent("onTakka", thePlayer, "yo") requestNewMarkers() guiSetVisible(jobWindow, false) showCursor(false) end end addEventHandler("onClientGUIClick", getRootElement(), takeJob) function cancelJob () if source == canceler then guiSetVisible(jobWindow, false) showCursor(false) end end addEventHandler("onClientGUIClick", getRootElement(), cancelJob) function requestNewMarkers () local poopMarkers = { {1816.8000488281, -2517.1000976563, 12.60000038147}, {-1348.6999511719, -235, 13.199999809265}, {416.20001220703, 2503.8000488281, 15.5}, {1572.0999755859, 1472.1999511719, 10.800000190735}, } local x,y,z = unpack(poopMarkers[math.random(#poopMarkers)]) createMarker(x,y,z) guiSetVisible(jobWindow, false) createBlipAttachedTo(reach, 51) end function otherMarker () local poopMarkers1 = { {1816.8000488281, -2517.1000976563, 12.60000038147}, {-1348.6999511719, -235, 13.199999809265}, {416.20001220703, 2503.8000488281, 15.5}, {1572.0999755859, 1472.1999511719, 10.800000190735}, } local x,y,z = unpack(poopMarkers1[math.random(#poopMarkers1)]) guiSetVisible(jobWindow, false) createBlipAttachedTo(screach, 51) end function LS (hitElement) if source == reach then if hitElement == thePlayer then triggerServerEvent("onChakka", thePlayer, "yokohama") otherMarker() end end end addEventHandler("onClientMarkerHit", getRootElement(), LS) See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Spajk Posted February 19, 2014 Posted February 19, 2014 function takeJob () if source == taker then destroyElement(pilot) noMarker = createMarker(1953.6999511719, -2178.3000488281, 13.5, "cylinder", 3, 170, 240, 10, 0) triggerServerEvent("onTakka", thePlayer, "yo") requestNewMarkers() guiSetVisible(jobWindow, false) showCursor(false) end end addEventHandler("onClientGUIClick", getRootElement(), takeJob) function cancelJob () if source == canceler then guiSetVisible(jobWindow, false) showCursor(false) end end addEventHandler("onClientGUIClick", getRootElement(), cancelJob) function requestNewMarkers () local poopMarkers = { {1816.8000488281, -2517.1000976563, 12.60000038147}, {-1348.6999511719, -235, 13.199999809265}, {416.20001220703, 2503.8000488281, 15.5}, {1572.0999755859, 1472.1999511719, 10.800000190735}, } local ran = math.random(#poopMarkers, 4) reach = createMarker(poopMarkers[ran][1], poopMarkers[ran][2], poopMarkers[ran][3], "cylinder", 3, 241, 227, 13) guiSetVisible(jobWindow, false) createBlipAttachedTo(reach, 51) end function otherMarker () local poopMarkers = { {1816.8000488281, -2517.1000976563, 12.60000038147}, {-1348.6999511719, -235, 13.199999809265}, {416.20001220703, 2503.8000488281, 15.5}, {1572.0999755859, 1472.1999511719, 10.800000190735}, } local ran = math.random(#poopMarkers, 4) screach = createMarker(poopMarkers[ran][1], poopMarkers[ran][2], poopMarkers[ran][3], "cylinder", 3, 241, 227, 13) guiSetVisible(jobWindow, false) createBlipAttachedTo(screach, 51) end function LS (hitElement) if source == reach then if hitElement == thePlayer then triggerServerEvent("onChakka", thePlayer, "yokohama") otherMarker() end end end addEventHandler("onClientMarkerHit", getRootElement(), LS) the thing is, the function of the random markers doesnt work look if I hit reach then screach wont be created where screach will be different markers And you are supposed to be a scripter?
Deepu Posted February 19, 2014 Author Posted February 19, 2014 the prob is that I am new to random markers ........... WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Deepu Posted February 19, 2014 Author Posted February 19, 2014 and the blip anubhav? the blip wont work I tried blip with poopMarkers, x,y,z and "poopMarkers" help WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Moderators Citizen Posted February 19, 2014 Moderators Posted February 19, 2014 local x, y, z = unpack(poopMarkers[math.random(#poopMarkers)]) local reach = createMarker(x, y, z) guiSetVisible(jobWindow, false) createBlipAttachedTo(reach, 51) The rEvolution is coming ...
Deepu Posted February 20, 2014 Author Posted February 20, 2014 by the way thanks citizen it worked and do you know how to add different functions to each random marker? I know its impossible but someway? WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Saml1er Posted February 20, 2014 Posted February 20, 2014 by the way thanks citizen it worked and do you know how to add different functions to each random marker?I know its impossible but someway? You can use elseif statement instead of adding different functions.
Moderators Citizen Posted February 20, 2014 Moderators Posted February 20, 2014 by the way thanks citizen it worked and do you know how to add different functions to each random marker?I know its impossible but someway? What do you mean ? The rEvolution is coming ...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now