Jump to content

Another help needed


Anubhav

Recommended Posts

Posted (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 by Guest
Posted
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' ) 
Posted

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.

Posted
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 .

Posted

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 ) 
  

Posted

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.

Posted
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) 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...