
LiOneLMeSsIShoT
Members-
Posts
609 -
Joined
-
Last visited
Everything posted by LiOneLMeSsIShoT
-
Dosen't work, No Errors, + My point here: I think this script will only make another marker when you hit the other?, i don't need like that! i need when you hit other marker this marker will work, like if you don't hit another marker and moved on it it will say "You're not ready Yet to join". I hope you understand. No Errors? Why you lying? I'm pretty sure this line will give a clear error in the debug. addEventHandler ( "MarkerAppear, root, marker ) What FaDY-Jo posted doesn't make any sense it's all wrong. Sir, I'm saying no errors because i've fixed it before starting the script It's to : function marker () createMarker (1727, -1638.5, 19, 'cylinder', 2.0, 255, 0, 0, 150) end addEvent ( "MarkerAppear", true ) addEventHandler ("MarkerAppear", root, marker ) Whatever Still the error not fixed, Could you Help me Mr Tapl?
-
could you help me to do this?
-
so help please?
-
Dosen't work, No Errors, + My point here: I think this script will only make another marker when you hit the other?, i don't need like that! i need when you hit other marker this marker will work, like if you don't hit another marker and moved on it it will say "You're not ready Yet to join". I hope you understand.
-
You mean u want this marker ( joinmarker ) appear when thePlayer hit another marker so this marker appear ? Exactlly ! ! !
-
joinmarker = createMarker (1727, -1638.5, 19, 'cylinder', 2.0, 255, 0, 0, 150) setElementInterior (joinmarker, 18) function firstJoin ( hitElement ) if getElementType ( hitElement ) and not isPedInVehicle ( hitElement ) then spawnPlayer (source, 2307.8564453125, 556.2001953125, 7.78125+1) end end addEventHandler ("onMarkerHit", joinmarker, firstJoin) I've made this marker to spawn the player to some place but i need this marker don't work before the player hit another marker, , could you help please?
-
I've Checked interpolateBetween's Examples but Really long and didn't understand them well, could you give an simple example ? please.
-
Alright about Shadow part i mean that: When you move the cursor of the mouse to the button, it makes a Black shadow on it like stand by for clicking..i hope you understand ... or when you put the mouse on the button without clicking on it the button starts to move up like object but not move up high...just move 1 cm or less...i hope you understand.
-
yeah man what about other things? and could you give me small examples that useful and THANK you.
-
How to make Shadows when you move the mouse to the button and when you click on it? How to make the Dx texts don't be on the screen in 1 second...like for example the words starts to move about 5 seconds to reach to the place and stop..like moving objects or like the words are hidden and be shown slowly? ? ? THANKS A LOT!
-
Alright can you tell me what you did here? you just changed the x, y positions and did what? and why changed them? i want to know because i want to do this with another panels too. guiGetScreenSize returns the client's resolution size. You just have to do basic math to find the center of the client's screen (sx/2 and sy/2) So, now it returns the middle of the screen: Now, you have to subtract half of the window away so it goes to the center. ahA! lol Thanks
-
Alright can you tell me what you did here? you just changed the x, y positions and did what? and why changed them? i want to know because i want to do this with another panels too.
-
I have problems with all my Guis !! ! in my server.... My Panels works fine with my resolution but with any another resolution it be reallly big, small, bad, right, left on the streen...help one of my Pannels: GUIEditor.tabpanel[1] = guiCreateTabPanel(379, 212, 499, 288, false) guiSetAlpha(GUIEditor.tabpanel[1], 0.50)
-
Well in this : local seconds = getTickCount() / 800, 1000 local angle = math.sin(seconds) * 360 the image don't move in 360 direction. like it just move 360 and then comes back and then move 360...stop so i need it to not move back and goes 360 everytime without stoping someone help me to make it move in 360 with a full circle
-
in this script when the player be wasted in the first time the script move correct and destroy the elements. but in the second time with wasting i get error in destroyElement and the elements don't be removed: function onWasted () destroyElement (lowrider) destroyElement (mission1BLIP) destroyElement (mission1Marker) end addEventHandler ("onPlayerWasted", getRootElement(), onWasted) error: Bad argument @ 'destroyElement' expected element at argument 1 help please. thanks
-
aha fixed in function name GUI must be Changed. idk why but worked when i did that.
-
re tested a couple of times. but whatever it's not the full script. there're another sides triggerd.
-
I don't know why the gui don't close when i click on the button here! everything's okay and the event is on the function which have the event resource start. and i've started with everything but still not works. and no debugscript 3 errror too on "Close BUTTOn" GUIEditor = { button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() Mission1_Window = guiCreateWindow(420, 252, 582, 526, "Mission 1", false) guiWindowSetSizable(Mission1_Window, false) guiSetVisible (Mission1_Window, false) GUIEditor.edit[1] = guiCreateEdit(43, 126, 498, 353, "Go meet Cesar at his place. Use my car holmes'.", false, Mission1_Window) guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.label[1] = guiCreateLabel(93, 32, 385, 79, "Meet Cesar", false, Mission1_Window) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 31, 253, 1) LetsGoNow = guiCreateButton(48, 487, 205, 30, "Lets Go!", false, Mission1_Window) GUIEditor.button[1] = guiCreateButton(337, 487, 205, 30, "Fuck that shit!", false, Mission1_Window) ---Handlers[sTART]--- addEventHandler ("onClientGUIClick", LetsGoNow, missionSTART, false) addEventHandler ("onClientGUIClick", GUIEditor.button[1], closeGUI, false) ---Handlers[END]--- end ) ---guiShown[sTART]--- function showGUI () guiSetVisible (Mission1_Window, true) showCursor (true) end addEvent ("showMission1", true) addEventHandler ("showMission1", getRootElement(), showGUI) ---guiShown[END]--- ---Mission[1]START[sTART]--- function missionSTART (button, state) if (button == "left" and state == "up") then if guiGetVisible (Mission1_Window) then guiSetVisible (Mission1_Window, false) triggerServerEvent ("STARTmission1", localPlayer) showCursor ( false ) end end end ---Mission[1]START[END]--- ---CloseGUI[sTART]--- function closeGUI (button, state) if (button == "left" and state == "up") then if guiGetVisible (Mission1_Window) then guiSetVisible (Mission1_Window, false) showCursor ( false ) end end end ---CloseGUI[END]---
-
Thanks a lot.... :D
-
Yeah works with that: but function mission1 () local mission1Marker = createMarker (2000.58984375, -1733.0361328125, 13.3828125, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler ("onMarkerHit", mission1Marker, onHit) end addEvent ("missionStarts", true) addEventHandler ("missionStarts", getRootElement(), mission1) function onHit (hitElement) if getElementType ( hitElement ) == "player" and not isPedInVehicle(hitElement) then triggerClientEvent ("ShowWinWindow", hitElement) end end function DAR () destroyElement (mission1Marker) end addEvent ("destroyAndReward", true) addEventHandler ("destroyAndReward", getRootElement(), DAR) client: function CloseBtn () guiSetVisible (GUIEditor.window[1], false) showCursor ( false ) triggerServerEvent ("destroyAndReward", localPlayer) end i've tried to destroy the marker when the player click on the button. but not works. please help
-
i've made it. but still the same error: function mission1 () local mission1Marker = createMarker (2000.58984375, -1733.0361328125, 13.3828125, 'cylinder', 2.0, 255, 0, 0, 150) if getElementType ( source ) == "player" and not isPedInVehicle(source) then triggerClientEvent ("ShowWinWindow", source) end end addEvent ("missionStarts", true) addEventHandler ("missionStarts", getRootElement(), mission1) addEventHandler ("onMarkerHit", mission1Marker, mission1)
-
the script'd be now: function mission1 () local mission1Marker = createMarker (2000.58984375, -1733.0361328125, 13.3828125, 'cylinder', 2.0, 255, 0, 0, 150) end addEvent ("missionStarts", true) addEventHandler ("missionStarts", getRootElement(), mission1) function onHit (hitElement) if getElementType ( hitElement ) == "player" and not isPedInVehicle(hitElement) then triggerClientEvent ("ShowWinWindow", hitElement) end end addEventHandler ("onMarkerHit", mission1Marker, onHit) function onLeave () local money = math.random(2000, 2500) givePlayerMoney (source, money) outputChatBox ("You have got "..money.."$ Good Job!", source, 0, 255, 0, false) end addEvent ("GetRewards", true) addEventHandler ("GetRewards", getRootElement(), onLeave) but i got error: :34:bad argument 'addEventHandler' element at argument 2, got nil
-
Client side too: function missionClick (button, state) if (button == "left" and state == "up") then guiSetVisible (GUIEditor.window[1], false) showCursor ( false ) triggerServerEvent ("missionStarts", localPlayer) end end
-
ok i have tried it: function mission1 (hitElement) local mission1Marker = createMarker (2000.58984375, -1733.0361328125, 13.3828125, 'cylinder', 2.0, 255, 0, 0, 150) if getElementType ( hitElement ) == "player" and not isPedInVehicle(hitElement) then triggerClientEvent ("ShowWinWindow", hitElement) end end addEvent ("missionStarts", true) addEventHandler ("missionStarts", getRootElement(), mission1) addEventHandler ("onMarkerHit", mission1Marker, mission1) function onLeave () local money = math.random(2000, 2500) givePlayerMoney (source, money) outputChatBox ("You have got "..money.."$ Good Job!", source, 0, 255, 0, false) end addEvent ("GetRewards", true) addEventHandler ("GetRewards", getRootElement(), onLeave) Still error: :31: addEventHandler argument 2 got nil
-
alright i've tried it: fixed things here but still there's problem this make the marker spawn already. whatever i want the marker spawn when the player click on the gui button. thats why i have triggerd and putted marker on function. so ? local mission1Marker = createMarker (2000.58984375, -1733.0361328125, 13.3828125, 'cylinder', 2.0, 255, 0, 0, 150) function mission1 (hitElement) addEventHandler ("onMarkerHit", mission1Marker, onHit) if getElementType ( hitElement ) == "player" and not isPedInVehicle(hitElement) then triggerClientEvent ("ShowWinWindow", hitElement) end end addEvent ("missionStarts", true) addEventHandler ("missionStarts", getRootElement(), mission1) addEventHandler ("onMarkerHit", mission1Marker, mission1) function onLeave () local money = math.random(2000, 2500) givePlayerMoney (source, money) outputChatBox ("You have got "..money.."$ Good Job!", source, 0, 255, 0, false) end addEvent ("GetRewards", true) addEventHandler ("GetRewards", getRootElement(), onLeave)