Anubhav Posted July 26, 2014 Share 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 Link to comment
Max+ Posted July 26, 2014 Share Posted July 26, 2014 Can you post the full code please ? Link to comment
Anubhav Posted July 26, 2014 Author Share Posted July 26, 2014 Why is that needed? So you can leak my script? Link to comment
Max+ Posted July 26, 2014 Share 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' ) Link to comment
Anubhav Posted July 26, 2014 Author Share Posted July 26, 2014 (edited) REMOVED Edited July 26, 2014 by Guest Link to comment
Max+ Posted July 26, 2014 Share Posted July 26, 2014 where is the window and what is these ? jobName, desc , teamName , skins ? what are you trying to do here ? Link to comment
Anubhav Posted July 26, 2014 Author Share 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. Link to comment
Et-win Posted July 26, 2014 Share 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. Link to comment
Max+ Posted July 26, 2014 Share 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 Link to comment
Anubhav Posted July 26, 2014 Author Share 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 Link to comment
Max+ Posted July 26, 2014 Share 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 . Link to comment
Et-win Posted July 26, 2014 Share Posted July 26, 2014 Well then, no need to be like that lol. Link to comment
Anubhav Posted July 26, 2014 Author Share 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 ) Link to comment
Et-win Posted July 26, 2014 Share Posted July 26, 2014 What is pedID? Is it defined before sending it to serverside? Link to comment
Anubhav Posted July 26, 2014 Author Share Posted July 26, 2014 Sorry, I fixed my self. I did a silly mistake LOL. Link to comment
Anubhav Posted July 26, 2014 Author Share 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. Link to comment
Blaawee Posted July 26, 2014 Share 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) Link to comment
Anubhav Posted July 26, 2014 Author Share Posted July 26, 2014 Spamming like hell. It makes me lag alot. Same warning Link to comment
Et-win Posted July 26, 2014 Share Posted July 26, 2014 setTimer(function() addEventHandler("onClientMarkerHit", marker, showJobWindow) end, 5000, 1) What about that? Link to comment
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