Anubhav Posted July 26, 2014 Posted July 26, 2014 (edited) Guyz, its telling me I have triggered a client event and its not added. But I HAVE ADDED. CLIENT: function createJob(jobName,teamName,pedID,desc,marker,skins) addEventHandler("onClientMarkerHit", marker, showJobWindow) triggerEvent('showMeWindow', root, jobName, desc, teamName, skins ) end addEvent("createJob", true) addEventHandler("createJob", root, createJob) SERVER: function addJob(x,y,z,jobName,teamName,pedID,desc,skins,occupation) marker = createMarker(x,y,z,"cylinder") ped = createPed(pedID, x,y,z ) triggerClientEvent(root,"createJob",root,jobName,teamName,pedID,desc,marker,skins,occupation) end Edited July 26, 2014 by Guest
Anubhav Posted July 26, 2014 Author Posted July 26, 2014 Why is that needed? So you can leak my script?
Max+ Posted July 26, 2014 Posted July 26, 2014 Why is that needed? So you can leak my script? Really Leaking your script ? You Don't want help ? / i don't need it i made a lot of scripts and help alot you can Check my posts .. i want to see this side of script triggerEvent('showMeWindow' )
Anubhav Posted July 26, 2014 Author Posted July 26, 2014 (edited) REMOVED Edited July 26, 2014 by Guest
Max+ Posted July 26, 2014 Posted July 26, 2014 where is the window and what is these ? jobName, desc , teamName , skins ? what are you trying to do here ?
Anubhav Posted July 26, 2014 Author Posted July 26, 2014 I am making a job system. Window is at top. jobName and desc and teamName and skins are getting triggered thats why.
Et-win Posted July 26, 2014 Posted July 26, 2014 If you start with triggeren at serverside immediately when the resource starts, don't do that. Let the client trigger to the server and then back.
Max+ Posted July 26, 2014 Posted July 26, 2014 well i dont see any gui window ? how will it work without window ? also have a look at this , viewtopic.php?f=108&t=50510
Anubhav Posted July 26, 2014 Author Posted July 26, 2014 Max can't you shutup??? Why will I SHOW MY WHOLE CODE? YOU WANT TO LEAK IT, I BET. Et-win is more helpful. @Etwin - I will try it
Max+ Posted July 26, 2014 Posted July 26, 2014 Max can't you shutup??? Why will I SHOW MY WHOLE CODE? YOU WANT TO LEAK IT, I BET. Et-win is more helpful.@Etwin - I will try it Ok , if he's more helpful to you then you can do whatever you want with your script Good Luck .
Anubhav Posted July 26, 2014 Author Posted July 26, 2014 Et-win ty. Now one more problem came: function addJob(x,y,z,jobName,teamName,pedID,desc,skins,occupation) marker = createMarker(x,y,z,"cylinder") bad argument ( only this much ) ped = createPed(pedID, x,y,z ) -- bad argument ( only this much ) triggerClientEvent(root,"createJob",root,jobName,teamName,pedID,desc,marker,skins,occupation) end addEvent("startJobScript", true ) addEventHandler('startJobScript', root, addJob )
Et-win Posted July 26, 2014 Posted July 26, 2014 What is pedID? Is it defined before sending it to serverside?
Anubhav Posted July 26, 2014 Author Posted July 26, 2014 Sorry, I fixed my self. I did a silly mistake LOL.
Anubhav Posted July 26, 2014 Author Posted July 26, 2014 Again spams my debugscript 3. function createJob(x,y,z,jobName,teamName,pedID,desc,skins,occupation) marker = createMarker(x,y,z,"cylinder") ped = createPed(pedID, x,y,z ) setTimer(addEventHandler,5000,1,"onClientMarkerHit", marker, showJobWindow) triggerServerEvent("startJobScript", getLocalPlayer() ) end addEvent("createJob", true) addEventHandler("createJob", root, createJob) at createMarker bad arguement ;( Everything is defined.
Blaawee Posted July 26, 2014 Posted July 26, 2014 function createJob( x, y, z, jobName, teamName, pedID, desc, skins, occupation ) x, y, z = tonumber( x ), tonumber( y ), tonumber( z ) marker = createMarker( x, y, z, "cylinder" ) ped = createPed(pedID, x,y,z ) setTimer( addEventHandler, 5000, 1, "onClientMarkerHit", marker, showJobWindow ) triggerServerEvent("startJobScript", getLocalPlayer() ) end addEvent("createJob", true) addEventHandler("createJob", root, createJob)
Anubhav Posted July 26, 2014 Author Posted July 26, 2014 Spamming like hell. It makes me lag alot. Same warning
Et-win Posted July 26, 2014 Posted July 26, 2014 setTimer(function() addEventHandler("onClientMarkerHit", marker, showJobWindow) end, 5000, 1) What about that?
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